Function at 0x46a7d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0df0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x509074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x18]
lea edi, [esi + 0x14]
push edi
lea ecx, [ebx + 0x18]
call fcn.00409440
mov ecx, ebx
call fcn.00456930
push edi
lea ecx, [esi + 0x64]
call fcn.00409440
mov edi, esi
lea ecx, [esi + 0x4c]
mov dword [edi + 0x50], ebx
call fcn.00456c80
test al, al
jne 0x46a868
movzx eax, byte [edi + 0x11d]
mov ecx, dword [edi + 0x60]
push eax
push 1
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x46a84f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0047d4c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
push 0
push 0
call fcn.0047d5d0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x48], 0x4e3b8c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4e66c8
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x48], 0x4e3b9c
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push esi
call fcn.0046b110
mov eax, dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x46a93e
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push eax
call esi
test eax, eax
je 0x46a934
mov ebx, dword [ebp + 8]
jmp 0x46a940
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x46a940
xor ebx, ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], 0x4e3b9c
test eax, eax
je 0x46a993
push dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x40], 0xffffffff
je 0x46a98a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x44]
call esi
test eax, eax
je 0x46a98a
cmp dword [ebp + 8], 0x103
jne 0x46a98a
push 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.0046aa10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x46a9e8
xor esi, esi
cmp dword [ebp - 0x2c], esi
jle 0x46a9d8
xor edi, edi
nop dword [eax]
lea ecx, [edi + eax]
mov eax, dword [ecx]
push 0
call dword [eax]
mov eax, dword [ebp - 0x30]
lea edi, [edi + 0x16c]
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x46a9c0
push eax
call fcn.004a09b1
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, ebx
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4