Function at 0x4087b8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x408a94
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
call fcn.004084c0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
lea edx, [ebp - 0xe8]
mov eax, dword [ebp - 8]
call fcn.00408660
test al, al
je 0x408a6e
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebp - 0xc]
jne 0x4088a3
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jb 0x4088a3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xec]
call fcn.00408080
mov eax, dword [ebp - 0xec]
call fcn.004034c8
push eax
lea eax, [ebp - 0xf0]
call fcn.00407fe0
mov eax, dword [ebp - 0xf0]
call fcn.004034c8
push eax
call sub.kernel32.dll_LoadLibraryA
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0x40
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call edi
jmp 0x408914
call fcn.004084b4
test al, al
je 0x408914
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004085ac
test al, al
je 0x4088d7
push 0x40
push 0x3000
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [0x40dc90]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x408914
mov eax, ebx
call fcn.00408518
test al, al
je 0x408914
push 0x40
push 0x3000
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x40dc90]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x408914
mov ecx, dword [ebp - 0x18]
mov edx, esi
mov eax, ebx
call fcn.00408530
cmp dword [ebp - 0x18], 0
je 0x408a4a
lea eax, [ebp - 0xf4]
call fcn.00408130
mov eax, dword [ebp - 0xf4]
call fcn.004034c8
push eax
lea eax, [ebp - 0xf8]
call fcn.00407fe0
mov eax, dword [ebp - 0xf8]
call fcn.004034c8
push eax
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x44]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push eax
call edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x408a24
mov dword [ebp - 0xe8], 0x10007
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jne 0x4089ae
mov eax, dword [ebx + 0x34]
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x38], eax
jmp 0x4089b4
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x38], eax
push 0x408aa8
lea eax, [ebp - 0xfc]
call fcn.00407fe0
mov eax, dword [ebp - 0xfc]
call fcn.004034c8
push eax
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call ebx
push 0x408abc
lea eax, [ebp - 0x100]
call fcn.00407fe0
mov eax, dword [ebp - 0x100]
call fcn.004034c8
push eax
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push eax
call ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x408a6e
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov dword [ebp - 4], 0xffffffff
jmp 0x408a6e
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a9b
lea eax, [ebp - 0x100]
mov edx, 6
call fcn.004031a0
lea eax, [ebp - 8]
call fcn.0040317c
ret