Function at 0x1004ea1a
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x10], ecx
sub eax, ecx
sete cl
test cl, 1
lea ecx, [eax + eax]
mov ebx, 2
cmove ebx, ecx
xor edi, edi
dec edi
cmp eax, 0x7fffffff
cmovb edi, ebx
cmp dword [esi + 4], 0x10012050
mov dword [ebp - 0x14], edx
mov ebx, dword [edx]
je 0x1004ea69
push edi
push dword [ebp - 0x10]
call fcn.10085a20
add esp, 8
jmp 0x1004ea72
push edi
call fcn.10085990
add esp, 4
test eax, eax
je 0x1004ea9b
sub ebx, dword [ebp - 0x10]
mov dword [esi], eax
add ebx, eax
mov dword [esi + 4], fcn.100859f0
mov eax, dword [ebp - 0x14]
mov dword [eax], ebx
and edi, 0xfffffffe
add edi, dword [esi]
mov eax, dword [ebp + 8]
mov dword [eax], edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.10055c2c
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1f0
mov esi, esp
mov dword [esi + 0x1d8], ebp
movsd xmm1, qword [ebp + 0x1c]
lea eax, [esi + 0x1e0]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x10055ab0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [esi + 0x170]
mov dword [eax + 0x60], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [eax + 0x50], xmm0
movdqa xmmword [eax + 0x40], xmm0
movdqa xmmword [eax + 0x30], xmm0
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x160], edx
movdqa xmmword [esi + 0x150], xmm0
movdqa xmmword [esi + 0x140], xmm0
movdqa xmmword [esi + 0x130], xmm0
movdqa xmmword [esi + 0x120], xmm0
movdqa xmmword [esi + 0x110], xmm0
movdqa xmmword [esi + 0x100], xmm0
sub esp, 0x14
movsd qword [esp + 0xc], xmm1
mov dword [esp], eax
mov dword [esp + 8], str._.0Lf
mov dword [esp + 4], 0x64
call fcn.100365b0
add esp, 0x14
cmp eax, 0x64
jb 0x1004ebda
mov dword [esi + 0x14], esp
push eax
sub esp, 0x18
mov edi, esp
lea ecx, [edi + 4]
call fcn.10041423
lea eax, [esi + 0x1c]
mov dword [edi], eax
mov dword [edi + 0x10], str._.0Lf
movq xmm0, qword [ebp + 0x1c]
movq qword [edi + 0x14], xmm0
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x1e8], eax
call fcn.10058600
add esp, 0x1c
mov ebx, eax
mov esp, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x1004ef1c
mov edi, dword [esi + 0x1c]
push ebx
call fcn.10085990
add esp, 4
test eax, eax
je 0x1004ef29
mov dword [esi + 0x14], ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x34], eax
jmp 0x1004ebf4
mov dword [esi + 0x14], eax
lea eax, [esi + 0x100]
mov dword [esi + 0x34], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
lea ecx, [esi + 0x8c]
mov dword [ecx], eax
mov dword [esi + 0x18], eax
lock inc dword [eax + 4]
mov dword [esi + 0x1e8], 1
push 0x101be748
call fcn.100513c8
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + edx]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x38]
mov eax, dword [eax]
mov edi, dword [eax + 0x18]
mov dword [esi + 0x1e8], 0xffffffff
mov ecx, edi
mov dword [esi + 0x14], edx
call dword [section..00cfg]
mov dword [esi + 0x1e8], 1
mov ecx, dword [esi + 0x38]
push dword [esi + 0x34]
push dword [esi + 0x10]
push ebx
call edi
mov eax, dword [esi + 0x14]
xor ecx, ecx
test eax, eax
jle 0x1004ec76
mov edx, dword [esi + 0x1c]
cmp byte [edx], 0x2d
sete al
mov dword [esi + 0x10], eax
jmp 0x1004ec7d
mov dword [esi + 0x10], 0
lea eax, [esi + 0x68]
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
lea ebx, [esi + 0x50]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
lea edi, [esi + 0x40]
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov dword [edi + 8], ecx
mov cl, 0xff
lea eax, [esi + 0xf]
mov byte [eax], cl
lea eax, [esi + 0xe]
mov byte [eax], cl
lea edx, [esi + 0x64]
xor ecx, ecx
dec ecx
mov dword [edx], ecx
lea eax, [esi + 0x88]
mov dword [eax], ecx
mov dword [esi + 0x1e8], 2
movzx ecx, byte [ebp + 0x10]
movzx edx, byte [esi + 0x10]
mov dword [esi + 0x80], edx
push eax
push edi
push ebx
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0xe]
push eax
lea eax, [esi + 0xf]
push eax
lea eax, [esi + 0x64]
push eax
lea eax, [esi + 0x8c]
push eax
call fcn.1004f034
add esp, 0x20
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0xe0], xmm0
movdqa xmmword [esi + 0xd0], xmm0
movdqa xmmword [esi + 0xc0], xmm0
movdqa xmmword [esi + 0xb0], xmm0
movdqa xmmword [esi + 0xa0], xmm0
movdqa xmmword [esi + 0x90], xmm0
mov dword [esi + 0xf0], 0xffffffff
mov ebx, dword [esi + 0x88]
mov edi, dword [esi + 0x14]
mov eax, edi
sub eax, ebx
jle 0x1004ed5f
movzx ecx, byte [esi + 0x4b]
test cl, cl
jns 0x1004ed4c
mov ecx, dword [esi + 0x44]
movzx edx, byte [esi + 0x5b]
test dl, dl
jns 0x1004ed57
mov edx, dword [esi + 0x54]
lea eax, [ecx + eax*2]
add eax, edx
inc eax
jmp 0x1004ed7a
movzx eax, byte [esi + 0x4b]
test al, al
jns 0x1004ed6a
mov eax, dword [esi + 0x44]
movzx ecx, byte [esi + 0x5b]
test cl, cl
jns 0x1004ed75
mov ecx, dword [esi + 0x54]
add eax, ecx
add eax, 2
add eax, ebx
cmp eax, 0x65
mov dword [esi + 0x7c], ebx
jb 0x1004edb0
push eax
call fcn.10085990
add esp, 4
mov dword [esi + 0x30], eax
mov dword [esi + 0x10], eax
test eax, eax
mov ecx, dword [ebp + 0x14]
jne 0x1004edc3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x1e8], 3
call fcn.10055c2c
lea eax, [esi + 0x90]
mov dword [esi + 0x30], eax
mov dword [esi + 0x10], 0
mov ecx, dword [ebp + 0x14]
lea edx, [esi + 0x84]
xor eax, eax
dec eax
mov dword [edx], eax
lea ebx, [esi + 0x60]
mov dword [ebx], eax
movsx eax, byte [esi + 0xe]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x34]
add edi, eax
mov dword [esi + 0x14], edi
mov ecx, dword [ecx + 4]
mov dword [esi + 0x78], ecx
mov edi, dword [esi + 0x10]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x1e8], 3
movsx edi, byte [esi + 0xf]
mov ecx, dword [esi + 0x30]
push dword [esi + 0x7c]
lea ebx, [esi + 0x40]
push ebx
lea ebx, [esi + 0x50]
push ebx
lea ebx, [esi + 0x68]
push ebx
push dword [esi + 0x74]
push edi
lea edi, [esi + 0x64]
push edi
push dword [esi + 0x80]
push dword [esi + 0x38]
push dword [esi + 0x14]
push eax
push dword [esi + 0x78]
lea eax, [esi + 0x60]
push eax
call fcn.1004f188
add esp, 0x34
mov cl, byte [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x60]
mov edi, dword [esi + 0x10]
mov dword [esi + 0x3c], edi
mov edi, dword [esi + 0x84]
movsx ecx, cl
push ecx
push dword [ebp + 0x14]
push edx
push edi
push dword [esi + 0x30]
push eax
push dword [ebp + 8]
call fcn.10034cbf
add esp, 0x1c
cmp dword [esi + 0x10], 0
je 0x1004ee77
push 0
push dword [esi + 0x10]
push 0x101a6dd4
call fcn.100a9690
add esp, 0xc
cmp byte [esi + 0x4b], 0
mov ebx, dword [esi + 0x2c]
jns 0x1004ee8b
push dword [esi + 0x40]
call fcn.10145bd4
add esp, 4
cmp byte [esi + 0x5b], 0
jns 0x1004ee9c
push dword [esi + 0x50]
call fcn.10145bd4
add esp, 4
cmp byte [esi + 0x73], 0
jns 0x1004eead
push dword [esi + 0x68]
call fcn.10145bd4
add esp, 4
xor eax, eax
dec eax
mov ecx, dword [esi + 0x18]
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x1004eed8
mov eax, dword [ecx]
mov edi, dword [eax + 4]
mov dword [esi + 0x1e8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, dword [esi + 0x18]
call edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1004eeef
push 0
push eax
push 0x101a6dd4
call fcn.100a9690
add esp, 0xc
test ebx, ebx
je 0x1004ef03
push 0
push ebx
push 0x101a6dd4
call fcn.100a9690
add esp, 0xc
mov eax, dword [esi + 0x1e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
call fcn.10055c2c
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], edi
call fcn.10055c2c
push ebp
sub esp, 0x34
lea esi, [ebp - 0x1ec]
mov ebp, dword [esi + 0x1d8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1004ef5f
push 0
push eax
push 0x101a6dd4
call fcn.100a9690
add esp, 0xc
add esp, 0x34
pop ebp
ret