Function at 0x511640
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5f3008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov ebp, 1
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x10], edi
mov dword [ebx + 0x10], edi
jne 0x5116a8
push 0x1a
mov ecx, ebx
call fcn.00491bb0
mov edi, dword [esp + 0x40]
push edi
call fcn.00492830
add esp, 4
mov esi, eax
mov ecx, ebx
push esi
call fcn.00491be0
push esi
push edi
mov ecx, ebx
call fcn.00492170
mov dword [esp + 0x10], ebp
jmp 0x511a4d
mov esi, dword [esp + 0x40]
push esi
call fcn.00492700
add esp, 4
cmp eax, ebp
jne 0x5116cb
push 0x16
mov ecx, ebx
call fcn.00491bb0
mov dword [esp + 0x10], ebp
jmp 0x511a4d
lea ecx, [esp + 0x1c]
call fcn.004918b0
mov al, byte [esi]
mov dword [esp + 0x38], edi
cmp al, 0x20
jne 0x5116e6
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x5116de
mov al, byte [esi]
mov dword [esp + 0x14], edi
cmp al, 0x22
jne 0x511735
mov dword [esp + 0x14], ebp
inc esi
mov al, byte [esi]
mov ebp, esi
test al, al
je 0x51192a
test al, 0x80
je 0x511914
mov cl, byte [esi + 1]
inc esi
test cl, cl
je 0x511926
xor edx, edx
mov dh, al
mov dl, cl
mov eax, edx
cmp ax, 0xa1b0
je 0x51172d
cmp ax, 0xa1b1
jne 0x51191a
lea edi, [esi - 1]
jmp 0x51191a
test al, 0x80
je 0x51175f
xor ecx, ecx
mov ch, al
mov cl, byte [esi + 1]
mov edi, ecx
cmp di, 0xa1b0
mov dword [esp + 0x44], edi
je 0x511754
cmp di, 0xa1b1
jne 0x511763
add esi, 2
mov dword [esp + 0x14], ebp
xor edi, edi
jmp 0x5116f5
mov edi, dword [esp + 0x44]
test al, al
je 0x5118b9
mov bl, byte [esp + 0x48]
mov cl, al
inc esi
mov byte [esp + 0x40], cl
mov eax, dword [esp + 0x40]
and eax, 0xff
shr eax, 7
cmp eax, 1
jne 0x5117c5
mov bl, byte [esi]
inc esi
test bl, bl
je 0x5118b0
xor edx, edx
mov dh, cl
mov dl, bl
mov dword [esp + 0x44], edx
mov edi, edx
cmp cl, 0x81
jb 0x5117ac
cmp cl, 0xa0
jbe 0x511896
cmp cl, 0xaa
jae 0x511896
cmp cl, 0xa9
jne 0x5117e6
cmp bl, 0x60
je 0x511896
jmp 0x51180e
test eax, eax
jne 0x51179e
cmp cl, 0x20
jae 0x5117d3
mov byte [esp + 0x40], 0x20
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
call fcn.00491bb0
jmp 0x5118a6
cmp cl, 0xa4
jne 0x5117fb
cmp bl, 0xa1
jb 0x51180e
cmp bl, 0xf3
jbe 0x511896
jmp 0x51180e
cmp cl, 0xa5
jne 0x51180e
cmp bl, 0xa1
jb 0x51180e
cmp bl, 0xf6
jbe 0x511896
cmp di, 0xa1a1
jne 0x511825
push 0x20
lea ecx, [esp + 0x20]
call fcn.00491bb0
jmp 0x5118a6
cmp di, 0xa1ae
je 0x511889
cmp di, 0xa1af
je 0x511889
cmp di, 0xa1a3
jne 0x511847
push 0x2e
lea ecx, [esp + 0x20]
call fcn.00491bb0
jmp 0x5118a6
movzx di, bl
movzx cx, cl
shl edi, 8
or ecx, edi
push ecx
call fcn.005036b0
add esp, 4
mov byte [esp + 0x40], al
test al, al
je 0x511879
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push edx
call fcn.00491bb0
mov edi, dword [esp + 0x44]
jmp 0x5118a6
push edi
lea ecx, [esp + 0x20]
call fcn.00491b70
mov edi, dword [esp + 0x44]
jmp 0x5118a6
push 0x27
lea ecx, [esp + 0x20]
call fcn.00491bb0
jmp 0x5118a6
xor eax, eax
mov ah, bl
mov al, cl
lea ecx, [esp + 0x1c]
push eax
call fcn.00491b70
mov al, byte [esi]
test al, al
jne 0x51176f
mov ebx, dword [esp + 0x48]
mov ebp, 1
push 0
lea ecx, [esp + 0x20]
call fcn.00491bb0
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
neg esi
sbb esi, esi
and esi, edi
mov al, byte [esi]
inc esi
test ecx, ecx
je 0x51193e
push 0x1a
mov ecx, ebx
call fcn.00491bb0
mov eax, dword [esp + 0x2c]
mov ecx, ebx
push eax
call fcn.00491be0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov ecx, ebx
and eax, esi
push eax
call fcn.00492170
mov dword [esp + 0x10], ebp
jmp 0x511a34
cmp al, 0x22
jne 0x51191a
mov edi, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x511701
test edi, edi
jne 0x51192c
mov edi, esi
sub edi, ebp
lea ecx, [esp + 0x1c]
push edi
push ebp
call fcn.00492170
jmp 0x5118b4
cmp al, 0x5b
jne 0x511994
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x5d
jne 0x511a34
mov byte [ecx + esi - 1], 0
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.00502ef0
add esp, 8
cmp eax, ebp
jne 0x511a34
push 0x19
mov ecx, ebx
call fcn.00491bb0
lea edx, [esp + 0x14]
push 8
push edx
mov ecx, ebx
call fcn.00492170
mov dword [esp + 0x10], ebp
jmp 0x511a34
cmp al, 0x30
jb 0x51199c
cmp al, 0x39
jbe 0x5119dc
cmp al, 0x2e
je 0x5119dc
cmp al, 0x2d
je 0x5119dc
lea eax, [esp + 0x48]
dec esi
push eax
push esi
mov ecx, 0x6756e0
call fcn.0046d920
cmp eax, ebp
jne 0x511a34
push 0x18
mov ecx, ebx
call fcn.00491bb0
mov ecx, dword [esp + 0x48]
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
dec ecx
push ecx
mov ecx, ebx
call fcn.00491b70
mov dword [esp + 0x10], ebp
jmp 0x511a34
lea edx, [esi - 1]
push edx
call fcn.0052f812
mov al, byte [esi]
add esp, 4
fstp qword [esp + 0x14]
test al, al
mov dword [esp + 0x10], ebp
je 0x511a1d
inc esi
cmp al, 0x2d
je 0x511a17
cmp al, 0x2e
je 0x511a17
cmp al, 0x30
jb 0x511a07
cmp al, 0x39
jbe 0x511a17
cmp al, 0x44
je 0x511a17
cmp al, 0x45
je 0x511a17
cmp al, 0x64
je 0x511a17
cmp al, 0x65
jne 0x511a6d
mov al, byte [esi]
test al, al
jne 0x5119f6
push 0x17
mov ecx, ebx
call fcn.00491bb0
lea eax, [esp + 0x14]
push 8
push eax
mov ecx, ebx
call fcn.00492170
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x1c], 0x5f7940
call fcn.00491ab0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
neg eax
sbb eax, eax
pop edi
and al, 0xd4
pop esi
pop ebp
add eax, 0x2c
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov dword [esp + 0x10], 0
jmp 0x511a34