Function at 0x402920
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413c66
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x419080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
push edi
push ebx
call fcn.00404a80
mov dword [ebp - 4], edi
mov dword [ebx], vtable.SimpleUI::Dialog.0
push 0xc
mov dword [ebx + 0x40], edi
call fcn.00405bb6
add esp, 4
cmp eax, edi
je 0x402c0e
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [ebx + 0x3c], eax
mov dword [eax], eax
mov eax, dword [ebx + 0x3c]
mov dword [eax + 4], eax
push 0x400
lea eax, [ebx + 0x48]
push eax
call esi
mov byte [ebp - 4], 1
push 0xc
mov dword [ebx + 0x64], edi
call fcn.00405bb6
add esp, 4
cmp eax, edi
je 0x402cc2
mov dword [ebx + 0x60], eax
mov dword [eax], eax
mov eax, dword [ebx + 0x60]
push 0x400
lea ecx, [ebx + 0x6c]
push ecx
mov dword [eax + 4], eax
call esi
mov byte [ebp - 4], 2
push 0xc
mov dword [ebx + 0x88], edi
call fcn.00405bb6
add esp, 4
cmp eax, edi
je 0x402c9e
mov dword [ebx + 0x84], eax
mov dword [eax], eax
mov eax, dword [ebx + 0x84]
push 0x400
lea edx, [ebx + 0x90]
push edx
mov dword [eax + 4], eax
call esi
mov byte [ebp - 4], 3
push 0xc
mov dword [ebx + 0xac], edi
call fcn.00405bb6
add esp, 4
cmp eax, edi
je 0x402c7a
mov dword [ebx + 0xa8], eax
mov dword [eax], eax
mov eax, dword [ebx + 0xa8]
mov dword [eax + 4], eax
push 0x400
lea eax, [ebx + 0xb4]
push eax
call esi
mov byte [ebp - 4], 4
push 0xc
mov dword [ebx + 0xd0], edi
call fcn.00405bb6
add esp, 4
cmp eax, edi
je 0x402c56
mov dword [ebx + 0xcc], eax
mov dword [eax], eax
mov eax, dword [ebx + 0xcc]
push 0x400
lea ecx, [ebx + 0xd8]
push ecx
mov dword [eax + 4], eax
call esi
mov byte [ebp - 4], 5
lea esi, [ebx + 0x108]
push 0x18
mov dword [esi + 8], edi
call fcn.00405bb6
add esp, 4
cmp eax, edi
je 0x402c32
mov dword [esi + 4], eax
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov edx, dword [esi + 4]
mov byte [edx + 0x14], 1
mov eax, dword [esi + 4]
mov byte [eax + 0x15], 1
mov byte [ebp - 4], 6
push 0x18
mov dword [ebx + 0x13c], edi
call fcn.00405bb6
add esp, 4
cmp eax, edi
je 0x402c0e
mov dword [ebx + 0x138], eax
mov dword [eax], eax
mov eax, dword [ebx + 0x138]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x138]
mov dword [eax + 8], eax
mov ecx, dword [ebx + 0x138]
mov byte [ecx + 0x14], 1
mov edx, dword [ebx + 0x138]
mov byte [edx + 0x15], 1
push edi
push edi
push edi
push edi
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
mov dword [ebx + 0xf0], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push 4
push ebx
push 0x4026d0
mov dword [ebx + 0xf4], eax
mov eax, 0x6d
push edi
push edi
mov dword [ebx + 0xf8], edi
mov dword [ebx + 0x104], edi
mov dword [ebx + 0xfc], edi
mov word [ebx + 0x100], ax
call fcn.00405a90
add esp, 0x18
push eax
mov dword [ebx + 0xf8], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebx + 0xf0]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebx + 0xc]
push ebx
push 0xffffffffffffffeb
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x18], 0x138
mov dword [ebp - 0x14], 0x402760
call fcn.00404390
push eax
lea edi, [ebp - 0x18]
mov eax, esi
call fcn.004040b0
lea edi, [ebp - 0x18]
mov dword [ebp - 0x18], 0x200
mov dword [ebp - 0x14], 0x4027e0
call fcn.00404390
push eax
lea edi, [ebp - 0x18]
mov eax, esi
call fcn.004040b0
lea edi, [ebp - 0x18]
mov dword [ebp - 0x18], 0x202
mov dword [ebp - 0x14], 0x402870
call fcn.00404390
push eax
lea edi, [ebp - 0x18]
mov eax, esi
call fcn.004040b0
lea edi, [ebp - 0x18]
mov dword [ebp - 0x18], 0x111
mov dword [ebp - 0x14], 0x4028a0
call fcn.00404390
push eax
lea edi, [ebp - 0x18]
mov eax, esi
call fcn.004040b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edi
call fcn.00405918
push 0x417318
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.004065ec
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.00405918
push 0x417318
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.004065ec
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edi
call fcn.00405918
push 0x417318
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.004065ec
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.00405918
push 0x417318
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.004065ec
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edi
call fcn.00405918
push 0x417318
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.004065ec
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.00405918
push 0x417318
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.004065ec
int3