Function at 0x40357d
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5865d4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x67d978]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, 0x208
mov eax, 0xbe
xor esi, esi
push 4
mov dword [ebx + 0xb8], esi
mov byte [ebx + 0x224], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov dword [ebx + 0x15c], ecx
mov dword [ebx + 0x160], eax
mov dword [ebx + 0x128], ecx
mov dword [ebx + 0x12c], eax
mov dword [ebx + 0x124], 0x20
mov dword [ebx + 0x16c], 0x64
mov byte [ebx + 0x1b4], 0
call fcn.00536391
pop ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1e0], esi
cmp eax, esi
je 0x403637
mov dword [eax], esi
jmp 0x403639
xor eax, eax
or dword [esp + 0x1e0], 0xffffffff
lea esi, [ebx + 0x278]
mov edi, eax
call fcn.0040a497
lea esi, [ebx + 0x278]
mov eax, dword [esi]
xor edi, edi
push edi
push eax
call fcn.00405f66
cmp dword [esi], edi
jne 0x4036d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
push str.CreateDC_failed:__1_
lea eax, [esp + 0x80]
push eax
call fcn.00409f00
mov dword [esp + 0x1e0], 1
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
call fcn.0040a170
push eax
call fcn.00401068
or dword [esp + 0x1e0], 0xffffffff
lea eax, [esp + 0x7c]
push eax
call fcn.00402184
xor al, al
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.00536476
mov esp, ebp
pop ebp
ret 4
push 4
call fcn.00536391
pop ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1e0], 2
cmp eax, edi
je 0x4036f5
mov dword [eax], edi
jmp 0x4036f7
xor eax, eax
or dword [esp + 0x1e0], 0xffffffff
lea esi, [ebx + 0x280]
mov edi, eax
call fcn.0040a497
mov eax, dword [ebx + 0x278]
mov eax, dword [eax]
mov esi, dword [ebx + 0x280]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esi], eax
jne 0x403753
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
push str.CreateCompatibleDC_failed:__1_
lea eax, [esp + 0x80]
push eax
call fcn.00409f00
mov dword [esp + 0x1e0], 3
jmp 0x40368a
push 0x20
pop ecx
push ecx
call fcn.00490306
add esp, 4
push eax
mov dword [esp + 0x18], eax
call fcn.005174fd
pop ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.00406b66
push 4
pop edi
mov dword [esp + 0x1e0], edi
push dword [esp + 0x14]
mov esi, dword [esp + 0x48]
push 0
push esi
mov dword [esp + 0x24], esi
call fcn.005389c0
mov dword [esi], 0x28
mov eax, dword [ebx + 0x128]
mov dword [esi + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [ebx + 0x12c]
and dword [esi + 0x10], 0
shl ecx, 5
add ecx, 0x1f
sar ecx, 3
and ecx, 0xfffffffc
imul ecx, eax
add esp, 0xc
neg eax
push edi
mov word [esi + 0xe], 0x20
mov word [esi + 0xc], 1
mov dword [esi + 0x14], ecx
mov dword [esi + 8], eax
call fcn.00536391
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x1e0], 5
test eax, eax
je 0x4037f2
and dword [eax], 0
jmp 0x4037f4
xor eax, eax
mov byte [esp + 0x1e0], 4
lea esi, [ebx + 0x288]
mov edi, eax
call fcn.0040a4d7
mov eax, dword [ebx + 0x280]
and dword [esp + 0x24], 0
mov edi, dword [esp + 0x18]
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push edi
lea esi, [ebx + 0x288]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00405fc2
test eax, eax
jne 0x4038a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
push str.CreateDIBSection_failed:__1_
lea eax, [esp + 0x80]
push eax
call fcn.00409f00
mov byte [esp + 0x1e0], 6
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.0040a170
push eax
call fcn.00401068
mov byte [esp + 0x1e0], 4
lea eax, [esp + 0x7c]
push eax
call fcn.00402184
lea esi, [ebx + 0x188]
call fcn.00406bfa
xor bl, bl
or dword [esp + 0x1e0], 0xffffffff
lea eax, [esp + 0x44]
push eax
call fcn.00405946
mov al, bl
jmp 0x4036b0
push 0x24
call fcn.00536391
pop ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x1e0], 7
test eax, eax
je 0x4038fc
movzx eax, word [edi + 0xe]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
neg eax
push eax
push dword [edi + 4]
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
push esi
push eax
call fcn.0041d783
mov byte [esp + 0x1f0], 8
push dword [esp + 0x34]
push dword [esp + 0x2c]
mov byte [esp + 0x1f8], 7
mov edi, dword [esp + 0x2c]
call fcn.00484cfb
jmp 0x4038fe
xor eax, eax
mov byte [esp + 0x1e0], 4
lea esi, [ebx + 0x188]
mov edi, eax
call fcn.0040a517
mov eax, dword [ebx + 0x288]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x280]
push eax
push dword [ecx]
call dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
lea esi, [esp + 0x20]
call fcn.004979af
mov byte [esp + 0x1e0], 9
mov ecx, dword [eax]
lea esi, [ebx + 0x280]
mov eax, dword [esi]
push ecx
push dword [eax]
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [esp + 0x1e0], 4
mov eax, dword [esi]
mov eax, dword [eax]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
fldz
mov esi, dword [esi]
mov eax, dword [esi]
sub esp, 0x18
fstp qword [esp + 0x10]
mov edi, esp
lea esi, [esp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00497664
add esp, 0xc
fld qword [0x618870]
lea eax, [esp + 0x6c]
fst qword [esp + 8]
fstp qword [esp]
push 0x2b75
push eax
call fcn.0048403a
mov byte [esp + 0x1e0], 0xa
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push 0x3b
pop esi
mov dword [esp + 0x1c], eax
add eax, esi
mov dword [esp + 0x34], eax
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
add ecx, 9
push eax
lea edi, [ebx + 0x280]
mov eax, dword [edi]
mov eax, dword [eax]
push ecx
mov dword [esp + 0x3c], ecx
mov ecx, esp
mov dword [esp + 0x34], 9
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], esp
mov dword [ecx], eax
mov byte [esp + 0x1ec], 0xb
mov byte [esp + 0x1ec], 0xa
lea ecx, [esp + 0x68]
call fcn.004845a3
push 0x2a00
lea ecx, [esp + 0x2c]
call fcn.004901f2
pop ecx
mov byte [esp + 0x1e0], 0xc
push eax
lea eax, [esp + 0x128]
push eax
call fcn.00409e88
mov byte [esp + 0x1e0], 0xe
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.0041382c
mov eax, dword [esp + 0x18]
and dword [esp + 0x18], 0
add eax, 0x13
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x58], esi
push eax
lea esi, [esp + 0x130]
mov dword [esp + 0x60], 0x1fe
mov dword [esp + 0x64], 0x89
mov dword [esp + 0x20], 7
call fcn.0048e327
pop ecx
mov esi, eax
call fcn.0048e327
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.00409f9c
mov byte [esp + 0x1e0], 0xf
cmp dword [eax + 0x18], 8
jb 0x403aab
mov eax, dword [eax + 4]
jmp 0x403aae
add eax, 4
mov edi, dword [edi]
mov edi, dword [edi]
push 0x10
lea ecx, [esp + 0x50]
push ecx
push 0xffffffffffffffff
push eax
push edi
call dword [0x689520]
mov byte [esp + 0x1e0], 0xe
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x30]
call fcn.0041382c
mov eax, dword [ebx + 0x12c]
mov ecx, dword [ebx + 0x128]
mov edx, dword [ebx + 0xb0]
push eax
push ecx
push esi
lea ebx, [ebx + edx*4 + 0xa4]
push esi
push dword [ebx]
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov byte [esp + 0x1e0], 0xa
lea eax, [esp + 0x124]
push eax
call fcn.00402184
mov byte [esp + 0x1e0], 4
lea ecx, [esp + 0x5c]
call fcn.00484087
mov bl, 1
jmp 0x403888