Function at 0x48f0f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x24]
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x28]
push esi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2c]
push edi
mov dword [ebp - 0x30], eax
jne 0x48f351
cmp dword [ebp + 0x14], 0
jne 0x48f351
cmp dword [ebp + 0x18], 0
jne 0x48f351
call fcn.0048f080
test eax, eax
je 0x48f31f
call fcn.0048ef40
neg eax
sbb ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0x28
neg ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x48f1c5
lea eax, [ebp - 0x4c]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call esi
test eax, eax
je 0x48f1c5
mov eax, dword [ebp - 0x4c]
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x28]
call edi
lea eax, [ebp - 0x2c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48f221
lea eax, [ebp - 0x54]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call esi
test eax, eax
je 0x48f221
mov eax, dword [ebp - 0x54]
push 0
push 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x50]
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x2c]
call edi
call fcn.0048edc0
mov esi, eax
test esi, esi
je 0x48f242
push esi
call fcn.0048ee70
add esp, 4
xor ebx, ebx
cmp eax, 0x2000
sete bl
push esi
call edi
test ebx, ebx
je 0x48f31f
call fcn.0048ef40
neg eax
mov dword [ebp - 0x28], 0
sbb ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0xf01ff
inc ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48f28f
push dword [ebp - 0x28]
call fcn.0048ee70
add esp, 4
xor ebx, ebx
cmp eax, 0x3000
sete bl
push dword [ebp - 0x28]
call edi
test ebx, ebx
je 0x48f31f
call fcn.0048edc0
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [0x5441c8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x5436c0]
cmp ecx, dword [edx + 4]
jg 0x48f364
movzx eax, byte [0x5436bc]
neg eax
sbb eax, eax
and eax, 0x800
push eax
push 0
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push str.CreateProcessWithTokenW
push eax
call esi
test edi, edi
je 0x48f351
test eax, eax
je 0x48f351
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp + 0x1c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push 0
push edi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp + 0x1c]
push 0
push 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret
push 0x5436c0
call fcn.004c1ef5
add esp, 4
cmp dword [0x5436c0], 0xffffffff
jne 0x48f2c6
push str.AddDllDirectory
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
test eax, eax
push 0x5436c0
setne byte [0x5436bc]
call fcn.004c1eab
add esp, 4
jmp 0x48f2c6