Function at 0x414980
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49d0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4d58b0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push edi
mov eax, dword [0x4d58b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x4dfa44], ebx
jne 0x4149da
push ebx
push 0x4c487c
call dword [0x49f644]
cmp eax, ebx
je 0x4149da
mov dword [0x4dfa44], 1
cmp dword [0x4d8014], ebx
je 0x414a31
push 3
mov ecx, esi
call fcn.0044723f
mov eax, dword [0x4df880]
mov ecx, dword [0x4df87c]
mov edx, dword [esi + 0x4d8]
mov edx, dword [edx + 0x13c]
push 0xffff
push esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esi + 0x4d8]
push 0x5000020e
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call edx
mov dword [0x4d8014], ebx
lea eax, [esp + 0x10]
mov edi, 1
push eax
mov dword [0x4dfa8c], ebx
mov dword [0x4dfa88], edi
call dword [0x49f5e0]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x61c], ecx
mov dword [esi + 0x620], edx
cmp dword [0x4df8d0], ebx
jne 0x414c5e
mov eax, dword [esi + 0x62c]
cmp eax, ebx
je 0x414a8c
mov eax, dword [eax + 0x20]
push ebx
push 0xf020
push 0x112
push eax
call dword [0x49f624]
mov eax, dword [0x4df88c]
mov ecx, dword [esi + 0x20]
imul eax, eax, 0x3e8
push ebx
push eax
push edi
push ecx
mov dword [0x4dfa94], ebx
call dword [0x49f65c]
push 5
mov ecx, esi
mov dword [0x4df8d0], edi
call fcn.0044723f
mov eax, dword [esi + 0x20]
push eax
call dword [0x49f674]
mov edx, dword [0x4df87c]
mov ecx, dword [0x4df880]
mov eax, dword [esi + 0x20]
push 2
push edx
push ecx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call dword [0x49f678]
mov edx, dword [0x4dfc78]
push edx
mov dword [0x4dfa64], ebx
call dword [0x49f454]
test eax, eax
je 0x414c7b
mov eax, dword [0x4dfc78]
mov edi, dword [0x49f458]
push 0x4c4afc
push eax
call edi
test eax, eax
jne 0x414b5e
mov ecx, dword [0x4dfc78]
push 0x4c4b08
push ecx
call edi
test eax, eax
jne 0x414b5e
mov edx, dword [0x4dfc78]
push 0x4c4b14
push edx
call edi
test eax, eax
jne 0x414b5e
mov eax, dword [0x4dfc78]
push 0x4c4b20
push eax
call edi
test eax, eax
jne 0x414b5e
mov ecx, dword [0x4dfc78]
push 0x4c4b2c
push ecx
call edi
test eax, eax
je 0x414c7b
mov dword [0x4dfa64], 1
push ebx
lea ecx, [esi + 0x4d8]
call fcn.0044723f
cmp dword [0x4dfa68], ebx
je 0x414b87
push ebx
mov ecx, 0x4dfbe0
call fcn.0044723f
mov eax, dword [0x4dfc78]
mov edx, 1
sub edx, dword [eax - 4]
or edx, dword [eax - 8]
jge 0x414ba9
push ebx
mov ecx, 0x4dfc78
call fcn.00409680
mov eax, dword [0x4dfc78]
mov ecx, dword [esi + 0x600]
push ebx
push eax
call fcn.0048ddf0
mov eax, dword [0x4dfc78]
push eax
call dword [0x49f454]
test eax, eax
je 0x414bd3
mov ecx, dword [esi + 0x600]
push ebx
push ebx
call fcn.0048d0d0
mov ecx, 0x64
sub ecx, dword [0x4df8c0]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fdiv qword [0x4c5450]
fmul qword [0x4c5448]
call fcn.00462e90
mov edi, eax
cmp edi, ebx
jne 0x414c02
mov edi, 1
cmp edi, dword [0x4df874]
je 0x414c20
mov edx, dword [0x4db0b0]
push edi
push edx
call fcn.0047dee0
add esp, 8
mov dword [0x4df874], edi
cmp dword [0x4dfa64], ebx
jne 0x414c3c
cmp dword [0x4dfa60], ebx
jne 0x414c3c
call fcn.004156c0
mov ecx, esi
call fcn.004171a0
mov dword [0x4df8bc], ebx
call fcn.0048d170
mov eax, dword [esi + 0x20]
push eax
call dword [0x49f5ec]
push eax
call fcn.0044344d
push ebx
call dword [0x49f5e8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0045d9fd
mov esp, ebp
pop ebp
ret
cmp dword [0x4dfa64], ebx
jne 0x414b68
cmp dword [0x4dfa60], ebx
jne 0x414cc3
cmp dword [0x4dfa68], ebx
je 0x414cb6
push ebx
push ebx
push ebx
push 1
push 0x7e
push 0x4dfbe0
call fcn.004472c9
add esp, 0x18
push ebx
mov ecx, 0x4dfbe0
call fcn.0044723f
push 5
lea ecx, [esi + 0x4d8]
jmp 0x414b82
push ebx
lea ecx, [esi + 0x4d8]
call fcn.0044723f
cmp dword [0x4dfa68], ebx
je 0x414d42
push 5
mov ecx, 0x4dfbe0
call fcn.0044723f
cmp dword [0x4dfa68], ebx
je 0x414b87
mov edx, dword [0x4dfbdc]
push edx
push ebx
push 0x4d81c0
push ebx
push ebx
push 1
push 0x8e
push 0x4dfbe0
call fcn.004472c9
push ebx
push ebx
push ebx
push 1
push 0x70
push 0x4dfbe0
call fcn.004472c9
add esp, 0x38
push 0x4c4b54
call dword [0x49f40c]
mov edi, eax
mov dword [esp + 0xc], edi
cmp edi, ebx
jne 0x414da4
push 0x8007000e
call fcn.00409d60
push 3
mov ecx, esi
call fcn.0044723f
mov edx, dword [0x4df880]
mov eax, dword [0x4df87c]
push ebx
push ebx
push ebx
push 0xe900
push esi
lea ecx, [esp + 0x2c]
push ecx
push 0x50000000
push 0x4c4b38
push 0x4c3570
mov ecx, 0x4dfbe0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.0044a06d
test eax, eax
je 0x414ce3
mov dword [0x4dfa68], 1
jmp 0x414cef
push edi
push 0x4d81bc
push ebx
push ebx
push 4
push 0x8c
push 0x4dfbe0
mov dword [esp + 0x54], ebx
call fcn.004472c9
add esp, 0x1c
push edi
mov dword [esp + 0x3c], 0xffffffff
call dword [0x49f410]
mov eax, dword [0x4dfbdc]
mov edi, dword [0x49f458]
push 0x4c4b64
push eax
call edi
test eax, eax
jne 0x414e0b
mov ecx, dword [0x4dfbdc]
push 0x4c4b70
push ecx
call edi
test eax, eax
jne 0x414e0b
mov eax, 0x4c4b78
call fcn.00413570
jmp 0x414b87
mov eax, 0x4c4b8c
call fcn.00413570
jmp 0x414b87