Function at 0x461930
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x58
push 0xffffffffffffffff
push 0x4a9300
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x4db064]
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 0x461c34
cmp dword [esi + 8], 0
je 0x461c34
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x461c34
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x461c34
lea ebx, [edi + 0x18]
mov ecx, ebx
call fcn.0044f1a0
test al, al
jne 0x4619cc
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 0x4619c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x461c39
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.0043c620
mov byte [ebp - 4], 2
or ebx, 0xffffffff
cmp byte [edi + 0xa4], 0
jne 0x461bc5
cmp byte [edi + 0x11d], 0
jne 0x461bc5
lea eax, [ebp]
mov dword [ebp + 0x3c], 0x4bd630
mov dword [ebp + 0x3c], 0x4bd640
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.004023e0
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.0043dd60
mov byte [ebp - 4], 6
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x461aa6
call fcn.0047605e
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x461aa6
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x461adf
push 0
push 0
push eax
call fcn.00476160
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00433a00
push 0
push 0x43bfc0
push esi
push 0x6e
push dword [0x4dc394]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
jne 0x461adf
mov byte [edi + 0x15c], 1
mov eax, dword [ebp + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x461b0d
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x60], 0
push ecx
push eax
call edi
test eax, eax
je 0x461b03
mov esi, dword [ebp + 0x60]
jmp 0x461b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x461b0f
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 0x461b37
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 0x461b52
push eax
call fcn.0047610a
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 0x461b70
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], 0x4bd640
test eax, eax
je 0x461bd3
push dword [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x44], 0xffffffff
je 0x461bba
lea eax, [ebp + 0x60]
mov dword [ebp + 0x60], 0
push eax
push dword [ebp + 0x40]
call edi
test eax, eax
je 0x461bba
cmp dword [ebp + 0x60], 0x103
jne 0x461bba
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 0x461bd3
push 0
push 0
lea ecx, [ebp]
call fcn.0043c6d0
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 0x461bfb
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 0x461c21
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.00432aa0
mov eax, esi
jmp 0x461c39
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