Function at 0x4f7410
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f7730
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 2
call fcn.004b6d38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4f7703
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x150], 0x128
lea edx, [ebp - 0x150]
mov eax, dword [ebp - 0x10]
call fcn.004b6d58
test eax, eax
je 0x4f76ec
jmp 0x4f76d6
lea eax, [ebp - 0x1a8]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.004047f4
mov eax, dword [ebp - 0x1a8]
mov edx, 0x4f7748
call fcn.00409418
test al, al
je 0x4f76d6
mov eax, dword [ebp - 0x148]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4f76ec
xor eax, eax
push ebp
push 0x4f76cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push 0xf00ff
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4f76b8
xor eax, eax
push ebp
push 0x4f76b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
je 0x4f769a
xor eax, eax
push ebp
push 0x4f7693
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.Userenv.dll_CreateEnvironmentBlock
cmp al, 1
jne 0x4f766d
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040460c
lea eax, [ebp - 0x194]
xor ecx, ecx
mov edx, 0x44
call fcn.00402f1c
mov dword [ebp - 0x194], 0x44
mov word [ebp - 0x164], 1
lea eax, [ebp - 0x1a4]
xor ecx, ecx
mov edx, 0x10
call fcn.00402f1c
test esi, esi
je 0x4f75aa
push 0x4f7760
push ebx
push 0x4f776c
push esi
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404904
jmp 0x4f75b4
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040460c
lea eax, [ebp - 0x20]
push eax
push 0xf00ff
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4f766d
xor eax, eax
push ebp
push 0x4f7666
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
je 0x4f7636
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x194]
push eax
push 0
mov eax, dword [ebp - 0x28]
push eax
push 0x430
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404a44
push eax
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x4f7646
push 0x4f7770
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f766d
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f769a
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x28], 0
je 0x4f7692
mov eax, dword [ebp - 0x28]
push eax
call sub.Userenv.dll_DestroyEnvironmentBlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f76b8
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f76ec
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
lea edx, [ebp - 0x150]
mov eax, dword [ebp - 0x10]
call fcn.004b6d78
test eax, eax
jne 0x4f7481
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f770a
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret