Function at 0x10128a7
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x1040190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x480], eax
mov eax, dword [ebp + 0x10]
push 0x1012b18
mov dword [ebp - 0x484], eax
call fcn.01002093
mov edi, dword [ebp + 8]
shr edi, 0x1e
and edi, 1
push 0
pop esi
jne 0x1024834
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x478], esi
cmp dword [ebp + 8], esi
je 0x1012a0a
call fcn.01012cf5
mov ebx, eax
cmp ebx, esi
jne 0x1024895
mov ebx, 0x100
lea eax, [ebp - 0x250]
cmp edi, esi
jne 0x1024845
push dword [0x1042c78]
push 0x1012cd8
push 0x1012b38
push ebx
push eax
call fcn.01004d53
add esp, 0x14
xor ecx, ecx
test eax, eax
setl cl
mov eax, ecx
cmp eax, esi
jne 0x102486a
push 0x44
lea eax, [ebp - 0x4e8]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x4e8], 0x44
mov dword [ebp - 0x4e0], 0x1012cb4
cmp edi, esi
jne 0x102486f
mov eax, dword [0x1040210]
or dword [ebp - 0x4a8], 0xffffffff
mov dword [ebp - 0x4b0], eax
mov eax, dword [0x1040214]
mov dword [ebp - 0x4ac], eax
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x4e8]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0x4bc], ebx
push esi
cmp dword [ebp - 0x480], esi
je 0x102487a
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1024885
mov eax, dword [ebp - 0x494]
push dword [ebp - 0x490]
mov dword [0x1040218], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x484]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_RegisterLogonProcess]
cmp edi, esi
jne 0x10248b1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x1d4]
cmp eax, esi
je 0x10248bc
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.01012b61
mov ebx, eax
cmp ebx, esi
jne 0x1024895
lea eax, [ebp - 0x478]
push eax
push esi
push esi
push esi
push 0x1004e68
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
mov ebx, eax
cmp ebx, esi
jne 0x1024895
push 0x104020c
push dword [ebp - 0x478]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov ebx, eax
cmp ebx, esi
jne 0x1024895
cmp edi, esi
jne 0x1012add
push 0x111
lea eax, [ebp - 0x474]
push eax
call fcn.01012bd7
test eax, eax
je 0x1012add
xor eax, eax
inc eax
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], esi
mov dword [ebp - 0x498], 2
lea eax, [ebp - 0x4a4]
push eax
push esi
push esi
push 0xa
push 6
lea eax, [ebp - 0x474]
push eax
push dword [0x104020c]
call dword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
mov ebx, eax
cmp ebx, esi
jne 0x10248c6
cmp dword [ebp - 0x478], esi
je 0x1012af2
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
cmp ebx, esi
jne 0x10248a4
push 0x1012b28
call fcn.01002093
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.010024b0
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x47c], eax
jmp 0x10128f3
push dword [ebp - 0x47c]
push dword [0x1042c78]
push 0x1012cd8
push 0x10248e8
push ebx
push eax
call fcn.01004d53
add esp, 0x18
jmp 0x101293e
push 0x7a
pop ebx
jmp 0x1024895
mov dword [ebp - 0x4e0], esi
jmp 0x101297d
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x10129d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, esi
je 0x1012add
push 0x10248d8
call fcn.01002093
jmp 0x1012add
push dword [ebp + 8]
call fcn.01002e94
jmp 0x1012afa
mov eax, dword [ebp - 0x47c]
jmp 0x1012a29
mov eax, dword [0x7ffe02d8]
jmp 0x1012a29
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1012ab3