Function at 0x10012310
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100261e0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x100370a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, 0x1002e490
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x10012383
mov ecx, eax
movzx edi, cx
push edi
call fcn.10003db0
add esp, 4
test eax, eax
je 0x10012393
push eax
mov eax, edi
lea edi, [ebp - 0x14]
call fcn.10003970
jmp 0x10012393
push 0x1002e490
lea edx, [ebp - 0x14]
push edx
xor ebx, ebx
call fcn.10003680
mov bl, 3
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
push 0x5c
push eax
call fcn.1001444b
mov ecx, dword [ebp + 8]
add esp, 8
test eax, eax
je 0x1001242f
sub eax, ecx
sar eax, 1
mov edi, eax
js 0x1001242f
mov eax, dword [ecx - 0xc]
xor ecx, ecx
lea eax, [eax + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10013380
mov ecx, dword [ebp + 8]
mov esi, eax
add esp, 4
mov edx, esi
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x100123e0
lea ecx, [edi + 1]
lea eax, [ebp - 0x18]
lea edx, [ebp + 8]
call fcn.10012da0
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.100031c0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10012487
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10012487
mov edi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
mov dword [ebp - 0x18], 0
cmp eax, edi
je 0x10012484
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x10012477
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x10012477
call fcn.10003730
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x1001246f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [ebp - 0x14], esi
jmp 0x10012484
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
call fcn.10003680
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
cmp dword [edx - 0xc], 0
je 0x100124d5
lea eax, [ebp - 0x18]
push eax
lea edi, [ebp + 0xc]
call fcn.10012dd0
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x14]
call fcn.100051b0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100124d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10013380
mov edi, eax
mov edx, edi
add esp, 4
mov eax, ebx
sub edx, ebx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10012500
push 0x44
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.100157f0
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
xor eax, eax
push edi
push esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x74], 0x44
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001256f
mov eax, dword [ebp + 0x10]
imul eax, eax, 0x3e8
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov bl, 1
test esi, esi
je 0x1001257c
push esi
call fcn.10015148
add esp, 4
push edi
call fcn.10015148
mov ecx, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [ebp - 0x24]
push edx
call esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100125ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100125dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10012603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret