Function at 0x460350
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x58
push 0xffffffffffffffff
push 0x4a6fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x60]
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
je 0x460654
cmp dword [esi + 8], 0
je 0x460654
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x460654
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x460654
lea ebx, [edi + 0x18]
mov ecx, ebx
call fcn.0044dc00
test al, al
jne 0x4603ec
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 0x4603e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x460659
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0x34], esi
mov byte [ebp + 0x38], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x28]
push 0
push eax
push esi
push ebx
lea ecx, [ebp]
call fcn.0043b230
mov byte [ebp - 4], 2
or ebx, 0xffffffff
cmp byte [edi + 0xa4], 0
jne 0x4605e5
cmp byte [edi + 0x11d], 0
jne 0x4605e5
lea eax, [ebp]
mov dword [ebp + 0x3c], 0x4bcca4
mov dword [ebp + 0x3c], 0x4bccb4
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x50], 0
mov byte [ebp - 4], 4
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp + 0x54]
call fcn.00402250
mov byte [ebp - 4], 5
lea eax, [ebp + 0x3c]
push 0
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x60]
call fcn.0043c960
mov byte [ebp - 4], 6
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x4604c6
call fcn.00474ac6
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4604c6
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4604ff
push 0
push 0
push eax
call fcn.00474bc8
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00432d90
push 0
push 0x43abe0
push esi
push 0x6e
push dword [0x4db394]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
jne 0x4604ff
mov byte [edi + 0x15c], 1
mov eax, dword [ebp + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x46052d
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x60], 0
push ecx
push eax
call edi
test eax, eax
je 0x460523
mov esi, dword [ebp + 0x60]
jmp 0x46052f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x46052f
xor esi, esi
mov byte [ebp - 4], 7
lea eax, [ebp - 0x30]
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460557
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x460572
push eax
call fcn.00474b72
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp + 0x54]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460590
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x3c], 0x4bccb4
test eax, eax
je 0x4605f3
push dword [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x44], 0xffffffff
je 0x4605da
lea eax, [ebp + 0x60]
mov dword [ebp + 0x60], 0
push eax
push dword [ebp + 0x40]
call edi
test eax, eax
je 0x4605da
cmp dword [ebp + 0x60], 0x103
jne 0x4605da
push 0
push dword [ebp + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4605f3
push 0
push 0
lea ecx, [ebp]
call fcn.0043b2e0
mov esi, eax
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 0xf
mov eax, ebx
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46061b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x460641
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
call fcn.00431e30
mov eax, esi
jmp 0x460659
mov eax, 0xe0000007
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 4