Function at 0x472640
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x4db388
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp + 0x64], edi
mov esi, dword [ebp + 0x78]
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
je 0x472a8f
cmp dword [esi + 8], 0
je 0x472a8f
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x472a8f
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x472a8f
cmp byte [edi + 0x9c], 0
mov byte [ebp + 0x6f], 0
jne 0x4726d2
lea eax, [ebp + 0x6f]
push eax
push esi
call fcn.004756d0
test al, al
jne 0x4726d2
xor eax, eax
cmp byte [ebp + 0x6f], al
sete al
add eax, 0xe0000019
jmp 0x472a94
lea ebx, [edi + 0x18]
mov ecx, ebx
call fcn.0045ca50
test al, al
jne 0x47270c
movzx eax, byte [edi + 0x11d]
mov ecx, dword [ebx + 0x14]
push eax
push 1
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x472702
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x472a94
mov dword [ebp + 0x30], 0x4f40ac
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0x5c], esi
mov byte [ebp + 0x60], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x50]
push dword [edi + 4]
lea ecx, [ebp]
push eax
push esi
push ebx
call fcn.00447880
mov byte [ebp - 4], 2
cmp byte [edi + 0x16c], 0
je 0x47298f
lea eax, [ebp]
mov dword [ebp + 0x34], 0x4ef844
mov dword [ebp + 0x34], 0x4ef854
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x34]
sub ecx, 0x10
call fcn.00402750
lea esi, [eax + 0x10]
mov dword [ebp + 0x4c], esi
mov byte [ebp - 4], 5
lea eax, [ebp + 0x34]
push 1
push eax
lea eax, [ebp + 0x4c]
push eax
push ebx
lea ecx, [ebp - 0x60]
call fcn.00449800
mov byte [ebp - 4], 6
push ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x60]
call fcn.00479240
cmp eax, 2
jne 0x4727db
mov byte [edi + 0x15c], 1
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x472805
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4727fd
mov eax, dword [ebp + 0x68]
jmp 0x472807
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x472807
xor eax, eax
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x30]
mov dword [ebp + 0x2c], eax
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x30]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x472844
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e1514]
mov ecx, ebx
call edi
or ebx, 0xffffffff
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
mov dword [ebp + 0x2c], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x47285f
push eax
call fcn.0048a1cb
mov byte [ebp - 4], 3
lea ecx, [esi - 0x10]
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x472884
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x34], 0x4ef854
test eax, eax
je 0x4728db
push dword [ebp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x3c], 0xffffffff
je 0x4728d2
lea eax, [ebp + 0x4c]
mov dword [ebp + 0x4c], 0
push eax
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4728d2
cmp dword [ebp + 0x4c], 0x103
jne 0x4728d2
push 0
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0x64]
mov esi, dword [ebp + 0x78]
mov ebx, dword [ebp + 0x68]
test ebx, ebx
je 0x4729a7
cmp ebx, 0xe0000011
je 0x4729a7
cmp ebx, 0xe0000027
je 0x4729a7
cmp ebx, 0xe0000008
je 0x4729a7
cmp ebx, 0x4c7
je 0x4729a7
cmp ebx, 0x642
je 0x4729a7
cmp ebx, 0xe0000029
je 0x4729a7
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0043bd20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x472a7d
cmp dword [ebp + 0x54], 0
jle 0x472a6d
xor ecx, ecx
xor ebx, ebx
mov dword [ebp + 0x64], ecx
nop
lea edi, [ecx + eax]
mov eax, dword [edi]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0x64]
inc ebx
mov eax, dword [ebp + 0x50]
add ecx, 0x16c
mov dword [ebp + 0x64], ecx
cmp ebx, dword [ebp + 0x54]
jl 0x472960
jmp 0x472a6a
lea eax, [ebp + 0x30]
push eax
push 0
lea ecx, [ebp]
call fcn.00447960
mov ebx, eax
mov dword [ebp + 0x68], ebx
jmp 0x4728e4
cmp byte [edi + 0x9c], 0
je 0x472a0c
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0043bd20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x472a7d
cmp dword [ebp + 0x54], 0
jle 0x472a6d
xor ecx, ecx
xor ebx, ebx
mov dword [ebp + 0x64], ecx
nop
lea edi, [ecx + eax]
mov eax, dword [edi]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0x64]
inc ebx
mov eax, dword [ebp + 0x50]
add ecx, 0x16c
mov dword [ebp + 0x64], ecx
cmp ebx, dword [ebp + 0x54]
jl 0x4729e0
jmp 0x472a6a
mov edx, dword [esi + 0x1c]
mov ecx, esi
call fcn.00481d30
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0043bd20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x472a7d
cmp dword [ebp + 0x54], 0
jle 0x472a6d
xor ecx, ecx
xor ebx, ebx
mov dword [ebp + 0x64], ecx
nop dword [eax]
lea edi, [ecx + eax]
mov eax, dword [edi]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0x64]
inc ebx
mov eax, dword [ebp + 0x50]
add ecx, 0x16c
mov dword [ebp + 0x64], ecx
cmp ebx, dword [ebp + 0x54]
jl 0x472a40
mov ebx, dword [ebp + 0x68]
push eax
call fcn.004ab3c1
add esp, 4
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0
mov eax, ebx
mov dword [ebp + 0x58], 0
jmp 0x472a94
mov eax, 0xe0000007
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret 4