Function at 0x401470
Capabilities:
Print debug messages
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4486b6
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x458ad0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x458ad0]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x134], 0
mov eax, dword [0x45cfb4]
mov esi, eax
test eax, eax
je 0x4014db
push eax
call fcn.00409980
push esi
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0x20], 0x103
mov byte [esp + 0x17], 0
jmp 0x4014f0
cmp dword [0x45d018], 0
jne 0x4014fe
mov byte [esp + 0x17], 1
mov ecx, dword [0x45d014]
mov ebp, dword [ecx]
mov ebx, dword [0x45cffc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov esi, dword [0x45d014]
test ebx, ebx
je 0x401526
cmp ebx, dword [0x45cffc]
je 0x40152b
call fcn.004293c8
cmp ebp, esi
je 0x401779
test ebx, ebx
jne 0x401672
call fcn.004293c8
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x40154c
call fcn.004293c8
lea esi, [ebp + 0x28]
mov ecx, 0x34
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x100]
cmp esi, 3
jne 0x4016a2
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
je 0x401680
test ebx, ebx
jne 0x401679
call fcn.004293c8
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x4015a4
call fcn.004293c8
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push 0
push eax
lea ecx, [esp + 0x114]
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], 0
mov byte [esp + 0x118], 0
call fcn.00403f10
push 4
push 0x44e188
lea eax, [esp + 0x110]
mov byte [esp + 0x13c], 1
call fcn.004050c0
cmp dword [esp + 0x120], 0x10
mov eax, dword [esp + 0x10c]
jae 0x401609
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
lea esi, [esp + 0x18]
mov edi, ebx
call fcn.00405e00
push ebp
push edi
lea ecx, [esp + 0x34]
push ecx
call fcn.004038a0
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov byte [esp + 0x134], 0
cmp dword [esp + 0x120], 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
jb 0x401691
mov edx, dword [esp + 0x10c]
push edx
call fcn.0041e1fe
mov eax, dword [0x45d110]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x401514
mov eax, dword [ebx]
jmp 0x401542
mov eax, dword [ebx]
jmp 0x40159a
lea esi, [esp + 0x18]
call fcn.00405e00
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [0x45d110]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x401514
mov eax, dword [esp + 0x34]
test eax, eax
je 0x401514
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x4016e8
cmp esi, 2
jne 0x4016e8
xor esi, esi
mov edi, edi
mov eax, dword [esp + esi*4 + 0x38]
test eax, eax
je 0x4016e2
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc esi
cmp esi, 0x32
jl 0x4016d0
sub esp, 0xd0
mov ecx, 0x34
lea esi, [esp + 0x104]
mov edi, esp
mov dword [esp + 0x1d0], 3
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
jne 0x401775
call fcn.004293c8
cmp ebp, dword [ebx + 0x18]
jne 0x40171c
call fcn.004293c8
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x114], esp
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00403f10
call fcn.00402620
mov ecx, dword [0x45d110]
add esp, 0xec
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [esp + 0x18]
call fcn.00405e00
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
jmp 0x401514
mov ebx, dword [ebx]
jmp 0x401712
cmp byte [esp + 0x17], 0
je 0x4014f0
push 0x44e190
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esi, dword [esp + 0x24]
cmp dword [esi + 0x24], 0x10
jb 0x4017ad
mov edx, dword [esi + 0x10]
push edx
call fcn.0041e1fe
add esp, 4
mov dword [esi + 0x24], 0xf
mov dword [esi + 0x20], 0
mov byte [esi + 0x10], 0
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00428e93
add esp, 0x124
ret 4