Function at 0x472db0
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x4db4bd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
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 esi, ecx
mov dword [ebp + 0x28], esi
lea ebx, [esi + 0x18]
lea edi, [esi + 0x14]
push edi
lea ecx, [ebx + 0x18]
call fcn.00409950
mov ecx, ebx
call fcn.0045c840
push edi
lea ecx, [esi + 0x64]
call fcn.00409950
mov edi, esi
lea ecx, [esi + 0x4c]
mov dword [edi + 0x50], ebx
call fcn.0045cba0
test al, al
jne 0x472e3e
movzx eax, byte [edi + 0x11d]
mov ecx, dword [edi + 0x60]
push eax
push 1
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x472e34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x4732ef
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x5c]
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0x20], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00486f00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
push 0
push 0
call fcn.00487010
cmp dword [edi + 4], 7
jne 0x472f6b
mov eax, dword [ebx + 0xe0]
mov dword [ebp + 0x50], 0
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x24], eax
call fcn.004046f0
mov dword [ebp], eax
test eax, eax
je 0x473304
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, dword [ebp]
call esi
add eax, 0x10
mov dword [ebp + 0x4c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x4c]
push 0x4f2290
call fcn.00403700
test al, al
jne 0x472ef5
push 0x10
push 0x4f2290
lea ecx, [ebp + 0x4c]
call fcn.00403890
mov byte [ebp - 4], 4
lea eax, [ebp + 0x50]
mov esi, dword [ebp + 0x24]
mov ecx, esi
push eax
lea eax, [ebp + 0x4c]
push eax
push 0
call dword [0x4e1514]
lea ecx, [ebx + 0xe0]
call esi
mov byte [ebp + 0x4b], al
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp + 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x472f4a
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov edi, dword [ebp + 0x28]
mov al, byte [ebp + 0x4b]
test al, al
je 0x472f6b
mov eax, dword [ebp + 0x50]
cmp eax, 2
jne 0x472f5f
mov dword [edi + 4], 8
jmp 0x472f6b
cmp eax, 3
jne 0x472f6b
mov dword [edi + 4], 9
mov eax, dword [edi + 4]
cmp eax, 8
je 0x472f78
cmp eax, 9
jne 0x472fbd
cmp eax, 9
mov dword [ebp + 0x28], 0
lea eax, [ebp + 0x50]
mov dword [ebp + 0x50], 0
push eax
lea eax, [ebp + 0x28]
sete byte [ebp + 0x24]
push eax
push dword [ebp + 0x24]
lea ecx, [ebp + 0x10]
call fcn.00488320
cmp dword [ebp + 0x50], 0
je 0x473276
cmp byte [ebx + 0x84], 0
je 0x472fbd
cmp dword [ebp + 0x28], 0
je 0x473276
cmp byte [edi + 0x16a], 0
lea eax, [ebp + 0x10]
mov dword [ebp + 4], 0x4f2380
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
je 0x473105
lea eax, [ebp + 0x24]
mov dword [ebp + 0x2c], 0x4ee37c
push eax
push 1
push 0
lea ecx, [ebp + 0x10]
mov word [ebp + 0x30], 0x101
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x24], 0
call fcn.004884c0
cmp byte [ebp + 0x30], 0
je 0x47307c
cmp byte [ebp + 0x31], 0
je 0x47307c
cmp dword [ebp + 0x44], 0
je 0x47307c
mov eax, dword [ebp + 0x2c]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
lea ecx, [ebp + 0x2c]
call esi
mov edi, dword [ebp + 0x44]
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
mov eax, dword [edi]
push 0
push 0
push 0x67
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp + 0x4c], ebx
call fcn.00488a10
test eax, eax
je 0x47309a
mov ebx, eax
mov dword [ebp + 0x4c], ebx
cmp eax, 0xe0000008
je 0x4730b8
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x84], 0
jne 0x4730b8
mov ecx, dword [ebp + 8]
push 0
call fcn.00488630
test eax, eax
cmovne ebx, eax
mov dword [ebp + 0x4c], ebx
cmp byte [ebp + 0x30], 0
je 0x47327b
cmp byte [ebp + 0x31], 0
je 0x47327b
cmp dword [ebp + 0x44], 0
je 0x47327b
mov eax, dword [ebp + 0x2c]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
lea ecx, [ebp + 0x2c]
call esi
mov edi, dword [ebp + 0x44]
push ebx
push 0x67
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
jmp 0x47327b
cmp byte [edi + 0x16b], 0
lea eax, [ebp + 4]
mov dword [ebp + 0x30], 0x4ef844
mov dword [ebp + 0x38], 0xffffffff
mov dword [ebp + 0x30], 0x4ef854
mov dword [ebp + 0x3c], eax
je 0x4731d5
mov byte [ebp - 4], 8
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
push ebx
call fcn.00473b60
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x473170
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x50], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x473163
mov ebx, dword [ebp + 0x50]
jmp 0x473172
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp + 0x4c], eax
jmp 0x473175
xor ebx, ebx
mov dword [ebp + 0x4c], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x30], 0x4ef854
test eax, eax
je 0x47327b
push dword [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x38], 0xffffffff
je 0x4731c7
lea eax, [ebp + 0x50]
mov dword [ebp + 0x50], 0
push eax
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4731c7
cmp dword [ebp + 0x50], 0x103
jne 0x4731c7
push 0
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47327b
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
push ebx
call fcn.004734c0
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x473218
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x50], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47320b
mov ebx, dword [ebp + 0x50]
jmp 0x47321a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp + 0x4c], eax
jmp 0x47321d
xor ebx, ebx
mov dword [ebp + 0x4c], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x30], 0x4ef854
test eax, eax
je 0x47327b
push dword [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x38], 0xffffffff
je 0x47326b
lea eax, [ebp + 0x50]
mov dword [ebp + 0x50], 0
push eax
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47326b
cmp dword [ebp + 0x50], 0x103
jne 0x47326b
push 0
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47327b
xor ebx, ebx
mov dword [ebp + 0x4c], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00472d00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4732df
cmp dword [ebp + 0x14], 0
jle 0x4732cf
xor ecx, ecx
xor ebx, ebx
mov dword [ebp + 0x50], ecx
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 + 0x50]
inc ebx
mov eax, dword [ebp + 0x10]
add ecx, 0x16c
mov dword [ebp + 0x50], ecx
cmp ebx, dword [ebp + 0x14]
jl 0x4732a2
mov ebx, dword [ebp + 0x4c]
push eax
call fcn.004ab3c1
add esp, 4
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov eax, ebx
mov dword [ebp + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x54]
pop ebp
ret 4
push 0x80004005
call fcn.00402720
int3