Function at 0x52059c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5205a4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x520bb3
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x520b3d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 4]
mov byte [eax + 0x61], 0
push 8
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x52053c]
call fcn.00405b54
add esp, 4
push 8
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x52055c]
call fcn.00405b54
add esp, 4
push 8
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x52057c]
call fcn.00405b54
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x29], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
mov dl, 1
mov eax, dword [0x5040a4]
call fcn.004821ac
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x42], 0x2e
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x18], 1
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x19], 1
xor eax, eax
push ebp
push 0x5209c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004043dc
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebx, eax
cmp ebx, 8
je 0x520682
cmp ebx, 0x8f
jg 0x5206bb
je 0x5206e2
sub ebx, 0x67
je 0x52070e
sub ebx, 3
je 0x5206ed
sub ebx, 0xb
je 0x5206f8
sub ebx, 0x15
je 0x5206d7
jmp 0x52072f
sub ebx, 0x91
je 0x5206d7
sub ebx, 0x35b
je 0x520719
sub ebx, 5
je 0x520724
sub ebx, 0x13
je 0x520703
jmp 0x52072f
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 1
jmp 0x520738
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 2
jmp 0x520738
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 3
jmp 0x520738
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 4
jmp 0x520738
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 9
jmp 0x520738
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 8
jmp 0x520738
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 9
jmp 0x520738
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 0xa
jmp 0x520738
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 0
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x38]
add eax, 0xfffffffe
sub ax, 3
jae 0x5207a7
xor ecx, ecx
mov edx, 0x86
mov eax, dword [ebp - 0xc]
call fcn.004839c4
test eax, eax
je 0x5207a7
mov eax, dword [ebp - 4]
call fcn.0051cd90
test al, al
je 0x520770
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 1
jmp 0x5207a7
push 0x520bcc
mov eax, dword [ebp - 4]
push dword [eax + 0x30]
push 0x520bdc
mov eax, dword [ebp - 4]
add eax, 0x30
mov edx, 3
call fcn.0040476c
mov eax, dword [ebp - 4]
mov word [eax + 0x38], 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00482394
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x30]
lea eax, [ebp - 0x10]
call fcn.004043dc
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebx, eax
cmp ebx, 0x3eb
je 0x5207d3
cmp ebx, 0x3fe
jne 0x5207f5
xor ebx, ebx
jmp 0x5207f5
lea eax, [ebp - 0x10]
call fcn.004043dc
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebx, eax
cmp ebx, 0x3fe
jne 0x5207f5
xor ebx, ebx
test ebx, ebx
je 0x5207fe
cmp ebx, 0x10
jne 0x5207d7
cmp ebx, 0x10
jne 0x5209a2
lea eax, [ebp - 0x10]
call fcn.004043dc
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebx, eax
cmp ebx, 0xffffff99
je 0x52082e
cmp ebx, 0xffffff97
je 0x52082e
cmp ebx, 0x64
jl 0x5209a2
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x38]
add eax, 0xfffffff8
sub ax, 2
jae 0x5208e6
mov eax, dword [ebp - 0x18]
call fcn.00405998
cmp eax, dword [ebp - 0x24]
jg 0x5208a9
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x52053c]
call fcn.00405b54
add esp, 4
mov eax, dword [ebp - 0x18]
call fcn.00405998
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x52055c]
call fcn.00405b54
add esp, 4
mov eax, dword [ebp - 0x18]
call fcn.00405998
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x52057c]
call fcn.00405b54
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.00483b48
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0xc]
call fcn.00483b1c
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [edx + ecx*4], eax
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.004046ac
test eax, eax
jle 0x5208e6
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x22
jne 0x5208e6
mov byte [ebp - 0x29], 1
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x38]
add eax, 0xfffffff8
sub ax, 2
jae 0x52094b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x52094b
inc edi
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, esi
call fcn.0041e8fc
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00408db4
test eax, eax
jne 0x520947
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, esi
call fcn.0041e8fc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
lea ecx, [esi + 1]
mov dword [eax + edx*4 - 4], ecx
jmp 0x52094b
inc esi
dec edi
jne 0x52090c
cmp dword [ebp - 0x14], 0
jne 0x5209a2
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x50c97c]
call fcn.00518d84
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0x14]
call fcn.0041e7a0
mov eax, dword [ebp - 0x14]
add eax, 0x14
mov edx, dword [ebp - 0x10]
call fcn.00404430
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x38]
add eax, 0xfffffff8
sub ax, 2
jae 0x5209a2
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x28]
mov ecx, dword [ecx + 8]
mov dword [eax + edx*4 - 4], ecx
test ebx, ebx
jne 0x5207af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5209c7
mov eax, dword [ebp - 0xc]
call fcn.004035c0
ret