Function at 0x418960
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4224c0
push 0x416362
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginVirtualization]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x3c]
push eax
lea ecx, [edi + 0x28]
push ecx
mov ecx, edi
call fcn.00418c70
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4189cf
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x16bc
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call ebx
test eax, eax
je 0x4189f7
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xbb8
push esi
call ebx
jmp 0x418b74
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4189ac
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4189ac
test esi, esi
jle 0x418a18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov ecx, edi
call fcn.00418d10
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x418a52
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x265c
push esi
call ebx
test eax, eax
jne 0x4189e1
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x418a9e
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x418a9e
test esi, esi
jle 0x418a7f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.00418db0
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x418ac1
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x2404
push esi
call ebx
test eax, eax
je 0x418ae0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xbb8
push esi
call ebx
jmp 0x418b2e
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x418b74
mov eax, dword [ebp - 0x20]
test eax, eax
jbe 0x418b74
test esi, esi
jle 0x418b05
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov ebx, dword [ebp + 0x14]
mov dword [ebx], 0x200
push 0x200
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, edi
call fcn.00418e30
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x418b51
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x4e3e
push esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call edi
test eax, eax
je 0x418b97
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xbb8
push esi
call edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x418b2e
mov eax, dword [ebp - 0x20]
test eax, eax
jbe 0x418b2e
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00418bdc
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10