Function at 0x50565c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x505fc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x505fa7
mov eax, dword [ebp - 4]
call fcn.005069bc
xor eax, eax
push ebp
push 0x505f95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050698c
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00421bf4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x54]
mov eax, dword [0x535bf0]
call fcn.00408614
mov eax, dword [ebp - 0x54]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00404470
xor eax, eax
push ebp
push 0x505f78
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x10], eax
test byte [ebp - 5], 8
je 0x5057db
mov eax, dword [ebp - 4]
call fcn.005071a4
cmp dword [eax + 8], 0
jle 0x50574b
mov eax, dword [ebp - 4]
call fcn.005071a4
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
mov edi, eax
dec edi
test edi, edi
jl 0x5057db
inc edi
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x20]
cmp dword [eax + 8], 0
jle 0x5057d7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00421bf4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x58]
mov eax, dword [0x535bf0]
call fcn.00408614
mov eax, dword [ebp - 0x58]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00404470
inc ebx
dec edi
jne 0x505760
test byte [ebp - 5], 4
je 0x5059ef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
mov edi, eax
dec edi
test edi, edi
jl 0x5058c5
inc edi
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
call fcn.005014a4
test al, al
je 0x5058bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x34]
call fcn.00503a40
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x18]
pop edx
pop ecx
call fcn.00505644
test al, al
jne 0x5058bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.00503a1c
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00421bf4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [0x535bf0]
call fcn.00408614
mov eax, dword [ebp - 0x5c]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00404470
inc ebx
dec edi
jne 0x5057fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
mov edi, eax
sub edi, 2
test edi, edi
jl 0x5059ff
inc edi
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
cmp dword [eax + 0x34], 0
je 0x5059e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x34]
call fcn.00503b38
add al, 0xfe
sub al, 2
jae 0x5059e5
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00504600
call fcn.005014a4
test al, al
jne 0x5059e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
lea edx, [ebp - 0x20]
call fcn.005011d4
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00504600
lea edx, [ebp - 0x30]
call fcn.005011d4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.user32.dll_IntersectRect
test eax, eax
je 0x5059e5
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.user32.dll_EqualRect
test eax, eax
je 0x50599c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.00503b48
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00421bf4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [0x535bf0]
call fcn.00408614
mov eax, dword [ebp - 0x60]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00404470
inc ebx
dec edi
jne 0x5058e0
jmp 0x5059ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
add eax, eax
add dword [ebp - 0xc], eax
test byte [ebp - 5], 2
je 0x505ad2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
mov ebx, eax
dec ebx
cmp ebx, 1
jl 0x505ae0
inc dword [ebp - 0xc]
mov esi, ebx
dec esi
jmp 0x505a29
dec esi
test esi, esi
jle 0x505a59
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00504600
cmp dword [eax + 0x34], 0
je 0x505a59
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00504600
mov eax, dword [eax + 0x34]
call fcn.00503b38
cmp al, 3
je 0x505a28
test esi, esi
jl 0x505a7e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00504600
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
pop edx
call fcn.005031d8
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00421bf4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [0x535bf0]
call fcn.00408614
mov eax, dword [ebp - 0x64]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00404470
dec ebx
test ebx, ebx
jne 0x505a20
jmp 0x505ae0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
add dword [ebp - 0xc], eax
test byte [ebp - 5], 4
je 0x505c93
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x505c4a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x30]
call fcn.004f97b8
mov esi, eax
dec esi
cmp esi, 0
jl 0x505bff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00500204
mov edx, dword [0x4f89b8]
call fcn.00404400
test al, al
jne 0x505bde
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00500204
mov edx, dword [0x4f88f8]
call fcn.00404400
test al, al
jne 0x505bde
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00500204
mov edx, dword [0x4f8bbc]
call fcn.00404400
test al, al
jne 0x505bde
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00500204
mov edx, dword [0x4f8c8c]
call fcn.00404400
test al, al
je 0x505bf5
test ebx, ebx
jg 0x505bde
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
dec eax
jne 0x505bf5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.004f9800
dec esi
cmp esi, 0xffffffff
jne 0x505b30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
call fcn.00500528
test al, al
je 0x505c40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x30]
call fcn.004f97b8
test eax, eax
jne 0x505c40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
call fcn.00404228
dec ebx
cmp ebx, 0xffffffff
jne 0x505b0f
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00421bf4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [0x535bf0]
call fcn.00408614
mov eax, dword [ebp - 0x68]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00404470
test byte [ebp - 5], 1
je 0x505dda
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x505de8
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
call fcn.00500528
test al, al
jne 0x505dce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
call fcn.005014a4
test al, al
je 0x505dce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x34]
call fcn.00503b1c
movzx esi, ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
call fcn.00502e20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
call fcn.00500528
test al, al
je 0x505d85
test ebx, ebx
jle 0x505d78
mov edx, ebx
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00504600
call fcn.005014a4
test al, al
je 0x505d78
mov edi, ebx
dec edi
mov edx, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00504600
mov eax, dword [eax + 0x34]
call fcn.00503b1c
add ax, si
push eax
mov edx, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00504600
mov eax, dword [eax + 0x34]
pop edx
call fcn.00503b24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.004f9800
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00421bf4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [0x535bf0]
call fcn.00408614
mov eax, dword [ebp - 0x6c]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00404470
dec ebx
cmp ebx, 0xffffffff
jne 0x505cb4
jmp 0x505de8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
add dword [ebp - 0xc], eax
test byte [ebp - 5], 4
je 0x505f1e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x505ed5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
cmp dword [eax + 0x34], 0
je 0x505e8a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov esi, dword [eax + 0x34]
mov eax, esi
call fcn.00503b1c
test ax, ax
je 0x505e54
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
dec eax
jne 0x505e8a
mov eax, esi
call fcn.00503a10
test al, al
jne 0x505e8a
mov eax, esi
call fcn.00503b2c
test al, al
jne 0x505e8a
mov eax, esi
call fcn.00503b38
sub al, 2
jb 0x505e83
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004f97b8
dec eax
jne 0x505e8a
mov eax, esi
call fcn.00404228
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
call fcn.00500528
test al, al
je 0x505ecb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
mov eax, dword [eax + 0x30]
call fcn.004f97b8
test eax, eax
jne 0x505ecb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00504600
call fcn.00404228
dec ebx
cmp ebx, 0xffffffff
jne 0x505e17
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00421bf4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [0x535bf0]
call fcn.00408614
mov eax, dword [ebp - 0x70]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00404470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505f7f
call fcn.004030cc
test eax, eax
jne 0x505f3b
mov ebx, 0x64
jmp 0x505f3d
xor ebx, ebx
push ebx
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00421bf4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x74]
mov eax, dword [0x535bf0]
call fcn.00408614
mov eax, dword [ebp - 0x74]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00404470
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505fc9
lea eax, [ebp - 0x74]
mov edx, 9
call fcn.00406120
ret