Function at 0x53b570
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b27b8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
push esi
lea ecx, [esp + 0x54]
call fcn.00548700
lea ecx, [esp + 0x30]
mov dword [esp + 0x78], 0
call fcn.00535020
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 1
call fcn.00535020
lea edi, [ebx + 0x114]
mov ecx, edi
mov byte [esp + 0x78], 2
mov dword [esp + 0x2c], edi
call fcn.00539c10
mov eax, dword [eax]
lea ecx, [ebx + 0x6c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 1
call fcn.0052a510
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.004afc40
cmp dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
jne 0x53b610
test eax, eax
jne 0x53b622
lea ecx, [esp + 0x38]
call fcn.005350e0
lea ecx, [esp + 0x30]
call fcn.005350e0
lea ecx, [ebx + 0x12c]
call fcn.005389b0
push eax
lea ecx, [esp + 0x3c]
call fcn.00535160
lea ecx, [ebx + 0xf8]
call fcn.0052aa60
push eax
lea ecx, [esp + 0x34]
call fcn.00535160
cmp dword [esp + 0x1c], 0
jne 0x53b67f
mov edi, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.005350a0
push eax
lea ecx, [esp + 0x44]
call fcn.005350a0
push eax
mov eax, dword [edi + 0x148]
mov ecx, ebx
call eax
jmp 0x53b6d2
mov ecx, ebx
call fcn.0053a660
test eax, eax
je 0x53b6a4
mov ecx, edi
call fcn.00539c50
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebx + 0xf8]
call fcn.0052aaa0
jmp 0x53b6c8
lea ecx, [ebx + 0x54]
call fcn.00524840
test eax, eax
je 0x53b6d2
mov ecx, edi
call fcn.00539c30
mov edx, dword [eax]
lea ecx, [ebx + 0xf8]
mov dword [esp + 0x10], edx
call fcn.0052aa80
push eax
lea ecx, [esp + 0x34]
call fcn.00535160
mov edi, dword [ebp + 0x18]
sub edi, dword [ebp + 0x10]
lea ecx, [esp + 0x30]
call fcn.005350b0
mov ecx, eax
call fcn.0052bf50
sub edi, eax
mov eax, edi
cdq
sub eax, edx
mov edi, eax
lea ecx, [esp + 0x30]
sar edi, 1
call fcn.005350b0
mov ecx, eax
call fcn.0052bf50
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], eax
call fcn.005350b0
mov ecx, eax
call fcn.0052bf40
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
call fcn.005350b0
mov ecx, eax
call fcn.0052bf60
xor edx, edx
cmp eax, 0x20
mov eax, dword [esp + 0x14]
lea ecx, [edi + eax]
mov dword [esp + 0x4c], ecx
je 0x53b775
test esi, esi
jne 0x53b745
xor ecx, ecx
jmp 0x53b748
mov ecx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x44]
mov dword [eax + 0xc], edx
call fcn.005350a0
push eax
call fcn.00535fd0
add esp, 0x18
jmp 0x53b7ad
test esi, esi
jne 0x53b77d
xor ecx, ecx
jmp 0x53b780
mov ecx, dword [esi + 4]
push 0x64
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x60]
push ecx
lea ecx, [esp + 0x48]
mov dword [eax + 0xc], edx
call fcn.005350a0
push eax
call fcn.005367d0
add esp, 0x1c
mov eax, dword [ebx + 0x20]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x53b8ae
mov edi, dword [ebp + 0x18]
sub edi, dword [ebp + 0x10]
lea ecx, [esp + 0x38]
call fcn.005350b0
mov ecx, eax
call fcn.0052bf50
sub edi, eax
mov eax, edi
cdq
sub eax, edx
mov edi, eax
lea ecx, [esp + 0x38]
sar edi, 1
call fcn.005350b0
mov ecx, eax
call fcn.0052bf50
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], eax
call fcn.005350b0
mov ecx, eax
call fcn.0052bf40
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], eax
call fcn.005350b0
mov ecx, eax
call fcn.0052bf60
xor edx, edx
cmp eax, 0x20
je 0x53b86b
mov ecx, dword [esp + 0x14]
lea eax, [edi + ecx]
mov dword [esp + 0x4c], eax
test esi, esi
jne 0x53b83b
xor ecx, ecx
jmp 0x53b83e
mov ecx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x4c]
mov dword [eax + 0xc], edx
call fcn.005350a0
push eax
call fcn.00535fd0
add esp, 0x18
jmp 0x53b8ae
mov eax, dword [esp + 0x14]
lea ecx, [edi + eax]
mov dword [esp + 0x4c], ecx
test esi, esi
jne 0x53b87e
xor ecx, ecx
jmp 0x53b881
mov ecx, dword [esi + 4]
push 0x64
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x60]
push ecx
lea ecx, [esp + 0x50]
mov dword [eax + 0xc], edx
call fcn.005350a0
push eax
call fcn.005367d0
add esp, 0x1c
cmp dword [esp + 0x18], 0
je 0x53b9b4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.005350b0
mov ecx, eax
call fcn.0052bf40
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi]
lea edx, [ecx + eax + 5]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [ebx + 0x6c]
mov dword [esp + 0x20], edx
call fcn.0052a490
mov edx, dword [edi + 0x30]
push eax
mov ecx, esi
call edx
push 1
mov ecx, esi
call fcn.004b4756
mov eax, dword [ebx + 0x20]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.004b5a19
test eax, eax
je 0x53b939
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00539f00
mov eax, dword [eax]
mov bl, 3
mov byte [esp + 0x78], bl
test eax, eax
je 0x53b957
mov eax, dword [eax]
jmp 0x53b959
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.0040e080
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x8024
lea edi, [esp + 0x20]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
mov byte [esp + 0x88], 4
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x78], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53b9ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
call fcn.00420fb0
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 1
call fcn.005350d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 0
call fcn.005350d0
lea ecx, [esp + 0x50]
mov dword [esp + 0x78], 0xffffffff
call fcn.00548810
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14