Function at 0x40d680
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bb230
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x28], ebp
mov ebx, dword [sym.imp.GDI32.dll_SaveDC]
xor esi, esi
push ebp
mov dword [esp + 0x84], esi
call ebx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_GetClientRect]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call ebx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_SaveDC]
mov eax, dword [edi + 0x30]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
xor eax, eax
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x30]
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 0xcc0020
push 0x84
push 4
push 0
push 0
push ebx
push 0x84
push 4
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x30]
push 0xcc0020
push 0x84
push 4
add eax, 4
push 0
mov ecx, dword [esp + 0x44]
push 4
push ebx
push 0x84
push 0xc9
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push 0xcc0020
push 0x84
push 4
push 0
push 8
push ebx
push 0x84
push 4
push edx
add eax, 0xcd
push eax
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
test ebx, ebx
je 0x40d808
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x40d808
xor ebx, ebx
mov dword [esp + 0x18], ebx
push ebp
mov byte [esp + 0x84], 4
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov dword [esp + 0x90], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov eax, dword [edi + 0x34]
push eax
mov eax, dword [esp + 0x90]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 0x34]
xor eax, eax
lea ecx, [esp + 0x60]
push ecx
push 0x18
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x40d87b
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
jmp 0x40d883
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x8c]
push 0xcc0020
push 0
push 0
push edx
push ecx
push eax
push 0x2e
push 9
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x8c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x40d8d2
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x40d8d2
mov dword [esp + 0x8c], 0
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [edi + 0x2c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x28]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [edi + 0x3c]
push 0x20
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x58], 6
mov dword [esp + 0x5c], 7
mov dword [esp + 0x60], 0x6a
mov dword [esp + 0x64], 0x15
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [edi + 0x24]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [edi + 0x20]
push edi
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x4caa00
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0x36
mov dword [esp + 0x48], 0x32
mov dword [esp + 0x4c], 0xc0
mov dword [esp + 0x50], 0x40
call fcn.0040d610
push 0x10
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
mov byte [esp + 0x94], 5
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, 0x12
add dword [esp + 0x44], eax
add dword [esp + 0x4c], eax
push 0x4ca9f4
lea ecx, [esp + 0x20]
call fcn.0040d610
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 8]
push 0x10
lea edx, [esp + 0x44]
push edx
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
push esi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x44]
sub edx, ecx
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xffffffffffffffff
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
test esi, esi
je 0x40d9ff
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x40d9ff
xor esi, esi
push 0xffffffffffffffff
push ebp
call dword [sym.imp.GDI32.dll_RestoreDC]
test ebp, ebp
je 0x40da13
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [edi - 0xc]
cmp eax, dword [0x4e7028]
je 0x40da37
add edi, 0xfffffff4
push edi
call ebp
test eax, eax
jg 0x40da37
push edi
call fcn.0048c37a
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4e7028]
je 0x40da59
lea edi, [eax - 0xc]
push edi
call ebp
test eax, eax
jg 0x40da59
push edi
call fcn.0048c37a
add esp, 4
mov eax, dword [esp + 0x8c]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
je 0x40da6d
push eax
call edi
test ebx, ebx
je 0x40da74
push ebx
call edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40da83
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
je 0x40da8a
push esi
call edi
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0x10