Function at 0x461c50
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x4a9410
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 esi, ecx
mov dword [ebp + 0x3c], esi
mov ebx, dword [ebp + 0x68]
mov eax, dword [ebx + 0x18]
cmp dword [eax - 0xc], 0
je 0x462082
cmp dword [ebx + 8], 0
je 0x462082
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x462082
mov eax, dword [ebx + 0x14]
cmp dword [eax - 0xc], 0
je 0x462082
cmp byte [esi + 0x9c], 0
mov byte [ebp + 0x6b], 0
jne 0x461ce2
lea eax, [ebp + 0x6b]
push eax
push ebx
call fcn.00464580
test al, al
jne 0x461ce2
xor eax, eax
cmp byte [ebp + 0x6b], al
sete al
add eax, 0xe0000019
jmp 0x462087
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.0044f1a0
test al, al
jne 0x461d1c
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 0x461d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x462087
mov dword [ebp + 0x40], 0x4c1dc8
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.0043c620
mov byte [ebp - 4], 2
or edi, 0xffffffff
cmp byte [esi + 0x16c], 0
je 0x461f15
lea eax, [ebp]
mov dword [ebp + 0x44], 0x4bd630
mov dword [ebp + 0x44], 0x4bd640
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.004023e0
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.0043dd60
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 0x461df2
call fcn.0047605e
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x461df2
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x461e2d
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 dword [ebp + 0x68]
push 0x6e
push dword [0x4dc394]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
jne 0x461e2d
mov byte [esi + 0x15c], 1
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x461e59
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x461e4f
mov esi, dword [ebp + 0x68]
jmp 0x461e5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x461e5b
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 0x461e83
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 0x461e9e
push eax
call fcn.0047610a
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 0x461ebc
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], 0x4bd640
test eax, eax
je 0x461f25
push dword [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x4c], 0xffffffff
je 0x461f0a
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 0x461f0a
cmp dword [ebp + 0x68], 0x103
jne 0x461f0a
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 0x461f25
lea eax, [ebp + 0x40]
push eax
push 0
lea ecx, [ebp]
call fcn.0043c6d0
mov esi, eax
test esi, esi
je 0x461fc9
cmp esi, 0xe0000011
je 0x461fc9
cmp esi, 0xe0000027
je 0x461fc9
cmp esi, 0xe0000008
je 0x461fc9
cmp esi, 0x4c7
je 0x461fc9
cmp esi, 0x642
je 0x461fc9
cmp esi, 0xe0000029
je 0x461fc9
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 0x461f8d
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 0x461fb3
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 0x462087
mov eax, dword [ebp + 0x3c]
cmp byte [eax + 0x9c], 0
je 0x462025
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 0x461ffd
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 0x462023
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x461fb3
mov edx, dword [ebx + 0x1c]
mov ecx, ebx
call fcn.0046ee20
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 0x462057
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 0x46207d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x461fb3
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