Function at 0x46a1b0
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x4d1928
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x50a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp + 0x2c], ebx
mov esi, dword [ebp + 0x74]
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
je 0x46a66a
cmp dword [esi + 8], 0
je 0x46a66a
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x46a66a
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x46a66a
cmp byte [ebx + 0x9c], 0
mov byte [ebp + 0x6b], 0
jne 0x46a242
lea eax, [ebp + 0x6b]
push eax
push esi
call fcn.0046d090
test al, al
jne 0x46a242
xor eax, eax
cmp byte [ebp + 0x6b], al
sete al
add eax, 0xe0000019
jmp 0x46a66f
lea edi, [ebx + 0x18]
mov ecx, edi
call fcn.00456a60
test al, al
jne 0x46a27c
movzx eax, byte [ebx + 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 0x46a272
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x46a66f
mov dword [ebp + 0x30], 0x4ecdcc
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0x5c], esi
mov byte [ebp + 0x60], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x50]
push dword [ebx + 4]
lea ecx, [ebp]
push eax
push esi
push edi
call fcn.00443590
mov byte [ebp - 4], 2
or edi, 0xffffffff
cmp byte [ebx + 0x16c], 0
je 0x46a50d
lea eax, [ebp]
mov dword [ebp + 0x38], 0x4e856c
mov dword [ebp + 0x38], 0x4e857c
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x34]
sub ecx, 0x10
call fcn.004025a0
lea esi, [eax + 0x10]
mov dword [ebp + 0x34], esi
mov byte [ebp - 4], 5
lea eax, [ebp + 0x38]
push 1
push eax
lea eax, [ebp + 0x34]
push eax
lea eax, [ebx + 0x18]
push eax
lea ecx, [ebp - 0x60]
call fcn.004450f0
mov byte [ebp - 4], 6
push ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x60]
call fcn.004704e0
cmp eax, 2
jne 0x46a34d
mov byte [ebx + 0x15c], 1
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x46a379
lea ecx, [ebp + 0x64]
mov dword [ebp + 0x64], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x46a36f
mov ebx, dword [ebp + 0x64]
jmp 0x46a37b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x46a37b
xor ebx, ebx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x30]
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a3a3
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 + 0x64], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x46a3be
push eax
call fcn.004802e1
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46a3d9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x3c]
mov dword [ebp + 0x38], 0x4e857c
test eax, eax
je 0x46a430
push dword [ebp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x40], 0xffffffff
je 0x46a427
lea eax, [ebp + 0x64]
mov dword [ebp + 0x64], 0
push eax
push dword [ebp + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x46a427
cmp dword [ebp + 0x64], 0x103
jne 0x46a427
push 0
push dword [ebp + 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x74]
test ebx, ebx
je 0x46a522
cmp ebx, 0xe0000011
je 0x46a522
cmp ebx, 0xe0000027
je 0x46a522
cmp ebx, 0xe0000008
je 0x46a522
cmp ebx, 0x4c7
je 0x46a522
cmp ebx, 0x642
je 0x46a522
cmp ebx, 0xe0000029
je 0x46a522
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x74], eax
mov byte [ebp - 4], 0xf
mov eax, edi
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a4ab
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 + 0x74], 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 0x46a4d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x46a658
xor esi, esi
cmp dword [ebp + 0x54], esi
jle 0x46a648
xor edi, edi
lea ecx, [eax + edi]
mov eax, dword [ecx]
push 0
call dword [eax]
mov eax, dword [ebp + 0x50]
lea edi, [edi + 0x16c]
inc esi
cmp esi, dword [ebp + 0x54]
jl 0x46a4f0
jmp 0x46a648
lea eax, [ebp + 0x30]
push eax
push 0
lea ecx, [ebp]
call fcn.00443650
mov ebx, eax
jmp 0x46a433
mov eax, dword [ebp + 0x2c]
cmp byte [eax + 0x9c], 0
je 0x46a5bd
mov byte [ebp - 4], 0x14
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x74], eax
mov byte [ebp - 4], 0x14
mov eax, edi
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a55a
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 + 0x74], 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 0x46a580
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x46a658
xor esi, esi
cmp dword [ebp + 0x54], esi
jle 0x46a648
xor edi, edi
nop
lea ecx, [eax + edi]
mov eax, dword [ecx]
push 0
call dword [eax]
mov eax, dword [ebp + 0x50]
lea edi, [edi + 0x16c]
inc esi
cmp esi, dword [ebp + 0x54]
jl 0x46a5a0
jmp 0x46a648
mov edx, dword [esi + 0x1c]
mov ecx, esi
call fcn.004786d0
mov byte [ebp - 4], 0x19
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x74], eax
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a5ef
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 + 0x74], 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 0x46a615
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x46a658
xor esi, esi
cmp dword [ebp + 0x54], esi
jle 0x46a648
xor edi, edi
nop dword [eax]
lea ecx, [eax + edi]
mov eax, dword [ecx]
push 0
call dword [eax]
mov eax, dword [ebp + 0x50]
lea edi, [edi + 0x16c]
inc esi
cmp esi, dword [ebp + 0x54]
jl 0x46a630
push eax
call fcn.004a12b1
add esp, 4
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0
mov eax, ebx
mov dword [ebp + 0x58], 0
jmp 0x46a66f
mov eax, 0xe0000007
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x6c]
pop ebp
ret 4