Function at 0x5d9a24
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5d9e2e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00536b48
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax - 0x24]
mov dl, 1
mov eax, dword [0x54268c]
call fcn.0055fd9c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x49], 0
xor eax, eax
push ebp
push 0x5d9d63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
sub eax, 2
je 0x5d9bb0
sub eax, 6
je 0x5d9bb0
sub eax, 6
jne 0x5d9d59
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x4a], 0
mov esi, dword [ebx + 0x38]
test esi, esi
jne 0x5d9ada
push 0
mov edx, 0xe
mov eax, ebx
call fcn.005359b8
push eax
call sub.gdi32.dll_CopyEnhMetaFileW
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x1c], eax
jmp 0x5d9ae7
mov eax, esi
call fcn.005354ec
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x1c], 0
jne 0x5d9af5
call fcn.00656a70
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x7c]
push eax
push 0x64
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
push eax
call sub.gdi32.dll_GetEnhMetaFileHeader
mov eax, dword [0x66f8a8]
mov eax, dword [eax]
push eax
push 8
push 0
push 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
push eax
call sub.gdi32.dll_GetWinMetaFileBits
call fcn.0064e150
mov ebx, eax
mov eax, dword [0x66f8a8]
mov eax, dword [eax]
push eax
push 8
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
push eax
call sub.gdi32.dll_GetWinMetaFileBits
mov eax, dword [ebx + 8]
push eax
push 0
mov ecx, dword [ebx + 4]
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0055df3c
mov eax, ebx
call fcn.004028c0
imul eax, dword [ebp - 0x2c], 0x64
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_MulDiv
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x2c], eax
imul eax, dword [ebp - 0x28], 0x64
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_MulDiv
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x30], eax
jmp 0x5d9d59
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x4a], 1
mov esi, dword [ebx + 0x38]
test esi, esi
jne 0x5d9bc8
call fcn.006475c8
mov dword [ebp - 8], eax
jmp 0x5d9bd2
mov eax, esi
call fcn.005354ec
mov dword [ebp - 8], eax
call fcn.0042db2c
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x38], eax
xor eax, eax
push ebp
push 0x5d9d37
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x38], 0
jne 0x5d9cb6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 8], 2
jne 0x5d9c30
mov edx, 9
mov eax, ebx
call fcn.005359b8
push eax
mov edx, 2
mov eax, ebx
call fcn.005359b8
mov ecx, eax
mov dx, 2
mov eax, dword [ebp - 8]
call fcn.0064b200
jmp 0x5d9cb6
mov edx, 8
mov eax, ebx
call fcn.005359b8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x5d9caf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov edi, ebx
push edi
mov esi, ebx
mov eax, dword [esi]
add eax, ebx
mov edx, dword [esi + 0x20]
shl edx, 2
add eax, edx
test byte [esi + 0x10], 3
setne dl
and edx, 0x7f
shl edx, 2
lea edx, [edx + edx*2]
add eax, edx
push eax
push 4
push edi
mov eax, dword [0x66f8a8]
mov eax, dword [eax]
push eax
call sub.gdi32.dll_CreateDIBitmap
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0064b718
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d9cb6
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov eax, dword [ebp - 8]
call fcn.0061dab8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.0061cd68
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 1
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0055df3c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 8]
call fcn.004028c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d9d59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d9d75
cmp dword [ebp - 4], 0
jne 0x5d9d89
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov byte [eax], 1
jmp 0x5d9dc6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov ecx, 1
mov edx, 0x78
call fcn.0055f7a8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x30]
mov edx, dword [ebp - 4]
call fcn.005f7f30
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x30]
mov edx, dword [ebp - 4]
call fcn.005f7e30
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
cmp byte [eax], 0
jne 0x5d9e0b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0xb0]
call fcn.0064ea3c
mov ecx, dword [ebp - 4]
mov dl, 0x1b
call fcn.0055161c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
lea edx, [eax - 0x2c]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00561404
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov byte [eax + 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d9e35
lea eax, [ebp - 0xc]
call fcn.00403880
ret