Function at 0x4d19f4
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 0x4d1eaf
mov eax, dword [0x56adf4]
cmp byte [eax], 0
je 0x4d1a29
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x4c]
cmp eax, dword [ebp - 0xc]
jne 0x4d1eaf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.005340a0
test al, al
je 0x4d1d11
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.005341f4
test al, al
jne 0x4d1d02
mov bl, 1
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x30]
cmp dword [edi + 0x3c], 0
jge 0x4d1be1
mov eax, edi
call fcn.005363e8
mov eax, dword [eax + 0x78bc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x94]
mov ecx, edx
shl edx, 5
sub edx, ecx
cmp dword [eax + edx*8 + 0x14], 0x64
jne 0x4d1be1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.005341b0
test al, al
jne 0x4d1be1
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.00503824
cmp byte [ebp - 0x24], 2
jne 0x4d1b92
cmp dword [ebp - 0x54], 0
je 0x4d1b92
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.004361d4
call fcn.00431778
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.005357f8
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.004361d4
call fcn.00431778
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 + 0x50]
call fcn.004361d4
call fcn.00431778
push eax
call sub.gdi32.dll_BitBlt
jmp 0x4d1cd3
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.005070ec
push ebp
push 0
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x34]
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x48]
xor ecx, ecx
call fcn.00555dc0
lea eax, [ebp - 0x64]
call fcn.004d19b8
pop ecx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
jmp 0x4d1cd3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp byte [eax + 0x98], 0
jne 0x4d1bfa
cmp byte [eax + 0x23], 0
jne 0x4d1bfa
xor ebx, ebx
jmp 0x4d1bfc
mov bl, 1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_GetClipBox
mov edi, eax
test edi, edi
je 0x4d1eaf
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.00536b68
test al, al
je 0x4d1c69
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x30], 0
je 0x4d1c69
lea eax, [ebp - 0x1c]
mov dl, 1
call fcn.00555efc
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x34]
cmp eax, dword [edx + 0x48]
jne 0x4d1c5c
lea eax, [ebp - 0x1c]
mov dl, 1
call fcn.00555f10
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x34]
cmp eax, dword [edx + 0x4c]
jne 0x4d1c5c
xor eax, eax
jmp 0x4d1c5e
mov al, 1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
mov byte [edx + 0x23], al
jmp 0x4d1c73
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x23], 0
test bl, bl
je 0x4d1c92
mov eax, dword [ebp - 8]
call fcn.004d1eb8
test al, al
jne 0x4d1c92
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
jmp 0x4d1eaf
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.00555e08
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x74]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00555dc0
lea ecx, [ebp - 0x74]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.00538e40
lea ecx, [ebp - 0x7c]
xor edx, edx
xor eax, eax
call fcn.00555e98
lea eax, [ebp - 0x7c]
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.004c7164
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.004c6f44
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
jmp 0x4d1eaf
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.00536c0c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.005358a4
mov edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x34]
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
xor ecx, ecx
call fcn.00555dc0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x4c]
cmp eax, dword [ebp - 0xc]
je 0x4d1d66
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.00472ce0
push eax
call sub.user32.dll_GetDC
mov dword [ebp - 4], eax
xor ecx, ecx
push ebp
push 0x4d1ea8
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.005070ec
test edi, edi
jne 0x4d1da1
push ebp
lea eax, [ebp - 0x1c]
call fcn.004d19b8
pop ecx
jmp 0x4d1df6
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x50], 0
jne 0x4d1dc7
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x34]
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x48]
call fcn.0050c094
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
push eax
push 0
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004af7e4
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_InflateRect
push ebp
lea eax, [ebp - 0x1c]
call fcn.004d19b8
pop ecx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
test edi, edi
jle 0x4d1e37
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebx + 0x48]
push eax
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x50]
call fcn.004361d4
call fcn.00431778
push eax
push 0
push 0
push edi
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00507024
lea ecx, [ebp - 0x7c]
xor edx, edx
xor eax, eax
call fcn.00555e98
lea eax, [ebp - 0x7c]
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.004c7164
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x50], 0
je 0x4d1e77
add eax, 0x50
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.00403d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1eaf
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x4c]
cmp eax, dword [ebp - 0xc]
je fcn.004d1ea7
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.00472ce0
push eax
call sub.user32.dll_ReleaseDC
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret