Function at 0x10012a7f
Capabilities:
Create process on windows

Disassembly:
push 0x98
mov eax, 0x10033a5a
call fcn.10010ff1
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x44
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
pop esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0xa4]
push ebx
push eax
mov dword [ebp - 0x48], ebx
call fcn.10015810
push 0x10
lea eax, [ebp - 0x60]
mov dword [ebp - 0xa4], esi
push ebx
push eax
call fcn.10015810
add esp, 0x18
mov dword [ebp - 0x18], ebx
xor eax, eax
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
call fcn.10012fd6
test al, al
je 0x10012b0e
pop esi
push edx
pop esp
pop ebx
pop esp
pop ebx
push ebp
push eax
push edx
pop edx
pop esi
pop ecx
pop ecx
pop edx
pop eax
push edi
pop ecx
push ecx
push ebx
push eax
push esp
push edi
push ebp
pop esp
pop esi
push ebp
call fcn.1001357f
test al, al
je 0x10012b34
push edx
push ecx
pop ecx
pop esp
push ecx
push ebx
push esp
pop esp
push esp
push edi
pop edx
push ebx
pop edi
push eax
pop edi
pop esp
pop eax
pop esi
push ecx
push ecx
pop esp
pop edi
pop ebp
push edx
pop esp
push ecx
push ebx
push ebp
pop edx
call fcn.1001312f
test al, al
je 0x10012b55
push ebp
push esp
push ebx
push edi
push ecx
pop ecx
pop ebp
pop edx
push ebp
push edi
push edx
pop edi
pop esp
push edx
pop ecx
pop eax
push ebp
pop esp
pop ebx
pop ebx
pop esi
pop esi
push eax
pop esi
mov ebx, dword [ebp - 0x4c]
xor edi, edi
test ebx, ebx
je 0x10012b78
cmp word [ebx], di
jne 0x10012b67
mov eax, edi
jmp 0x10012b6e
push ebx
call fcn.10020fa9
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.10004610
or esi, 0xffffffff
cmp dword [ebp - 0x30], 0
jne 0x10012ba0
mov ebx, dword [ebp - 0x44]
cmp word [ebx], di
jne 0x10012b8d
mov eax, edi
jmp 0x10012b94
push ebx
call fcn.10020fa9
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.10004610
jmp 0x10012bf6
mov edi, 0x10036780
push edi
call fcn.10020fa9
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.10004610
mov ebx, dword [ebp - 0x44]
xor eax, eax
cmp word [ebx], ax
je 0x10012bc7
push ebx
call fcn.10020fa9
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.10005810
mov edi, 0x10036784
push edi
call fcn.10020fa9
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.10005810
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10005940
call fcn.1001339c
test al, al
je 0x10012c1f
push edx
push esp
push edi
pop ecx
push esi
pop ebx
pop ebp
push edx
pop ecx
push edx
push eax
pop ecx
pop edx
push edx
pop ecx
push ebx
pop esi
pop ebx
push edx
pop edx
push esi
pop esi
pop eax
pop ebx
pop edx
push ebp
push esp
push eax
push edi
or esi, 0xffffffff
call fcn.10013174
test al, al
je 0x10012c46
pop edx
pop edi
push esp
pop ebx
pop ecx
pop esp
push ecx
pop ebp
pop edx
push ecx
push ecx
push edi
push ebp
push ecx
push edi
push edx
pop esp
pop esp
push edi
pop ebx
push ecx
push ebp
push ebp
pop edi
pop ebx
pop eax
pop edi
push ecx
pop ebp
pop edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x67
call fcn.10011e72
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
xor ebx, ebx
pop ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10012c8d
mov esi, ebx
jmp 0x10012d16
cmp byte [ebp + 0x10], bl
je 0x10012ca3
cmp dword [ebp + 0x14], ebx
cmovg esi, dword [ebp + 0x14]
push esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x10012cc0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10012cc0
mov eax, dword [ebp - 0x48]
mov dword [esi], eax
call fcn.100133e1
test al, al
je 0x10012cdc
push ebp
push ebx
pop ebx
pop ebx
push ebx
push edi
pop eax
push esp
push edi
push esp
push ebx
push esp
pop eax
pop edi
push ebp
pop edi
pop esp
xor ebx, ebx
call fcn.100135c4
test al, al
je 0x10012d03
pop edx
push ecx
pop edi
push eax
pop esp
pop ecx
push ecx
push edx
push ebp
push eax
push esp
pop esi
push ecx
push edi
push ebp
pop edi
push esi
push esp
pop ebp
push edx
pop edi
pop esi
pop edx
pop ecx
pop edi
push edi
push eax
pop edx
push edx
pop esp
push dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x5c]
call esi
xor esi, esi
inc esi
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.100018c0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.100018c0
mov eax, esi
call fcn.10010fac
ret