Function at 0x4117c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x497bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7480]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov ebp, dword [esp + 0x60]
push 1
push edi
lea eax, [esp + 0x1c]
mov bl, 0x2f
push eax
mov ecx, ebp
mov dword [esp + 0x64], edi
mov byte [esp + 0x20], bl
call fcn.00405c70
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x41188d
mov byte [esp + 0x14], bl
mov edi, dword [esp + 0x28]
test edi, edi
mov edx, dword [esp + 0x2c]
je 0x41184c
mov ecx, dword [esp + 0x30]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x41184c
mov dword [edx], esi
add edx, 4
mov dword [esp + 0x2c], edx
jmp 0x41186e
cmp edi, edx
mov ebx, edx
jbe 0x411857
call fcn.0046f0f0
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x28]
push ebx
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, eax
call fcn.00410620
push 1
add esi, 1
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.00405c70
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
jne 0x411821
xor edi, edi
mov esi, dword [esp + 0x28]
cmp esi, edi
je 0x4118ae
mov ebx, dword [esp + 0x2c]
mov eax, ebx
sub eax, esi
sar eax, 2
cmp eax, 2
je 0x4118c7
push esi
call fcn.0046e29f
add esp, 4
mov eax, 0x64
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
cmp dword [esp + 0x68], edi
je 0x4119cc
cmp eax, 1
mov edi, dword [ebp + 0x14]
ja 0x4118e6
call fcn.0046f0f0
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
sub edi, dword [esi + 4]
mov ebp, dword [esp + 0x6c]
sub edi, 1
cmp edi, ebp
jbe 0x411916
push esi
call fcn.0046e29f
add esp, 4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov ecx, dword [esp + 0x68]
push ebp
push 0
push ecx
call fcn.0046e830
mov ecx, dword [esp + 0x6c]
mov edi, dword [ecx + 0x14]
mov eax, ebx
sub eax, esi
sar eax, 2
add esp, 0xc
cmp eax, 1
ja 0x41194a
call fcn.0046f0f0
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x18], 0x10
lea edx, [esi + 4]
mov dword [esp + 0x1c], edx
jb 0x411960
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
jmp 0x411967
add ecx, 4
mov dword [esp + 0x18], ecx
test esi, esi
je 0x411975
sub ebx, esi
sar ebx, 2
cmp ebx, 1
ja 0x41197e
call fcn.0046f0f0
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
sub edi, dword [ecx]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x68]
sub edi, 1
push edi
lea ecx, [edx + eax + 1]
push ecx
push ebp
push esi
call fcn.0046e8aa
add esp, 0x10
xor eax, eax
test ebp, ebp
jle 0x4119c0
mov cl, byte [eax + esi]
cmp cl, 0x20
je 0x4119c0
cmp cl, 0x5f
jne 0x4119b9
mov byte [eax + esi], 0x20
add eax, 1
cmp eax, ebp
jl 0x4119a8
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
test edi, edi
je 0x411a31
test esi, esi
je 0x4119df
sub ebx, esi
sar ebx, 2
jne 0x4119e8
call fcn.0046f0f0
mov esi, dword [esp + 0x28]
mov edx, dword [esi]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call fcn.0040b9a0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x411a08
mov eax, dword [eax + 4]
jmp 0x411a0b
add eax, 4
push eax
call fcn.0046fecf
add esp, 4
cmp dword [esp + 0x4c], esi
mov dword [edi], eax
jb 0x411a29
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0046e29f
add esp, 4
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
cmp dword [esp + 0x70], 0
je 0x411ae1
test esi, esi
je 0x411a4c
mov eax, ebx
sub eax, esi
sar eax, 2
cmp eax, 1
ja 0x411a59
call fcn.0046f0f0
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test esi, esi
lea ebp, [esi + 4]
je 0x411a69
mov edx, ebx
sub edx, esi
sar edx, 2
jne 0x411a76
call fcn.0046f0f0
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test esi, esi
mov edi, esi
je 0x411a83
sub ebx, esi
sar ebx, 2
jne 0x411a8c
call fcn.0046f0f0
mov esi, dword [esp + 0x28]
mov eax, dword [ebp]
sub eax, dword [edi]
mov ecx, dword [esi]
sub eax, 1
push eax
add ecx, 1
push ecx
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x3c]
push edx
call fcn.0040b9a0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x411ab8
mov eax, dword [eax + 4]
jmp 0x411abb
add eax, 4
push eax
call fcn.0046fecf
mov ecx, dword [esp + 0x74]
add esp, 4
cmp dword [esp + 0x4c], esi
mov dword [ecx], eax
jb 0x411add
mov edx, dword [esp + 0x38]
push edx
call fcn.0046e29f
add esp, 4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x411aee
push esi
call fcn.0046e29f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret