Function at 0x1005af70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x74], 0
push 0x44
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.100a57f0
add esp, 0xc
mov dword [ebp - 0x2c], 0
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0x80000
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x10]
push edx
push 0
push 1
push 0
call dword [0x10146888]
cmp dword [ebp - 0x10], 0
jne 0x1005afed
xor eax, eax
jmp 0x1005b1a1
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.100adf4a
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1005b00b
xor eax, eax
jmp 0x1005b1a1
lea ecx, [ebp - 0x10]
push ecx
push 0
push 1
mov edx, dword [ebp - 4]
push edx
call dword [0x10146888]
test eax, eax
jne 0x1005b034
mov eax, dword [ebp - 4]
push eax
call fcn.100a9867
add esp, 4
xor eax, eax
jmp 0x1005b1a1
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x80
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1005b058
jmp 0x1005b152
push 0
push 0
push 4
lea edx, [ebp - 0xc]
push edx
push 0x20000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x10146878]
test eax, eax
jne 0x1005b081
jmp 0x1005b152
mov ecx, dword [ebp + 0x18]
and ecx, 2
je 0x1005b092
mov edx, dword [ebp - 8]
or edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x18]
and eax, 4
je 0x1005b0a3
mov ecx, dword [ebp - 8]
or ecx, 2
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x1c], 0
je 0x1005b0bb
push 0x44
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp - 0x74]
push eax
call fcn.100a5270
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1005b0d9
jmp 0x1005b152
lea edx, [ebp - 0x14]
push edx
push 1
push 0
push 0
push 0xf01ff
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1005b0fa
jmp 0x1005b152
mov dword [ebp - 0x74], 0x48
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1005b152
cmp dword [ebp + 0x20], 0
je 0x1005b152
push 0x10
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.100a5270
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x1005b162
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x1005b172
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x1005b182
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x1005b19e
mov edx, dword [ebp - 4]
push edx
call dword [0x10146880]
mov eax, dword [ebp - 4]
push eax
call fcn.100a9867
add esp, 4
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x1c