Function at 0x476178
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd74
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x476574
test eax, eax
jne 0x4761b0
mov dl, 1
mov eax, dword [0x41783c]
call fcn.0041e0cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dword [ebp - 8], eax
mov byte [ebp - 0xd], 1
lea edx, [ebp - 0x27c]
mov eax, dword [ebp - 4]
call fcn.004759b0
xor edx, edx
push ebp
push 0x47656d
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x47653e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
xor edx, edx
call fcn.0041f238
mov eax, dword [ebp - 4]
cmp byte [eax + 0x36], 1
je 0x476206
cmp dword [ebp - 0x1ac], 1
jne 0x476215
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dl, 3
call fcn.0041f5dc
jmp 0x476222
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dl, 6
call fcn.0041f5dc
push 0
push 0
push 0
lea eax, [ebp - 0x28c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00410480
lea eax, [ebp - 0x28c]
push eax
push 0
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffd
call fcn.00403148
xor edx, edx
push ebp
push 0x47652d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x4762ae
mov edx, dword [ebp - 4]
cmp byte [edx + 0x36], 1
jne 0x4762a0
mov edx, eax
lea eax, [ebp - 0x1d4]
call fcn.004760f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0041de5c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 0xd], 0
jmp 0x4762ae
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x30], edx
lea eax, [ebp - 0x1d4]
call fcn.0047824c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x24]
xor edx, edx
mov eax, ebx
call fcn.0041f238
mov edx, dword [ebp - 0x168]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x164]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
xor edx, edx
mov eax, ebx
call fcn.0041e7a0
mov dword [ebp - 0xc], eax
mov edx, 1
mov eax, ebx
call fcn.0041e7a0
sub eax, dword [ebp - 0xc]
mov ebx, eax
test ebx, ebx
jle 0x476310
test bl, 3
jne 0x476310
mov esi, dword [ebp - 0x158]
jmp 0x476315
mov esi, 1
cmp dword [ebp - 0x198], 0
je 0x47642c
jmp 0x4763c4
lea eax, [ebp - 0x1d4]
mov edx, dword [ebp - 0x148]
call fcn.0047850c
mov eax, dword [ebp - 0x1cc]
cmp dword [eax + 0xc], 0
jne 0x476381
cmp dword [ebp - 0x150], 0
je 0x476381
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.0041e71c
cmp al, 3
jne 0x476381
cmp byte [ebp - 0xd], 0
je 0x476381
lea eax, [ebp - 0x1d4]
call fcn.00476048
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov byte [eax + 0x1a], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
xor edx, edx
call fcn.0041e7a0
mov dword [ebp - 0xc], eax
jmp 0x4763ab
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x1d4]
mov ecx, esi
call fcn.004783d0
mov edx, ebx
imul edx, eax
add dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x164]
jb 0x476393
lea eax, [ebp - 0x1d4]
call fcn.0047856c
lea eax, [ebp - 0x1d4]
call fcn.00476da8
cmp eax, 2
jne 0x476327
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x180], eax
cmp byte [ebp - 0x1dc], 0
je 0x47640b
mov dword [ebp - 0x17c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x1d4]
mov edx, dword [ebp - 0x148]
call fcn.0047850c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
xor edx, edx
call fcn.0041e7a0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x198], 0
je 0x47643e
cmp byte [ebp - 0x1dc], 0
je 0x476496
cmp dword [ebp - 0x150], 0
je 0x476496
cmp byte [ebp - 0xd], 0
je 0x476496
lea eax, [ebp - 0x1d4]
call fcn.00476048
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov byte [eax + 0x1a], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
xor edx, edx
call fcn.0041e7a0
mov dword [ebp - 0xc], eax
jmp 0x476496
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x1d4]
mov ecx, esi
call fcn.004783d0
mov edx, ebx
imul edx, eax
add dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x164]
jb 0x47647e
cmp dword [ebp - 0x198], 0
je 0x4764b8
lea eax, [ebp - 0x1d4]
call fcn.0047856c
lea eax, [ebp - 0x1d4]
call fcn.00476ebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476534
call fcn.0040bf38
test eax, eax
jne 0x4764e0
mov ebx, 0x64
jmp 0x4764e2
xor ebx, ebx
push ebx
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x1a]
push eax
push 0
lea eax, [ebp - 0x28c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00410480
lea eax, [ebp - 0x28c]
push eax
push 0
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffd
call fcn.00403148
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1a], 0
je 0x47652c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x10]
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret