Function at 0x1000e2e0
Capabilities:
Create process on windows
Get number of processors
Print debug messages
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x1004e200
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0x40
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x20], 0
call fcn.10037cf0
add esp, 0xc
xor ecx, ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push esi
push ecx
mov dword [esp + 0x4c], 0x44
mov word [esp + 0x7c], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000e407
call fcn.10025867
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1000e376
push 0x80004005
call fcn.10002d80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x78], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [esp + 0x18]
push str.CreateProcess__s_Fail_Value_d
push ecx
call fcn.100027b0
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [edi - 4], 1
jle 0x1000e3ca
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.10002a10
mov edi, dword [esp + 0x10]
call fcn.10011e30
lea eax, [edi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000e3f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x70
ret
call fcn.10025867
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1000e421
push 0x80004005
call fcn.10002d80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x78], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [esp + 0x18]
push str.CreateProcess__s_Fail_Value_d
push ecx
call fcn.100027b0
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [edi - 4], 1
jle 0x1000e475
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.10002a10
mov edi, dword [esp + 0x10]
call fcn.10011e30
mov eax, dword [esp + 0x14]
push 0x1770
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000e49b
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
lea eax, [edi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000e4d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x70
ret