Function at 0x466770
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x4b12a8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x68]
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
je 0x466a80
cmp dword [esi + 8], 0
je 0x466a80
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x466a80
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x466a80
lea ebx, [edi + 0x18]
mov ecx, ebx
call fcn.00452e50
test al, al
jne 0x46680c
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 0x466802
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x466a85
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0x50], esi
mov byte [ebp + 0x54], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x44]
push 0
push eax
push esi
push ebx
lea ecx, [ebp]
call fcn.0043fc20
mov byte [ebp - 4], 2
or ebx, 0xffffffff
cmp byte [edi + 0xa4], 0
jne 0x4669cd
cmp byte [edi + 0x11d], 0
jne 0x4669cd
lea eax, [ebp]
mov dword [ebp + 0x2c], 0x4c5754
mov dword [ebp + 0x2c], 0x4c5764
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x34]
sub ecx, 0x10
call fcn.004027f0
lea esi, [eax + 0x10]
mov dword [ebp + 0x5c], esi
mov byte [ebp - 4], 6
lea eax, [ebp + 0x2c]
push 0
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x60]
call fcn.00441770
mov byte [ebp - 4], 7
push ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x60]
call fcn.0046cdf0
cmp eax, 2
jne 0x4668e2
mov byte [edi + 0x15c], 1
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x466911
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x466904
mov edi, dword [ebp + 0x68]
jmp 0x466913
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp + 0x68], eax
jmp 0x466916
xor edi, edi
mov dword [ebp + 0x68], edi
mov byte [ebp - 4], 8
lea eax, [ebp - 0x30]
mov dword [ebp + 0x58], eax
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46693e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x58]
mov dword [ebp + 0x58], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x466959
push eax
call fcn.0047cb91
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x466974
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x2c], 0x4c5764
test eax, eax
je 0x4669de
push dword [ebp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x34], 0xffffffff
je 0x4669c2
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
push eax
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4669c2
cmp dword [ebp + 0x5c], 0x103
jne 0x4669c2
push 0
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4669de
push 0
push 0
lea ecx, [ebp]
call fcn.0043fce0
mov edi, eax
mov dword [ebp + 0x68], edi
mov byte [ebp - 4], 0x10
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x58], eax
mov byte [ebp - 4], 0x10
mov eax, ebx
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466a06
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 + 0x58], 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 0x466a2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x466a6e
xor esi, esi
cmp dword [ebp + 0x48], esi
jle 0x466a5e
xor edi, edi
lea ecx, [edi + eax]
mov eax, dword [ecx]
push 0
call dword [eax]
mov eax, dword [ebp + 0x44]
lea edi, [edi + 0x16c]
inc esi
cmp esi, dword [ebp + 0x48]
jl 0x466a43
mov edi, dword [ebp + 0x68]
push eax
call fcn.00487b24
add esp, 4
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov eax, edi
mov dword [ebp + 0x4c], 0
jmp 0x466a85
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