Function at 0x539a9c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cc437
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x6dd9a4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ecx
mov dword [ebx + 0x900], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
mov edi, 0x208
mov ecx, esp
mov dword [esp + 0x1c], esp
mov esi, 0xbe
push eax
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], edi
call fcn.00410faf
push 0x731294
mov ecx, ebx
call int.004b111b
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x18], esi
call fcn.00410faf
push 0x7312b0
mov ecx, ebx
call int.004b111b
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x18], edi
call fcn.00410faf
push 0x7311ec
mov ecx, ebx
call int.004b111b
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x18], esi
call fcn.00410faf
push 0x731208
mov ecx, ebx
call int.004b111b
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00410faf
push 0x731198
mov ecx, ebx
call int.004b111b
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00410faf
push 0x73117c
mov ecx, ebx
call int.004b111b
and dword [esp + 0x10], 0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00410faf
push 0x73133c
mov ecx, ebx
call int.004b111b
push ecx
mov dword [esp + 0x14], 0x64
mov ecx, esp
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], esp
push eax
call fcn.00410faf
push 0x731374
mov ecx, ebx
call int.004b111b
push 4
mov byte [ebx + 0x8c0], 0
call fcn.00511d1d
test eax, eax
pop ecx
je 0x539c26
and dword [eax], 0
jmp 0x539c28
xor eax, eax
lea esi, [ebx + 0x928]
mov edi, eax
call fcn.0044a80c
mov eax, dword [esi]
xor edi, edi
push edi
push eax
call fcn.0044ad2d
mov eax, dword [esi]
cmp eax, edi
jne 0x539c97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateDC_failed:__1___..Win32Desktop.cpp__626_
lea ecx, [esp + 0xd8]
mov dword [esp + 0x14], eax
call fcn.00403dd0
mov dword [esp + 0x238], edi
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.0041cc80
push eax
call fcn.004b0b95
or dword [esp + 0x244], 0xffffffff
add esp, 0xc
lea ecx, [esp + 0xd4]
call fcn.00401451
xor al, al
jmp 0x53a026
push dword [eax]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, edi
mov dword [ebx + 0x930], eax
jne 0x539cd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateCompatibleDC_failed:__1___..Win32Desktop.cpp__632_
lea ecx, [esp + 0xd8]
mov dword [esp + 0x14], eax
call fcn.00403dd0
mov dword [esp + 0x238], 1
jmp 0x539c68
push 0x20
pop ecx
call fcn.00540626
push eax
mov dword [esp + 0x14], eax
call fcn.004f3ce5
pop ecx
push dword [esp + 0x10]
mov edi, eax
push 0
push edi
call fcn.00516720
add esp, 0xc
push 0x7311ec
mov ecx, ebx
mov dword [edi], 0x28
call fcn.004b1ce3
push 0x731208
mov ecx, ebx
mov dword [edi + 4], eax
call fcn.004b1ce3
mov dword [edi + 8], eax
mov word [edi + 0xe], 0x20
mov esi, dword [esi]
push 0xe
push dword [esi]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
movzx ecx, word [edi + 0xe]
imul ecx, dword [edi + 4]
and dword [edi + 0x10], 0
add ecx, 0x1f
sar ecx, 3
mov word [edi + 0xc], ax
mov eax, dword [edi + 8]
and ecx, 0xfffffffc
imul ecx, eax
mov dword [edi + 0x14], ecx
neg eax
lea ecx, [ebx + 0x8a8]
push ecx
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x930]
push edi
push eax
lea esi, [ebx + 0x934]
push esi
call fcn.0044a11b
test eax, eax
jne 0x539d9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateDIBSection_failed:__1___..Win32Desktop.cpp__650_
lea ecx, [esp + 0xd8]
mov dword [esp + 0x14], eax
call fcn.00403dd0
mov dword [esp + 0x238], 2
jmp 0x539c68
push dword [esi]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x930]
call edi
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebx + 0x930]
call edi
mov eax, dword [ebx + 0x930]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebx + 0x930]
push 0
push eax
sub esp, 0x10
lea esi, [esp + 0x38]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a125f
add esp, 0x18
push 0x272c
lea eax, [esp + 0x40]
call fcn.0053fd64
mov dword [esp + 0x238], 3
push dword [esp + 0x44]
mov edi, dword [esp + 0x44]
push edi
xor esi, esi
push esi
lea eax, [esp + 0x6c]
push eax
call fcn.005401ec
mov byte [esp + 0x238], 4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
push esi
lea eax, [esp + 0x40]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
lea edx, [esp + 0x14]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x24]
call fcn.0053fd0a
push ecx
mov esi, esp
mov dword [esi], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x20], esp
push eax
mov eax, ecx
call fcn.0053fedf
lea eax, [edi - 1]
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x64]
call fcn.0053fe1d
mov eax, dword [esp + 0x44]
shr eax, 1
add eax, 0x3b
push eax
mov esi, ebx
call fcn.0058f44e
movzx ecx, byte [esp + 0x1d]
push eax
xor eax, eax
mov ah, byte [esp + 0x20]
lea esi, [esp + 0x64]
or eax, ecx
movzx ecx, byte [esp + 0x22]
shl eax, 8
or eax, ecx
push eax
call fcn.0053fd93
mov eax, dword [esp + 0x44]
add eax, 0x3b
mov dword [esp + 0x2c], eax
push 1
lea eax, [esp + 0x24]
lea ecx, [edi + 9]
push eax
mov eax, dword [ebx + 0x930]
push ecx
mov dword [esp + 0x34], ecx
mov ecx, esp
mov dword [esp + 0x2c], 9
mov dword [esp + 0x30], 0x3b
mov dword [esp + 0x24], esp
mov dword [ecx], eax
call fcn.0053ff1a
lea eax, [esp + 0x9c]
push 0x2a02
push eax
call fcn.004b0977
mov esi, eax
lea eax, [esp + 0xc0]
push 0x2a00
push eax
mov byte [esp + 0x248], 5
call fcn.004b0977
push esi
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x254], 6
call fcn.00403b98
add esp, 0x1c
push eax
lea ecx, [esp + 0x180]
mov byte [esp + 0x23c], 7
call fcn.0042401a
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x28]
call fcn.00410446
push esi
push 1
lea ecx, [esp + 0xc0]
call fcn.00410446
push esi
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x240], 0xb
call fcn.00410446
lea eax, [esp + 0x10]
push eax
add edi, 0x13
lea eax, [esp + 0x180]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0x3b
mov dword [esp + 0x5c], 0x1fe
mov dword [esp + 0x60], 0x89
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 4
call fcn.0041e6c1
pop ecx
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e6c1
pop ecx
lea ecx, [esp + 0x80]
push ecx
mov ecx, eax
call fcn.004232d9
cmp dword [eax + 0x18], 8
jb 0x539fd5
mov eax, dword [eax + 4]
jmp 0x539fd8
add eax, 4
mov ebx, dword [ebx + 0x930]
push 0x10
lea ecx, [esp + 0x54]
push ecx
push 0xffffffffffffffff
push eax
push ebx
call dword [0x6e87f8]
push esi
push 1
lea ecx, [esp + 0x88]
call fcn.00410446
lea ecx, [esp + 0x17c]
mov byte [esp + 0x238], 4
call fcn.00401451
lea ecx, [esp + 0x60]
call fcn.00430ee8
lea ecx, [esp + 0x3c]
call fcn.00430f22
mov al, 1
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005112a7
mov esp, ebp
pop ebp
ret 4