Function at 0x4c3f80
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57da18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
sub ebx, ecx
mov dword [esp + 0x2c], esi
test ebx, ebx
mov dword [esp + 0x30], ebx
jle 0x4c3fe0
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
sub edi, ecx
test edi, edi
mov dword [esp + 0x14], edi
jle 0x4c3fe0
cmp dword [0x5d20cc], 8
jg 0x4c3ff9
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push ecx
call fcn.004eb4a0
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [esp + 0x60]
call fcn.004631b4
mov eax, dword [esi + 4]
mov dword [esp + 0x78], 0
test eax, eax
je 0x4c4014
mov eax, dword [eax + 4]
push eax
call dword [0x587094]
push eax
lea ecx, [esp + 0x64]
call fcn.004631ae
test eax, eax
jne 0x4c4050
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.004631a2
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0x588d64
mov eax, dword [esi + 4]
push ebx
push edi
mov byte [esp + 0x80], 1
mov edx, dword [eax + 4]
push edx
call dword [0x587098]
push eax
lea ecx, [esp + 0x40]
call fcn.00463076
test eax, eax
jne 0x4c40ca
mov dword [esp + 0x3c], 0x588b4c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x78], 2
call fcn.00463082
lea ecx, [esp + 0x60]
mov dword [esp + 0x3c], 0x5889b0
mov dword [esp + 0x78], 0xffffffff
call fcn.004631a2
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, esi
push eax
mov eax, dword [esp + 0x68]
push eax
call fcn.004631c0
push 0x28
mov dword [esp + 0x38], eax
call fcn.00462ec0
mov esi, eax
add esp, 4
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esi + 4], edi
mov edi, ebx
imul edi, dword [esp + 0x14]
push eax
push eax
mov dword [esi], 0x28
mov dword [esi + 8], ebx
mov word [esi + 0xc], 1
mov word [esi + 0xe], 0x20
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov edx, dword [esp + 0x6c]
push ecx
push eax
push esi
push edx
mov dword [esp + 0x28], eax
call dword [0x5870b8]
test eax, eax
mov dword [esp + 0x38], eax
je 0x4c439a
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4c439a
push eax
mov eax, dword [esp + 0x68]
push eax
call dword [0x5870b4]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4c4174
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0xcc0020
push edx
mov edx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x74]
push ebx
push edx
push 0
push 0
push eax
call dword [0x5870b0]
mov eax, dword [ebp + 0x1c]
cmp eax, 0xffffffff
je 0x4c41b5
xor ecx, ecx
mov cl, ah
mov ch, al
shr eax, 0x10
shl ecx, 8
and eax, 0xff
or ecx, eax
mov dword [ebp + 0x1c], ecx
test edi, edi
jle 0x4c4305
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [edx]
cmp eax, ecx
je 0x4c42eb
lea ecx, [esp + 0x44]
lea edx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x50]
push edx
push ecx
push eax
call fcn.004c59c0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x60]
push 0
push 0
push edx
mov edx, dword [esp + 0x68]
push eax
push ecx
push edx
call fcn.004c57d0
mov ecx, eax
mov eax, dword [ebp + 0x18]
add esp, 0x28
cmp eax, 0xffffffff
jne 0x4c42c1
mov ebx, dword [0x5d1f9c]
mov edi, ecx
mov eax, ebx
and edi, 0xff
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x1c], 0xff
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
cmp eax, 0xff
jg 0x4c4249
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], 0xff
mov al, ch
mov edi, eax
xor eax, eax
mov al, bh
and edi, 0xff
and eax, 0xff
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
cmp eax, 0xff
jg 0x4c427a
mov dword [esp + 0x18], eax
shr ecx, 0x10
mov eax, ebx
and ecx, 0xff
and eax, 0xff
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cmp eax, 0xff
jle 0x4c429f
mov eax, 0xff
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov ch, al
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 0x18]
mov ebx, dword [esp + 0x30]
shl ecx, 8
and eax, 0xff
or ecx, eax
mov dword [edx], ecx
jmp 0x4c42eb
fild dword [ebp + 0x18]
fmul qword [0x591940]
fstp qword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push edx
push eax
push edx
push eax
push edx
push ecx
call fcn.004c5460
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
jne 0x4c41c1
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x60]
neg eax
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x64]
sbb eax, eax
push 0xcc0020
mov ecx, dword [ecx + 4]
and eax, edx
mov edx, dword [ebp + 0xc]
push 0
push 0
push eax
mov eax, dword [esp + 0x24]
push ebx
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push ecx
call dword [0x5870b0]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4c4347
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x64]
push eax
push edx
call fcn.004631c0
mov eax, dword [esp + 0x38]
push eax
call dword [0x5870ac]
push esi
call fcn.00462eb4
add esp, 4
mov dword [esp + 0x3c], 0x588b4c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x78], 4
call fcn.00463082
lea ecx, [esp + 0x60]
mov dword [esp + 0x3c], 0x5889b0
mov dword [esp + 0x78], 0xffffffff
call fcn.004631a2
jmp 0x4c3fe0
push esi
call fcn.00462eb4
add esp, 4
mov dword [esp + 0x3c], 0x588b4c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x78], 3
call fcn.00463082
lea ecx, [esp + 0x60]
mov dword [esp + 0x3c], 0x5889b0
mov dword [esp + 0x78], 0xffffffff
call fcn.004631a2
mov ecx, dword [esp + 0x70]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18