Function at 0x5209a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x59e72b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.004de050
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x1c]
push 0
push 0
push 0x1209
push eax
call esi
push eax
call fcn.0056c5e3
mov ebx, eax
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5eb854]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], 0x4800
mov dword [esp + 0x3c], 0x2e
mov dword [esp + 0x10], ecx
push 0x100
lea ecx, [esp + 0x14]
mov dword [esp + 0xa4], eax
call fcn.00572a8c
mov edi, dword [esp + 0xac]
lea edx, [esp + 0x3c]
mov byte [eax], 0
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
push edx
push edi
push 0x1203
push eax
mov dword [esp + 0x5c], 0xff
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00572adb
mov eax, dword [esp + 0x50]
test ah, 0x80
je 0x520b2d
mov ecx, ebp
mov dword [esp + 0x68], 0x64
call fcn.00571c89
mov edx, dword [esp + 0xc0]
xor ecx, ecx
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0xa8]
cmp edx, 3
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x74], 1
sete cl
test edi, edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
jne 0x520ab3
mov dword [esp + 0x80], edi
jmp 0x520abd
mov edx, dword [edi + 4]
mov dword [esp + 0x80], edx
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x54]
push eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0056eb00
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x68]
push edx
mov edx, dword [eax + 0x1c]
push ecx
push 0x2b
push edx
call esi
test eax, eax
jne 0x520e89
mov eax, dword [esp + 0x50]
jmp 0x520b34
mov edi, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xbc]
test ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x520cf5
test ah, 8
je 0x520cfe
mov ecx, dword [esp + 0x58]
test ecx, ecx
jl 0x520cf5
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp dword [esp + 0x58], eax
jge 0x520cf1
mov ecx, dword [ebp + 0x1c]
push 0
push 0
push 0x1215
push ecx
call esi
mov esi, eax
test esi, esi
jne 0x520bb6
mov ecx, ebp
call fcn.004de0c0
mov eax, dword [eax + 0x140]
lea esi, [eax + eax*2]
mov ecx, dword [ebx + 4]
mov eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xbc]
sub eax, ecx
add eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0xb0]
mov ebx, eax
mov eax, dword [esp + 0x50]
sar ebx, 1
test ah, 0x10
lea edi, [edx + esi]
je 0x520ca3
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xb8]
add edx, esi
lea esi, [edi + edx + 9]
lea edi, [ecx - 3]
lea edx, [esi + eax]
cmp edx, edi
jle 0x520c5e
sub ecx, eax
lea eax, [ecx - 3]
mov ecx, dword [esp + 0xb0]
lea esi, [ecx + 6]
cmp esi, eax
jg 0x520c5e
mov esi, eax
cmp dword [esp + 0xc0], 3
jne 0x520c69
inc esi
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x520c77
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x58]
push 1
push ebx
push esi
push eax
mov eax, dword [esp + 0x24]
push edx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0xa8]
add esi, 6
mov dword [esp + 0x24], esi
jmp 0x520cf5
cmp dword [esp + 0xc0], 3
jne 0x520cae
inc edi
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x520cbc
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x58]
push 1
push ebx
push edi
push eax
mov eax, dword [esp + 0x24]
push edx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0xa8]
add edx, esi
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
jmp 0x520cf5
mov eax, dword [esp + 0x50]
test ah, 8
jne 0x520ded
test ah, 6
je 0x520ded
mov ecx, ebp
call fcn.004de0c0
mov eax, dword [eax + 0x140]
lea edx, [esp + 0x34]
push edx
lea esi, [eax + eax*2]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xbc]
mov ebx, dword [esp + 0xb0]
lea eax, [edx + eax - 2]
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
lea ecx, [esi + ebx]
add edx, esi
mov edi, eax
mov eax, dword [esp + 0xb8]
lea esi, [ecx + edx + 9]
lea edx, [eax - 3]
lea ecx, [esi + 9]
sar edi, 1
cmp ecx, edx
jle 0x520d79
add eax, 0xfffffff4
lea esi, [ebx + 6]
cmp esi, eax
jg 0x520d79
mov esi, eax
mov eax, dword [esp + 0x50]
test ah, 4
je 0x520dad
call fcn.0045d660
lea ebx, [edi + 2]
push 0x10
mov ecx, ebp
add edi, 0xfffffffe
call fcn.004de0e0
push eax
lea eax, [esi + 4]
push ebx
push eax
push edi
push esi
lea eax, [esi - 4]
push ebx
push eax
mov eax, dword [esp + 0xc4]
push eax
jmp 0x520dd6
call fcn.0045d660
lea ebx, [edi - 2]
push 0x10
mov ecx, ebp
add edi, 2
call fcn.004de0e0
mov ecx, dword [esp + 0xa8]
push eax
lea eax, [esi + 4]
push ebx
push eax
push edi
push esi
lea eax, [esi - 4]
push ebx
push eax
push ecx
call fcn.0045e6e0
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0xc8]
add esp, 0x20
mov dword [esp + 0x24], esi
and eax, 3
mov esi, 0x8824
sub eax, 0
je 0x520e1e
dec eax
je 0x520e0f
dec eax
jne 0x520e2f
push 0
push 6
push 0
mov esi, 0x8825
push 6
jmp 0x520e26
push 0
push 9
push 0
mov esi, 0x8826
push 6
jmp 0x520e26
push 0
push 6
push 0
push 9
lea ecx, [esp + 0x2c]
call fcn.00582611
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
sub eax, edx
test eax, eax
jle 0x520e89
mov ebx, dword [esp + 0xc0]
cmp ebx, 3
jne 0x520e58
push 1
lea edx, [esp + 0x20]
push 1
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [edi]
push 0x12
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.004de0e0
push eax
mov eax, dword [esp + 0x18]
mov ecx, edi
call dword [eax + 0x30]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
push esi
push edx
push ebx
push 1
push edi
call fcn.0044f810
lea ecx, [esp + 0x10]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0057265c
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret 0x1c