Function at 0x4361f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b8c38
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x34], eax
lea esi, [eax + 1]
mov eax, dword [edi + 0x2c]
add eax, esi
mov dword [esp + 0x3c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x30]
inc ecx
add eax, ecx
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ecx
test al, 8
je 0x43645a
push 0x4cb104
lea ecx, [esp + 0x18]
call fcn.00405510
mov dword [esp + 0x50], 0
mov ecx, dword [edi + 0x24]
push ecx
push 1
push 0
lea ecx, [esp + 0x38]
call fcn.0047aaaa
mov byte [esp + 0x50], 1
mov edx, dword [edi + 0x28]
push edx
lea ecx, [esp + 0x28]
call fcn.0047aaf3
mov esi, dword [ebp + 8]
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4362bf
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
jmp 0x4362c7
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4362e0
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
jmp 0x4362e8
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x436319
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x43632c
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x38]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [ecx + eax - 4]
mov dword [esp + 0x38], ecx
push 1
mov ecx, esi
call fcn.00479fa6
mov eax, dword [ebx + 0x10]
test al, 2
je 0x4363b9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esi + 4]
push 0x22
sub eax, edx
push eax
sub ecx, edi
push ecx
push edx
mov edx, dword [esp + 0x24]
push edi
push 0
push edx
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x4363e8
test al, 1
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
je 0x4363c7
mov ecx, dword [edi + 0x18]
jmp 0x4363ca
mov ecx, dword [edi + 0x1c]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x64
lea edi, [esp + 0x38]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 2
mov ecx, esi
call fcn.00479fa6
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CBrush.0
call fcn.00402220
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.CPen.0
call fcn.00402220
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4364b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edi, dword [edx + 0x1c]
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x4364b0
mov edi, dword [edx + 0x10]
test al, 2
je 0x436478
mov ebx, dword [edx + 0x14]
test ebx, ebx
je 0x436478
mov edi, ebx
jmp 0x436485
test al, 1
je 0x436485
mov edx, dword [edx + 0x18]
test edx, edx
je 0x436485
mov edi, edx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x436490
xor edx, edx
jmp 0x436493
mov edx, dword [eax + 4]
mov eax, dword [edi + 4]
push 1
push ecx
mov ecx, dword [esp + 0x24]
push esi
push edx
push ecx
push eax
call fcn.0047e1b7
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00436ba0
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18