Function at 0x4ae2c0
Capabilities:
Accept command line arguments
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x24]
push ebx
mov dword [esp + 0x3c], eax
xor ebx, ebx
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x2c]
push esi
push edi
mov dword [esp + 0x4c], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4ae37c
mov esi, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4ae330
push dword [0x5b1d70]
sub esi, ecx
sar esi, 1
add esi, esi
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, eax
xor edx, edx
lea eax, [ecx + 8]
mov dword [esp + 0x14], ecx
push esi
push dword [esp + 0x20]
mov dword [ecx + 4], eax
mov dword [ecx], esi
mov word [eax + esi], dx
push dword [ecx + 4]
call fcn.00521a30
mov eax, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0xc]
or esi, 0xffffffff
test edx, edx
je 0x4ae3d5
mov esi, edx
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4ae390
push dword [0x5b1d70]
sub esi, ecx
sar esi, 1
add esi, esi
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor eax, eax
lea ecx, [edi + 8]
push esi
push dword [esp + 0x10]
mov dword [edi + 4], ecx
mov dword [edi], esi
mov word [ecx + esi], ax
push dword [edi + 4]
call fcn.00521a30
add esp, 0xc
jmp 0x4ae452
test eax, eax
je 0x4ae452
lea ecx, [esp + 0x30]
push ecx
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4ae452
push dword [eax]
call sym.ProcessHacker.exe_PhCreateString
push dword [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4ae452
mov ecx, dword [edi + 4]
lea edx, [esp + 0x98]
call fcn.004ca2c0
test eax, eax
jns 0x4ae452
lea ecx, [ecx]
cmp eax, 0xc0000043
je 0x4ae452
cmp eax, 0xc0000022
je 0x4ae452
mov ecx, dword [edi + 4]
call fcn.004b1320
mov ecx, dword [esp + 0xc]
mov edi, eax
add ecx, 0xfffffff8
mov eax, esi
test edi, edi
jne 0x4ae445
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ae452
call fcn.004b3960
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ae49b
mov esi, eax
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4ae460
push dword [0x5b1d70]
sub esi, ecx
sar esi, 1
add esi, esi
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
lea ecx, [ebx + 8]
mov dword [ebx], esi
mov dword [ebx + 4], ecx
mov word [ecx + esi], ax
mov eax, dword [esp + 0x24]
jmp 0x4ae4f6
test edi, edi
je 0x4ae508
nop
cmp dword [edi], ebx
je 0x4ae508
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push 0x5c
push edi
call sym.ProcessHacker.exe_PhSplitStringRefAtLastChar
test al, al
jne 0x4ae4be
xor ebx, ebx
jmp 0x4ae508
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x4ae4cf
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov ebx, eax
jmp 0x4ae508
push dword [0x5b1d70]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 8]
mov dword [ebx + 4], eax
mov dword [ebx], esi
mov word [eax + esi], cx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4ae508
push esi
push eax
push dword [ebx + 4]
call fcn.00521a30
add esp, 0xc
mov esi, dword ds:[ebp + 0x1c]
mov ecx, esi
shr ecx, 5
mov eax, esi
and ecx, 1
mov edx, ecx
or edx, 2
and al, 0x40
mov eax, esi
cmove edx, ecx
mov ecx, edx
or ecx, 4
and al, 4
mov eax, esi
cmove ecx, edx
mov edx, ecx
or edx, 0x10
and al, 0x10
mov eax, esi
cmove edx, ecx
mov ecx, edx
or ecx, 0x400
and al, 2
mov eax, esi
cmove ecx, edx
mov edx, ecx
or edx, 0x80000
and al, 0x80
mov eax, esi
cmove edx, ecx
mov ecx, edx
or ecx, 0x1000000
and al, 8
mov eax, esi
cmove ecx, edx
mov edx, ecx
or edx, 0x4000000
and eax, 0x100
cmove edx, ecx
cmp dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
jne 0x4ae61d
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x50], 0x44
cmp dword [esp + 0x18], 0
je 0x4ae68c
test ebx, ebx
je 0x4ae631
mov ecx, dword [ebx + 4]
mov dword [esp + 0x24], ecx
jmp 0x4ae639
mov dword [esp + 0x24], 0
mov eax, dword ds:[esp + 0x14]
test eax, eax
je 0x4ae649
mov edx, dword [eax + 4]
jmp 0x4ae64b
xor edx, edx
test edi, edi
je 0x4ae654
mov ecx, dword [edi + 4]
jmp 0x4ae656
xor ecx, ecx
cmp dword [esp + 0x10], 0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x54]
cmovne eax, dword [esp + 0x14]
and esi, 1
push eax
push dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esp + 0x1c]
push esi
push 0
push 0
push edx
push ecx
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x4ae6eb
test ebx, ebx
je 0x4ae699
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], ecx
jmp 0x4ae6a1
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ae6ae
mov edx, dword [eax + 4]
jmp 0x4ae6b0
xor edx, edx
test edi, edi
je 0x4ae6b9
mov ecx, dword [edi + 4]
jmp 0x4ae6bb
xor ecx, ecx
cmp dword [esp + 0x10], 0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x54]
cmovne eax, dword [esp + 0x14]
and esi, 1
push eax
push dword [esp + 0x20]
push dword [esp + 0x38]
push dword [esp + 0x1c]
push esi
push 0
push 0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4ae6f3
xor esi, esi
jmp 0x4ae708
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4ae708
movzx esi, si
or esi, 0xc0070000
test edi, edi
je 0x4ae727
lea ecx, [edi - 8]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ae72a
lea esp, [esp]
call fcn.004b3960
jmp 0x4ae72a
or edi, 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ae745
lea ecx, [eax - 8]
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ae745
nop
call fcn.004b3960
test ebx, ebx
je 0x4ae759
lea ecx, [ebx - 8]
lock xadd dword [ecx + 4], edi
dec edi
jne 0x4ae759
call fcn.004b3960
test esi, esi
js 0x4ae79d
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4ae772
mov eax, dword [esp + 0x3c]
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
test ecx, ecx
je 0x4ae782
mov dword [ecx], eax
jmp 0x4ae78d
test eax, eax
je 0x4ae78d
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4ae7ac
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
jmp 0x4ae7bb
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4ae7ac
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4ae7bb
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0xc4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x28