Function at 0x481ad0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
je 0x481fe4
cmp byte [0x5051a0], 0
je 0x481b04
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ebp - 0xc]
jne 0x481fe4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.004c39bc
test al, al
je 0x481e54
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.004c3a40
test al, al
jne 0x481e45
mov bl, 1
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x30]
cmp dword [edi + 0x30], 0
jge 0x481cb6
mov eax, edi
call fcn.004c5b58
mov eax, dword [eax + 0x7894]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
imul edx, dword [edx + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x40], 0x64
jne 0x481cb6
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.004c3a00
test al, al
jne 0x481cb6
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x23], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x54]
xor ecx, ecx
call fcn.004ebc50
cmp byte [ebp - 0x24], 2
jne 0x481c64
cmp dword [ebp - 0x54], 0
je 0x481c64
push 0xcc0020
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x54]
call fcn.004284dc
call fcn.00424010
push eax
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x34]
mov eax, dword [edi + 0x4c]
push eax
mov eax, dword [edi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.004c4df4
push 0xcc0020
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x54]
call fcn.004284dc
call fcn.00424010
push eax
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x34]
mov eax, dword [edi + 0x4c]
push eax
mov eax, dword [edi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x4c]
call fcn.004284dc
call fcn.00424010
push eax
call sub.gdi32.dll_BitBlt
jmp 0x481e16
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
push 0
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004efa6c
push ebp
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x34]
mov eax, dword [edi + 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [edi + 0x48]
xor edx, edx
xor eax, eax
call fcn.0040707c
lea eax, [ebp - 0x64]
call fcn.00481a94
pop ecx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
jmp 0x481e16
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp byte [eax + 0x80], 0
jne 0x481ccf
cmp byte [eax + 0x40], 0
jne 0x481ccf
xor edx, edx
jmp 0x481cd1
mov dl, 1
mov byte [eax + 0x80], dl
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.004c6240
test al, al
je 0x481d94
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x30], 0
je 0x481d94
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x34]
mov edx, dword [ebx + 0x44]
inc edx
mov eax, dword [ebx + 0x40]
inc eax
call fcn.00407098
lea eax, [ebp - 0x6c]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x64]
pop edx
call fcn.004070a0
xor al, 1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
mov byte [edx + 0x40], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp byte [eax + 0x40], 0
jne 0x481d87
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x34]
mov edx, dword [ebx + 0x44]
add edx, dword [ebx + 0x4c]
dec edx
mov eax, dword [ebx + 0x40]
add eax, dword [ebx + 0x48]
dec eax
lea ecx, [ebp - 0x6c]
call fcn.00407098
lea eax, [ebp - 0x6c]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x64]
pop edx
call fcn.004070a0
test al, al
je 0x481d87
xor eax, eax
jmp 0x481d89
mov al, 1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
mov byte [edx + 0x40], al
jmp 0x481d9e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x40], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov bl, byte [eax + 0x80]
test bl, bl
je 0x481dc9
mov eax, dword [ebp - 8]
call fcn.00481fec
test al, al
jne 0x481dc9
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
jmp 0x481fe4
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x34]
mov eax, dword [edi + 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [edi + 0x48]
xor edx, edx
xor eax, eax
call fcn.0040707c
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x7c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0040707c
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.004c7dec
lea ecx, [ebp - 0x6c]
xor edx, edx
xor eax, eax
call fcn.00407098
lea eax, [ebp - 0x6c]
push eax
push 0
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.004ae4b4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.004ae26c
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
jmp 0x481fe4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x28], 0
call fcn.004c4e94
mov ebx, eax
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x34]
mov eax, dword [esi + 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [esi + 0x48]
xor edx, edx
xor eax, eax
call fcn.0040707c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ebp - 0xc]
je 0x481ea1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.004469cc
push eax
call sub.user32.dll_GetDC
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x481fdd
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
push 0
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004efa6c
test ebx, ebx
jne 0x481ede
push ebp
lea eax, [ebp - 0x1c]
call fcn.00481a94
pop ecx
jmp 0x481f33
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x4c], 0
jne 0x481f04
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x34]
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x48]
call fcn.004f4bb4
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
push eax
push 0
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00471ac0
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_InflateRect
push ebp
lea eax, [ebp - 0x1c]
call fcn.00481a94
pop ecx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
test ebx, ebx
jle 0x481f74
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x34]
mov eax, dword [esi + 0x48]
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x4c]
call fcn.004284dc
call fcn.00424010
push eax
push 0
push 0
push ebx
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004ef9a4
lea ecx, [ebp - 0x6c]
xor edx, edx
xor eax, eax
call fcn.00407098
lea eax, [ebp - 0x6c]
push eax
push 0
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.004ae4b4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x4c], 0
je 0x481fac
add eax, 0x4c
call fcn.0040e9a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481fe4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ebp - 0xc]
je 0x481fdc
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.004469cc
push eax
call sub.user32.dll_ReleaseDC
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret