【vb6】vb6逆向相关
本帖最后由 AyalaRs 于 2024-8-15 00:06 编辑有点懒,身体也不太好,把之前vb6逆向的一些东西发下,i64文件,msvbvm60的pdb文件等
int __cdecl WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
CFileRep *v4; // ebx
int v5; // eax
DWORD CurrentThreadId; // eax
const void *inited; // eax
int v9; // esi
bool v10; // sf
HANDLE v11; // esi
t_heap *v12; // eax
CFileRep *p_U; // eax
HWND v14; // eax
HWND ThreadHwndMain; // eax
BOOL v16; //
v16 = 0;
v4 = 0;
hmod = hInstance;
gnShowCmd = nShowCmd;
g_hinstExe = hInstance;
if ( CThreadPool::InitRuntime(hInstance, lpCmdLine) )
{
WinMain_InitRuntime_After();
if ( Cmd_ty == 1 )
{
v5 = XSignFilter_49_50_52(1, 1u);
if ( g_tCmdLine.runexitset1 )
{
v16 = v5;
if ( !v5 )
{
ThreadHwndMain = GetThreadHwndMain();
PostMessageA(ThreadHwndMain, WM_CLOSE, 0, 0);
}
}
}
else if ( Cmd_ty == 2 )
{
Cmd_ty = 0;
inited = (const void *)WinMain_InitRuntime_After_case2();
v9 = (int)inited;
if ( (int)inited < 0 )
ErrorHr(inited);
if ( g_tCmdLine.makedllset1 )
{
v10 = v9 < 0;
v11 = process_heap;
v16 = !v10;
v12 = HeapAlloc(process_heap, HEAP_ZERO_MEMORY, 0x10u);
if ( v12 && (v12->hheap = v11, (p_U = (CFileRep *)&v12->U__) != 0) )
v4 = CFileRep::CFileRep(p_U);
else
v4 = 0;
if ( v4 )
{
if ( (g_t_d14_p->flags & 4) != 0 )
WinMain_InitRuntime_After_case2_d14(g_t_d14_p, v4);
else
WinMain_InitRuntime_After_case2_project(g_Project_p, v4);
hInstance = (HINSTANCE)CFileRep::GetNonPrintFileNameExt(v4);
}
else
{
hInstance = 0;
}
}
v14 = GetThreadHwndMain();
SendMessageA(v14, WM_CLOSE, 0, 0);
}
if ( g_tCmdLine.makedllset1
|| (CurrentThreadId = GetCurrentThreadId(),
PostThreadMessageA(CurrentThreadId, LVM_INSERTCOLUMNW|WM_KILLFOCUS, 0, 0),
CMsoComponent::PushMsgLoop(&tgui.CMsoComponent_p->lpVtbl, -1),
g_tCmdLine.makedllset1) )
{
sub_5001B3(v16, hInstance);
}
if ( v4 )
CFileRep::`scalar deleting destructor'(v4, 1);
CThreadPool::TerminateRuntime();
if ( g_tCmdLine.makedllset1 || g_tCmdLine.runexitset1 )
return !v16;
}
else if ( g_tCmdLine.makedllset1 || g_tCmdLine.runexitset1 )
{
return 1;
}
return 0;
}
**** Hidden Message *****
啥也不说了,楼主就是给力!
页:
[1]