Function at 0x517770
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x58c5f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
call fcn.005150a0
lea ecx, [esp + 0x10]
call fcn.00514470
mov esi, dword [esp + 0x30]
movzx eax, word [esi]
test ax, ax
mov dword [esp + 0x28], 0
je 0x517b88
mov ecx, dword [esp + 0x34]
push ebx
lea ebx, [ecx - 4]
add ecx, 0xfffffff8
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
jmp 0x5177d4
mov edi, dword [esp + 0x20]
add esi, 2
cmp ax, 0x25
jne 0x517ba4
mov byte [esp + 0x13], 1
mov byte [esp + 0x38], 0
mov byte [esp + 0x3c], 0
mov edi, 0x2710
mov dword [esp + 0x24], 0x20
xor edx, edx
nop
movzx eax, word [esi]
add esi, 2
cmp ax, 0x2d
jne 0x517817
movzx eax, word [esi]
mov byte [esp + 0x13], 0
add esi, 2
cmp ax, 0x2b
jne 0x517828
movzx eax, word [esi]
mov edx, 0x2b
add esi, 2
cmp ax, 0x2d
je 0x517800
cmp ax, 0x2b
je 0x517800
cmp ax, 0x30
jne 0x517848
movzx eax, word [esi]
mov dword [esp + 0x24], 0x30
add esi, 2
cmp ax, 0x2a
jne 0x517865
add dword [esp + 0x14], 4
movzx eax, word [esi]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x1c], ebx
add esi, 2
jmp 0x51788d
xor ebp, ebp
cmp ax, 0x30
jb 0x51788d
lea ecx, [ecx]
cmp ax, 0x39
ja 0x51788d
movzx eax, ax
lea ecx, [ebp + ebp*4]
lea ebp, [eax + ecx*2 - 0x30]
movzx eax, word [esi]
add esi, 2
cmp ax, 0x30
jae 0x517870
cmp ax, 0x2e
jne 0x5178dc
movzx eax, word [esi]
xor edi, edi
add esi, 2
cmp ax, 0x2a
jne 0x5178b8
add dword [esp + 0x14], 4
movzx eax, word [esi]
mov edi, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x1c], ebx
add esi, 2
jmp 0x5178dc
cmp ax, 0x30
jb 0x5178dc
mov edi, edi
cmp ax, 0x39
ja 0x5178dc
movzx eax, ax
lea ecx, [edi + edi*4]
lea edi, [eax + ecx*2 - 0x30]
movzx eax, word [esi]
add esi, 2
cmp ax, 0x30
jae 0x5178c0
cmp ax, 0x6c
jne 0x5178e9
mov byte [esp + 0x38], 1
jmp 0x517902
cmp ax, 0x4c
jne 0x5178f6
mov byte [esp + 0x3c], 1
jmp 0x517902
cmp ax, 0x68
je 0x517902
cmp ax, 0x48
jne 0x517908
movzx eax, word [esi]
add esi, 2
movzx ecx, ax
add ecx, 0xffffffbe
cmp ecx, 0x36
ja case.0x51791e.72
movzx ecx, byte [ecx + 0x517bd0]
jmp dword [ecx*4 + 0x517bb0]
mov edi, dword [ebx + 4]
cmp ax, 0x70
setne al
add dword [esp + 0x14], 4
sub al, 1
and al, 0x20
add al, 0x58
movsx cx, al
add ebx, 4
movzx eax, cx
mov ebp, 8
mov dword [esp + 0x1c], ebx
jmp 0x517988
cmp byte [esp + 0x38], 0
je 0x517967
add dword [esp + 0x14], 4
mov edi, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x1c], ebx
jmp 0x517988
add dword [esp + 0x14], 4
mov edi, dword [ebx + 4]
add ebx, 4
cmp ax, 0x64
mov dword [esp + 0x1c], ebx
je 0x517988
cmp ax, 0x44
je 0x517988
and edi, 0xffff
lea ecx, [esp + 0x18]
push ecx
mov ecx, edx
mov edx, edi
call fcn.00516c10
add esp, 4
jmp case.0x51791e.83
add dword [esp + 0x14], 4
mov eax, dword [ebx + 4]
add ebx, 4
cmp byte [esp + 0x38], 0
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x18]
je 0x5179cc
test eax, eax
je 0x5179dc
push eax
call fcn.00515bc0
jmp 0x5179e6
test eax, eax
je 0x5179dc
push 0
push 0xffffffffffffffff
push eax
call fcn.005162a0
jmp 0x5179e6
push str._null_
call fcn.00515b70
cmp edi, 0x2710
je case.0x51791e.83
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x20]
call fcn.00515ce0
jmp case.0x51791e.83
mov edi, 0xfffffff2
jmp 0x517a15
cmp edi, 0x2710
jne 0x517a15
or edi, 0xffffffff
mov ecx, dword [esp + 0x14]
fld qword [ecx + 8]
add ecx, 8
push eax
add ebx, 8
sub esp, 8
cmp byte [esp + 0x48], 0
fstp qword [esp]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ecx
je 0x517a49
lea eax, [esp + 0x24]
push eax
mov eax, edi
call fcn.00517670
add esp, 0x10
jmp case.0x51791e.83
lea ecx, [esp + 0x24]
push ecx
mov eax, edi
call fcn.00517670
add esp, 0x10
jmp case.0x51791e.83
add dword [esp + 0x14], 4
add ebx, 4
cmp byte [esp + 0x38], 0
mov dword [esp + 0x1c], ebx
je 0x517a84
movzx edx, word [ebx]
push edx
lea ecx, [esp + 0x1c]
call fcn.00515b40
mov dword [esp + 0x24], 0x20
jmp case.0x51791e.83
mov al, byte [ebx]
push 0
push 1
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], al
call fcn.005162a0
mov dword [esp + 0x24], 0x20
jmp case.0x51791e.83
mov ecx, dword [esp + 0x20]
push eax
call fcn.00516180
test ebp, ebp
mov eax, dword [esp + 0x18]
movzx edi, word [eax]
jne 0x517abe
movsx ebp, di
movsx ebx, di
cmp ebp, ebx
jle 0x517b56
cmp word [esp + 0x24], 0x30
jne 0x517b02
movzx eax, word [eax + 0xc]
cmp ax, 0x2d
je 0x517ae1
cmp ax, 0x2b
jne 0x517b09
mov ebx, dword [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00516180
push 1
push 0
lea ecx, [esp + 0x20]
call fcn.00515ce0
sub edi, 1
sub ebp, 1
jmp 0x517b0d
cmp byte [esp + 0x13], 0
je 0x517b32
mov ebx, dword [esp + 0x20]
movsx eax, di
cmp ebp, eax
jle 0x517b29
sub ebp, eax
mov edi, ebp
mov edx, dword [esp + 0x24]
push edx
mov ecx, ebx
call fcn.00516180
sub edi, 1
jne 0x517b18
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
jmp 0x517b5f
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00516220
sub ebp, ebx
mov edi, ebp
mov ecx, dword [esp + 0x20]
push 0x20
call fcn.00516150
sub edi, 1
jne 0x517b44
jmp 0x517b64
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
call fcn.00516220
mov eax, dword [esp + 0x18]
cmp dword [eax], 0
je 0x517b76
lea ecx, [esp + 0x18]
call fcn.005150a0
mov ebx, dword [esp + 0x1c]
movzx eax, word [esi]
test ax, ax
jne 0x5177d0
pop ebp
pop ebx
lea ecx, [esp + 0x10]
call fcn.005144a0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push eax
mov ecx, edi
call fcn.00516180
jmp 0x517b7a