Function at 0x468180
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496568
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x30]
call fcn.0040a190
test al, al
jne 0x4681cf
mov eax, 0xe0000011
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x34]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, eax
test edi, edi
jne 0x4684f5
cmp word [ebp - 0x10], 0xfeff
jne 0x4681fb
mov dword [ebx + 0x38], 1
cmp dword [ebx + 0x38], 1
jne 0x468208
mov eax, dword [ebx + 0x24]
mov byte [eax + 0x10], 1
cmp byte [ebp + 8], 0
je 0x468245
push ecx
lea ecx, [ebx + 0x34]
call fcn.0044a220
test al, al
jne 0x468245
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x28]
call fcn.00431ae0
mov eax, 0xe000000e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebx + 0xc]
call fcn.00402cc0
lea ecx, [ebx + 0x18]
call fcn.0042d400
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x2c]
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
call dword [eax + 0xc]
mov eax, dword [ebp - 0x24]
xor esi, esi
test eax, eax
jle 0x4682f3
test esi, esi
js 0x46851c
cmp esi, eax
jge 0x46851c
mov eax, dword [ebp - 0x28]
mov ecx, 0x4a74f4
lea edi, [eax + esi*4]
mov eax, dword [edi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4682c9
test dx, dx
je 0x4682c5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4682c9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4682a3
xor eax, eax
jmp 0x4682ce
sbb eax, eax
or eax, 1
mov ecx, ebx
test eax, eax
jne 0x4682db
call fcn.00468840
jmp 0x4682e1
push edi
call fcn.00468540
mov edi, eax
test edi, edi
jne 0x4684e4
mov eax, dword [ebp - 0x24]
inc esi
cmp esi, eax
jl 0x468286
mov ecx, ebx
call fcn.00468b60
mov ecx, ebx
call fcn.00468da0
mov eax, dword [ebx + 8]
xor esi, esi
test eax, eax
jle 0x46838c
nop
test esi, esi
js 0x46851c
cmp esi, eax
jge 0x46851c
mov eax, dword [ebx]
lea edi, [esi*4]
mov ecx, dword [ebx + 0x24]
add eax, edi
push eax
call fcn.00469140
mov dword [ebp + 8], eax
test eax, eax
je 0x468384
cmp esi, dword [ebx + 8]
jge 0x46851c
mov ecx, dword [ebx + 4]
add ecx, edi
push ecx
mov ecx, dword [ebx + 0x24]
call fcn.00469140
mov edi, eax
test edi, edi
je 0x468384
mov eax, dword [edi]
test eax, eax
je 0x468528
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00472182
add esp, 8
test eax, eax
je 0x468384
mov eax, dword [ebp + 8]
mov dword [eax + 0x14c], edi
mov byte [edi + 0x157], 1
mov eax, dword [ebx + 8]
inc esi
cmp esi, eax
jl 0x468310
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x10], eax
cmp dword [eax + 4], 1
jne 0x4683ca
mov edi, dword [eax + 0xc]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [ebp + 8], eax
call esi
mov ecx, dword [edi + 0x30]
shr ecx, 1
test cl, 1
je 0x4683c6
cmp dword [ebp + 8], 0x400
jl 0x4683c6
cmp eax, 0x300
jge 0x4683ca
mov dl, 1
jmp 0x4683cc
xor dl, dl
mov ecx, dword [ebp - 0x10]
xor edi, edi
mov byte [ebp + 0xb], dl
mov eax, dword [ecx + 4]
test eax, eax
jle 0x468449
xor esi, esi
mov dword [ebp - 0x14], esi
test esi, esi
js 0x46851c
cmp edi, eax
jge 0x46851c
add esi, dword [ecx]
test dl, dl
je 0x468400
or dword [esi + 0x90], 0x800
mov eax, dword [esi + 0x90]
shr eax, 0xa
test al, 1
jne 0x46842f
mov ecx, esi
call fcn.00450790
mov dl, byte [ebp + 0xb]
test al, al
jne 0x46842f
mov dword [esi + 0x150], 0xe0000024
or dword [esi + 0x90], 0x400
mov eax, dword [ebp - 0x10]
inc edi
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add esi, 0x164
mov dword [ebp - 0x14], esi
mov eax, dword [eax + 4]
cmp edi, eax
jl 0x4683e0
mov ecx, dword [ebx + 0x24]
xor edi, edi
mov dword [ebp + 8], ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ecx + 4]
test eax, eax
jle 0x4684e2
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test ebx, ebx
js 0x46851c
cmp edi, eax
jge 0x46851c
mov ecx, dword [ecx]
add ecx, ebx
mov esi, dword [ecx + 0x14c]
test esi, esi
je 0x4684ce
lea eax, [ecx + 0x4c]
mov dword [ebp - 0x18], eax
lea edi, [ecx + 0x34]
mov ebx, dword [ebp - 0x18]
lea eax, [ecx + 0x64]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x34]
mov ecx, edi
push eax
call fcn.0042ac50
lea eax, [esi + 0x4c]
mov ecx, ebx
push eax
call fcn.0042ac50
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + 0x64]
push eax
call fcn.0042ac50
mov esi, dword [esi + 0x14c]
test esi, esi
jne 0x468494
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
jmp 0x4684d1
mov ecx, dword [ebp + 8]
inc edi
add ebx, 0x164
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
cmp edi, eax
jl 0x468464
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402e80
jmp 0x468506
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x28]
call fcn.00431ae0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.004036b0
push 0x80004005
call fcn.004023a0
int3