Function at 0x460670
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x4a70e0
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 esi, ecx
mov dword [ebp + 0x3c], esi
mov ebx, dword [ebp + 0x68]
mov eax, dword [ebx + 0x18]
cmp dword [eax - 0xc], 0
je 0x460aa2
cmp dword [ebx + 8], 0
je 0x460aa2
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x460aa2
mov eax, dword [ebx + 0x14]
cmp dword [eax - 0xc], 0
je 0x460aa2
cmp byte [esi + 0x9c], 0
mov byte [ebp + 0x6b], 0
jne 0x460702
lea eax, [ebp + 0x6b]
push eax
push ebx
call fcn.00462f50
test al, al
jne 0x460702
xor eax, eax
cmp byte [ebp + 0x6b], al
sete al
add eax, 0xe0000019
jmp 0x460aa7
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.0044dc00
test al, al
jne 0x46073c
movzx eax, byte [esi + 0x11d]
mov ecx, dword [edi + 0x14]
push eax
push 1
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x460732
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x460aa7
mov dword [ebp + 0x40], 0x4c1528
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0x34], ebx
mov byte [ebp + 0x38], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x28]
push dword [esi + 4]
lea ecx, [ebp]
push eax
push ebx
push edi
call fcn.0043b230
mov byte [ebp - 4], 2
or edi, 0xffffffff
cmp byte [esi + 0x16c], 0
je 0x460935
lea eax, [ebp]
mov dword [ebp + 0x44], 0x4bcca4
mov dword [ebp + 0x44], 0x4bccb4
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov byte [ebp - 4], 3
lea eax, [ebx + 0x34]
push eax
lea ecx, [ebp + 0x5c]
call fcn.00402250
mov byte [ebp - 4], 4
lea eax, [ebp + 0x44]
push 1
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x60]
call fcn.0043c960
mov byte [ebp - 4], 5
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp + 0x68], eax
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x460812
call fcn.00474ac6
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x460812
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46084d
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 dword [ebp + 0x68]
push 0x6e
push dword [0x4db394]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
jne 0x46084d
mov byte [esi + 0x15c], 1
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x460879
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x46086f
mov esi, dword [ebp + 0x68]
jmp 0x46087b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x46087b
xor esi, esi
mov byte [ebp - 4], 6
lea eax, [ebp - 0x30]
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4608a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x58]
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4608be
push eax
call fcn.00474b72
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp + 0x5c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4608dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x44], 0x4bccb4
test eax, eax
je 0x460945
push dword [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x4c], 0xffffffff
je 0x46092a
lea eax, [ebp + 0x68]
mov dword [ebp + 0x68], 0
push eax
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x46092a
cmp dword [ebp + 0x68], 0x103
jne 0x46092a
push 0
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x460945
lea eax, [ebp + 0x40]
push eax
push 0
lea ecx, [ebp]
call fcn.0043b2e0
mov esi, eax
test esi, esi
je 0x4609e9
cmp esi, 0xe0000011
je 0x4609e9
cmp esi, 0xe0000027
je 0x4609e9
cmp esi, 0xe0000008
je 0x4609e9
cmp esi, 0x4c7
je 0x4609e9
cmp esi, 0x642
je 0x4609e9
cmp esi, 0xe0000029
je 0x4609e9
mov byte [ebp - 4], 0xe
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 0xe
mov eax, edi
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4609ad
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 + 0x68], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4609d3
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 0x460aa7
mov eax, dword [ebp + 0x3c]
cmp byte [eax + 0x9c], 0
je 0x460a45
mov byte [ebp - 4], 0x13
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 0x13
mov eax, edi
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460a1d
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 + 0x68], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x460a43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4609d3
mov edx, dword [ebx + 0x1c]
mov ecx, ebx
call fcn.0046d7b0
mov byte [ebp - 4], 0x18
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 0x18
mov eax, edi
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460a77
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 + 0x68], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x460a9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4609d3
mov eax, 0xe0000007
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x60]
pop ebp
ret 4