Function at 0x1000bcd0
Capabilities:
Get number of processors
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031e6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push esi
push edi
push 1
mov esi, ecx
mov dword [ebp - 0x50], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
push 0x1003afa4
lea ecx, [ebp - 0x60]
movups xmmword [ebp - 0x60], xmm0
call fcn.10006af0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
push dword [esi + 4]
call fcn.1000cbc0
mov ecx, dword [esi]
cmp dword [ecx + 0x14], 7
jbe 0x1000bd32
mov ecx, dword [ecx]
mov dword [ebp - 0x3c], ecx
mov esi, 0xffdc
test ecx, ecx
je 0x1000bd6b
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bd41
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
cmp eax, 0xffdc
cmova eax, esi
movzx eax, ax
mov word [ebp - 0x40], ax
add eax, 2
mov word [ebp - 0x3e], ax
jmp 0x1000bd70
xor eax, eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x4c], 7
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x44], 0x1003afa8
cmova ecx, dword [ebp - 0x60]
mov dword [ebp - 0x48], 0x4a0048
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x1000bdbd
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bd93
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
cmp eax, 0xffdc
cmova eax, esi
movzx eax, ax
mov word [ebp - 0x38], ax
add eax, 2
mov word [ebp - 0x36], ax
jmp 0x1000bdc2
xor eax, eax
mov dword [ebp - 0x38], eax
push str.ntdll.dll
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000be1a
push str.RtlCreateProcessParametersEx
push eax
call edi
test eax, eax
jne 0x1000bdfa
push dword [ebp - 0x10]
call esi
jmp 0x1000be1a
push 1
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x28]
push ecx
call eax
mov eax, dword fs:[0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0xbc], xmm0
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xa4], xmm0
movlpd qword [ebp - 0x9c], xmm0
movlpd qword [ebp - 0x94], xmm0
movlpd qword [ebp - 0x8c], xmm0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0xc8], 0x48
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x80], 0x18
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0xc0], 0x80840000
mov eax, dword [eax + 0x30]
push str.ntdll.dll
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1000beb5
mov dword [ebp - 0x20], eax
jmp 0x1000bedb
push str.RtlAllocateHeap
push eax
call edi
test eax, eax
jne 0x1000becf
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x20], 0
jmp 0x1000bedb
push 8
push 8
push dword [ebp - 0x18]
call eax
mov dword [ebp - 0x20], eax
mov ecx, dword fs:[0x18]
push str.ntdll.dll
mov ecx, dword [ecx + 0x30]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1000bf02
mov dword [ebp - 0x24], eax
jmp 0x1000bf28
push str.RtlAllocateHeap
push eax
call edi
test eax, eax
jne 0x1000bf1c
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x24], 0
jmp 0x1000bf28
push 0x10
push 8
push dword [ebp - 0x18]
call eax
mov dword [ebp - 0x24], eax
mov ecx, dword fs:[0x18]
push str.ntdll.dll
mov ecx, dword [ecx + 0x30]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1000bf4f
mov dword [ebp - 0x18], eax
jmp 0x1000bf75
push str.RtlAllocateHeap
push eax
call edi
test eax, eax
jne 0x1000bf69
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x18], 0
jmp 0x1000bf75
push 0x30
push 8
push dword [ebp - 0x18]
call eax
mov dword [ebp - 0x18], eax
mov ecx, dword fs:[0x18]
push str.ntdll.dll
mov ecx, dword [ecx + 0x30]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1000bf9b
xor edi, edi
jmp 0x1000bfbb
push str.RtlAllocateHeap
push eax
call edi
test eax, eax
jne 0x1000bfb0
push dword [ebp - 0x10]
call esi
xor edi, edi
jmp 0x1000bfbb
push 0x64
push 8
push dword [ebp - 0x14]
call eax
mov edi, eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x1c], eax
mov dword [edi], 0x64
mov dword [edi + 4], 0x10003
mov dword [edi + 8], 8
mov dword [edi + 0x14], 6
mov dword [edi + 0x18], 0x30
mov dword [edi + 0x24], 0x20005
movzx eax, word [ebp - 0x48]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x3c], eax
lea eax, [ebp - 0x68]
mov dword [edi + 0x34], 0x2000a
mov dword [edi + 0x38], 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0x2000
add dword [edi], 0xfffffff0
mov dword [edi + 0x44], 0x20010
mov dword [edi + 0x48], 8
mov dword [edi + 0x4c], eax
mov eax, dword [ebp - 0x28]
push str.ntdll.dll
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000c093
push str.NtCreateUserProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000c093
push edi
lea ecx, [ebp - 0xc8]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x80]
push 0
push 0
push ecx
push ecx
push 0x1fffff
push 0x1fffff
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
call eax
jmp 0x1000c099
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword fs:[0x18]
push str.ntdll.dll
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000c0df
push str.RtlFreeHeap
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
test eax, eax
jne 0x1000c0d4
call esi
jmp 0x1000c0df
call esi
push edi
push 0
push dword [ebp - 0x14]
call dword [ebp - 0x1c]
mov eax, dword fs:[0x18]
push str.ntdll.dll
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000c129
push str.RtlFreeHeap
push eax
call edi
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
test eax, eax
jne 0x1000c11c
call esi
jmp 0x1000c129
call esi
push dword [ebp - 0x20]
push 0
push dword [ebp - 0x1c]
call dword [ebp - 0x14]
mov eax, dword fs:[0x18]
push str.ntdll.dll
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000c16d
push str.RtlFreeHeap
push eax
call edi
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
test eax, eax
jne 0x1000c160
call esi
jmp 0x1000c16d
call esi
push dword [ebp - 0x24]
push 0
push dword [ebp - 0x1c]
call dword [ebp - 0x14]
mov eax, dword fs:[0x18]
push str.ntdll.dll
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000c1b1
push str.RtlFreeHeap
push eax
call edi
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
test eax, eax
jne 0x1000c1a4
call esi
jmp 0x1000c1b1
call esi
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x1c]
call dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
push str.ntdll.dll
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1000c1d3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
jmp 0x1000c1f9
push str.RtlDestroyProcessParameters
push eax
call edi
test eax, eax
jne 0x1000c1ee
push dword [ebp - 0x1c]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
jmp 0x1000c1f9
push dword [ebp - 0x14]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
call edi
mov ecx, dword [ebp - 0x4c]
pop edi
pop esi
cmp ecx, 7
jbe 0x1000c243
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000c239
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c251
push ecx
push edx
call fcn.100128c5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.10017b2f
int3