Function at 0x40eb00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x94], edi
call fcn.0040f0a0
mov esi, dword [edi]
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
xor ecx, ecx
lea edx, [ebp - 0x74]
test eax, eax
cmove edx, ecx
test eax, eax
cmovne esi, ecx
mov ecx, esi
call fcn.0040b7a0
mov ebx, dword [edi + 0x10]
mov esi, eax
mov eax, dword [edi + 0x14]
sub eax, dword [edi + 0xc]
sub ebx, dword [edi + 8]
mov dword [ebp - 0x90], eax
mov eax, dword fs:[0x18]
push 0x64
mov dword [ebp - 0x8c], ebx
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edx, esi
mov dword [edi + 4], eax
mov ecx, 5
call fcn.0040b960
shl eax, 2
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.dwmapi.dll_DwmGetColorizationColor]
test eax, eax
jns 0x40eba2
xor esi, esi
jmp 0x40ebbe
mov ecx, dword [ebp - 8]
movzx esi, cl
movzx eax, cx
shl esi, 8
shr eax, 8
or esi, eax
shr ecx, 0x10
shl esi, 8
movzx eax, cl
or esi, eax
push esi
push dword [ebp - 0x80]
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push esi
push dword [ebp - 0x80]
mov dword [edi + 0x28], eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0
mov dword [edi + 0x2c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [ebp - 0x98], esi
test esi, esi
je 0x40ee9b
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
mov dword [edi + 0x30], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x5c], ebx
mov ebx, eax
imul ebx, dword [ebp - 0x8c]
push 0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x7c]
push eax
push 0
lea eax, [ebp - 0x60]
shl ebx, 2
push eax
push esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x60], 0x28
mov dword [ebp - 0x54], 0x200001
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x20], eax
test ecx, ecx
je 0x40ecb1
lea esp, [esp]
test eax, eax
je 0x40ecb1
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push dword [edi + 0xc]
push dword [edi + 8]
push esi
push dword [ebp - 0x90]
push dword [ebp - 0x8c]
push 0
push 0
push dword [edi + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x8c]
push 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x90]
push 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], 0
push eax
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x34], 0x28
mov dword [ebp - 0x28], 0x200001
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x84], ecx
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x24], eax
test ecx, ecx
je 0x40ee8c
test eax, eax
je 0x40ee8c
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [ebp - 0x8c]
push 0xcc0020
push dword [edi + 0xc]
push dword [edi + 8]
push esi
push dword [ebp - 0x90]
push ebx
push 0
push 0
push dword [edi + 0x1c]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x20]
shr eax, 2
test eax, eax
je 0x40ee92
fld qword [0x42ef20]
mov ebx, eax
mov esi, dword [ebp - 0x84]
xor edi, edi
mov edx, dword [esi + edi*4]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x84], eax
fild dword [ebp - 0x84]
fnstcw word [ebp - 0x7e]
fstp qword [ebp - 0x88]
fld qword [ebp - 0x88]
fdiv st(1)
movzx eax, word [ebp - 0x7e]
or eax, 0xc00
mov dword [ebp - 0x84], eax
mov ax, dx
shr ax, 8
movzx eax, ax
fldcw word [ebp - 0x84]
fistp dword [ebp - 0x84]
movzx ecx, byte [ebp - 0x84]
mov dword [ebp - 0x84], eax
shl ecx, 8
fldcw word [ebp - 0x7e]
fild dword [ebp - 0x84]
fnstcw word [ebp - 0x7e]
fstp qword [ebp - 0x88]
fld qword [ebp - 0x88]
fdiv st(1)
movzx eax, word [ebp - 0x7e]
or eax, 0xc00
mov dword [ebp - 0x84], eax
fldcw word [ebp - 0x84]
fistp dword [ebp - 0x84]
movzx eax, byte [ebp - 0x84]
or ecx, eax
movzx eax, dl
mov dword [ebp - 0x84], eax
fldcw word [ebp - 0x7e]
shl ecx, 8
fild dword [ebp - 0x84]
fnstcw word [ebp - 0x7e]
fstp qword [ebp - 0x88]
fld qword [ebp - 0x88]
fdiv st(1)
movzx eax, word [ebp - 0x7e]
or eax, 0xc00
mov dword [ebp - 0x84], eax
fldcw word [ebp - 0x84]
fistp dword [ebp - 0x84]
movzx eax, byte [ebp - 0x84]
or ecx, eax
mov dword [esi + edi*4], ecx
inc edi
fldcw word [ebp - 0x7e]
cmp edi, ebx
jb 0x40ed8a
mov edi, dword [ebp - 0x94]
fstp st(0)
mov esi, dword [ebp - 0x98]
mov ebx, dword [ebp - 0x8c]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x260
push dword [ebp - 0x90]
push ebx
push dword [edi + 0xc]
push dword [edi + 8]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret