Function at 0x418310
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5548b0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x30]
call fcn.0050bee6
xor ebx, ebx
mov dword [esp + 0x80], ebx
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0x10
call ebp
cmp dword [0x5c9bf8], 7
mov esi, eax
mov dword [esp + 0x18], esi
jne 0x41836d
call fcn.004191f0
test eax, eax
je 0x418387
fld qword [0x587880]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00414700
add esp, 8
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 4]
lea eax, [esp + 0x60]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call esi
push eax
lea ecx, [esp + 0x34]
call fcn.0050c3f4
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x34]
push eax
push edx
call fcn.0050c740
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], eax
call fcn.0050bee6
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], vtable.CBrush.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], vtable.CBitmap.0
push ebx
mov byte [esp + 0x84], 3
call esi
push eax
lea ecx, [esp + 0x44]
call fcn.0050c3f4
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x2c]
call fcn.0050c6bb
push 0xf
call ebp
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x24]
call fcn.0050c6bb
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call fcn.0050c740
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x58], edx
push ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x48]
push edx
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x44]
mov ebp, dword [sym.imp.GDI32.dll_GetPixel]
push 1
push 1
push ecx
call ebp
lea ecx, [esp + 0x20]
mov ebx, eax
call fcn.0050c70e
test esi, esi
je 0x418488
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x44]
push esi
push edx
call fcn.0050c740
xor edi, edi
cmp dword [esp + 0x64], edi
jle 0x4184d8
mov eax, dword [esp + 0x68]
xor esi, esi
test eax, eax
jle 0x4184cf
mov eax, dword [esp + 0x34]
push esi
push edi
push eax
call ebp
cmp eax, ebx
je 0x4184c4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
push ecx
push esi
push edi
push edx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x68]
add esi, 1
cmp esi, eax
jl 0x4184a5
add edi, 1
cmp edi, dword [esp + 0x64]
jl 0x41849f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4184e3
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.0050c740
mov byte [esp + 0x80], 2
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.CBitmap.0
call fcn.004029b0
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CBrush.0
call fcn.004029b0
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 0
call fcn.0050c46e
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], 0xffffffff
call fcn.0050c46e
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret