Function at 0x10012400
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c235
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10026008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10015240
mov byte [ebp - 4], 3
lea ebx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edx, dword [ebp + 0x30]
cmovae ebx, dword [ebp - 0x28]
xor esi, esi
or edi, 0xffffffff
test edx, edx
je 0x100124d2
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
lea ecx, [ecx + edx*2]
push ecx
lea edx, [ebp + 0x20]
cmovae edx, dword [ebp + 0x20]
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10015240
mov ecx, dword [ebp - 0x2c]
lea esi, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
cmp ecx, 8
cmovae esi, edx
jb 0x100124d2
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100124c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100124c8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10019c6a
add esp, 8
cmp dword [ebp + 0x48], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x78], 0x40
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], esi
je 0x1001251c
cmp dword [ebp + 0x4c], 8
lea eax, [ebp + 0x38]
cmovae eax, dword [ebp + 0x38]
mov dword [ebp - 0x68], eax
jmp 0x10012523
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x60], 0
push eax
mov dword [ebp - 0x5c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1001254b
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x10012585
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001257b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001265d
push ecx
push edx
call fcn.10019c6a
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x100125d3
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100125c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001265d
push ecx
push edx
call fcn.10019c6a
add esp, 8
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp ecx, 8
jb 0x1001261d
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10012613
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001265d
push ecx
push edx
call fcn.10019c6a
add esp, 8
mov ecx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp ecx, 8
jb 0x1001266d
mov edx, dword [ebp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10012663
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10012663
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10019c6a
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019709
mov esp, ebp
pop ebp
ret