Function at 0x49e5dc
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 0x49eae3
mov eax, dword [0x522f90]
cmp byte [eax], 0
je 0x49e611
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ebp - 0xc]
jne 0x49eae3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.004deb7c
test al, al
je 0x49e954
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.004dec00
test al, al
jne 0x49e945
mov bl, 1
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x30]
cmp dword [edi + 0x2c], 0
jge 0x49e7c2
mov eax, edi
call fcn.004e0dd0
mov eax, dword [eax + 0x7898]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
imul edx, dword [edx + 0x30], 0x1a
cmp dword [eax + edx*8 + 0x30], 0x64
jne 0x49e7c2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.004debc0
test al, al
jne 0x49e7c2
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.005081dc
cmp byte [ebp - 0x24], 2
jne 0x49e771
cmp dword [ebp - 0x54], 0
je 0x49e771
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.004280e0
call fcn.00423730
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.004dff54
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.004280e0
call fcn.00423730
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 + 0x48]
call fcn.004280e0
call fcn.00423730
push eax
call sub.gdi32.dll_BitBlt
jmp 0x49e916
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.0050bc78
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.00505fe4
lea eax, [ebp - 0x64]
call fcn.0049e5a0
pop ecx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
jmp 0x49e916
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp byte [eax + 0x84], 0
jne 0x49e7db
cmp byte [eax + 0x3c], 0
jne 0x49e7db
xor edx, edx
jmp 0x49e7dd
mov dl, 1
mov byte [eax + 0x84], dl
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.004e1480
test al, al
je 0x49e8a0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x30], 0
je 0x49e8a0
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.0040671c
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.00406724
xor al, 1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
mov byte [edx + 0x3c], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp byte [eax + 0x3c], 0
jne 0x49e893
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.0040671c
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.00406724
test al, al
je 0x49e893
xor eax, eax
jmp 0x49e895
mov al, 1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
mov byte [edx + 0x3c], al
jmp 0x49e8aa
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x3c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov bl, byte [eax + 0x84]
test bl, bl
je 0x49e8d5
mov eax, dword [ebp - 8]
call fcn.0049eaec
test al, al
jne 0x49e8d5
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
jmp 0x49eae3
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.0050602c
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.00505fe4
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.004e3120
lea ecx, [ebp - 0x6c]
xor edx, edx
xor eax, eax
call fcn.005060bc
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.004cb424
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.004cb1dc
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
jmp 0x49eae3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x24], 0
call fcn.004dfff4
mov ebx, 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.00505fe4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ebp - 0xc]
je 0x49e9a0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.0045fda0
push eax
call sub.user32.dll_GetDC
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x49eadc
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.0050bc78
test ebx, ebx
jne 0x49e9dd
push ebp
lea eax, [ebp - 0x1c]
call fcn.0049e5a0
pop ecx
jmp 0x49ea32
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x48], 0
jne 0x49ea03
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x34]
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x48]
call fcn.00510dd4
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
mov dword [edx + 0x48], 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.0048ddb4
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_InflateRect
push ebp
lea eax, [ebp - 0x1c]
call fcn.0049e5a0
pop ecx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
test ebx, ebx
jle 0x49ea73
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 + 0x48]
call fcn.004280e0
call fcn.00423730
push eax
push 0
push 0
push ebx
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0050bbb0
lea ecx, [ebp - 0x6c]
xor edx, edx
xor eax, eax
call fcn.005060bc
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.004cb424
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x48], 0
je 0x49eaab
add eax, 0x48
call fcn.0040e16c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49eae3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ebp - 0xc]
je 0x49eadb
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.0045fda0
push eax
call sub.user32.dll_ReleaseDC
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret