Function at 0x52ec0c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x25], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52f61d
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 0x52f5ff
mov eax, dword [ebp - 4]
call fcn.00530344
xor eax, eax
push ebp
push 0x52f5ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005302f0
push 0
push 0
push 0
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0044d634
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [0x71865c]
call fcn.0040b610
mov eax, dword [ebp - 0x6c]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.004058a8
xor eax, eax
push ebp
push 0x52f5d0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
shl eax, 3
mov dword [ebp - 0x20], eax
test byte [ebp - 5], 8
je 0x52edaa
mov eax, dword [ebp - 4]
call fcn.00530b84
cmp dword [eax + 8], 0
jle 0x52ed06
mov eax, dword [ebp - 4]
call fcn.00530b84
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
dec eax
test eax, eax
jl 0x52edaa
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x20]
cmp dword [eax + 8], 0
jle 0x52ed9e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x20]
push eax
push 0x64
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0044d634
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [0x71865c]
call fcn.0040b610
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.004058a8
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x52ed25
test byte [ebp - 5], 4
je 0x52efdf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
dec eax
test eax, eax
jl 0x52eea5
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
call fcn.005277f4
test al, al
je 0x52ee99
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x34]
call fcn.0052a5c0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x18]
pop edx
pop ecx
call fcn.0052ebf0
pop ecx
test al, al
jne 0x52ee99
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.0052a528
mov eax, dword [ebp - 0x20]
push eax
push 0x64
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0044d634
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x74]
mov eax, dword [0x71865c]
call fcn.0040b610
mov eax, dword [ebp - 0x74]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.004058a8
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x52edd3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
sub eax, 2
test eax, eax
jl 0x52efef
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
cmp dword [eax + 0x34], 0
je 0x52efd1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x34]
call fcn.0052a754
add al, 0xfe
sub al, 2
jae 0x52efd1
mov edx, dword [ebp - 0xc]
inc edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0052b8dc
call fcn.005277f4
test al, al
jne 0x52efd1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
lea edx, [ebp - 0x38]
call fcn.005272c0
mov edx, dword [ebp - 0xc]
inc edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0052b8dc
lea edx, [ebp - 0x48]
call fcn.005272c0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x58]
push eax
call sub.user32.dll_IntersectRect
test eax, eax
je 0x52efd1
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
push eax
call sub.user32.dll_EqualRect
test eax, eax
je 0x52ef88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.0052a778
mov eax, dword [ebp - 0x20]
push eax
push 0x64
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0044d634
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [0x71865c]
call fcn.0040b610
mov eax, dword [ebp - 0x78]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.004058a8
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x52eec6
jmp 0x52efef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
add eax, eax
add dword [ebp - 0x1c], eax
test byte [ebp - 5], 2
je 0x52f0d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
dec eax
cmp eax, 1
jl 0x52f0e3
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x52f020
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jle 0x52f054
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
call fcn.0052b8dc
cmp dword [eax + 0x34], 0
je 0x52f054
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
call fcn.0052b8dc
mov eax, dword [eax + 0x34]
call fcn.0052a754
cmp al, 3
je 0x52f01d
cmp dword [ebp - 0x10], 0
jl 0x52f07d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
call fcn.0052b8dc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
pop edx
call fcn.00529948
mov eax, dword [ebp - 0x20]
push eax
push 0x64
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0044d634
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x7c]
mov eax, dword [0x71865c]
call fcn.0040b610
mov eax, dword [ebp - 0x7c]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.004058a8
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x52f011
jmp 0x52f0e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
add dword [ebp - 0x1c], eax
test byte [ebp - 5], 4
je 0x52f2ae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
dec eax
cmp eax, 0
jl 0x52f265
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x30]
call fcn.0051a620
dec eax
cmp eax, 0
jl 0x52f214
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
call fcn.00525eec
mov edx, dword [0x517014]
call fcn.00405808
test al, al
jne 0x52f1ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
call fcn.00525eec
mov edx, dword [0x516b5c]
call fcn.00405808
test al, al
jne 0x52f1ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
call fcn.00525eec
mov edx, dword [0x517858]
call fcn.00405808
test al, al
jne 0x52f1ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
call fcn.00525eec
mov edx, dword [0x5179f8]
call fcn.00405808
test al, al
je 0x52f207
cmp dword [ebp - 0xc], 0
jg 0x52f1ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
dec eax
jne 0x52f207
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
call fcn.0051a698
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xffffffff
jne 0x52f136
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
call fcn.005262c4
test al, al
je 0x52f258
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x30]
call fcn.0051a620
test eax, eax
jne 0x52f258
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
call fcn.0040554c
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x52f113
mov eax, dword [ebp - 0x20]
push eax
push 0x64
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0044d634
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [0x71865c]
call fcn.0040b610
mov eax, dword [ebp - 0x80]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.004058a8
test byte [ebp - 5], 1
je 0x52f40d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
dec eax
cmp eax, 0
jl 0x52f41b
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
call fcn.005262c4
test al, al
jne 0x52f3fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
call fcn.005277f4
test al, al
je 0x52f3fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x34]
call fcn.0052a6d4
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
call fcn.005294c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
call fcn.005262c4
test al, al
je 0x52f3af
cmp dword [ebp - 0xc], 0
jle 0x52f3a1
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0052b8dc
call fcn.005277f4
test al, al
je 0x52f3a1
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0052b8dc
mov eax, dword [eax + 0x34]
call fcn.0052a6d4
add ax, word [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0052b8dc
mov eax, dword [eax + 0x34]
pop edx
call fcn.0052a6f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0051a698
mov eax, dword [ebp - 0x20]
push eax
push 0x64
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0044d634
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x84]
mov eax, dword [0x71865c]
call fcn.0040b610
mov eax, dword [ebp - 0x84]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.004058a8
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x52f2d0
jmp 0x52f41b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
add dword [ebp - 0x1c], eax
test byte [ebp - 5], 4
je 0x52f568
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
dec eax
cmp eax, 0
jl 0x52f519
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
cmp dword [eax + 0x34], 0
je 0x52f4c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.0052a6d4
test ax, ax
je 0x52f48e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
dec eax
jne 0x52f4c8
mov eax, dword [ebp - 0x18]
call fcn.0052a508
test al, al
jne 0x52f4c8
mov eax, dword [ebp - 0x18]
call fcn.0052a70c
test al, al
jne 0x52f4c8
mov eax, dword [ebp - 0x18]
call fcn.0052a754
sub al, 2
jb 0x52f4c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0051a620
dec eax
jne 0x52f4c8
mov eax, dword [ebp - 0x18]
call fcn.0040554c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
call fcn.005262c4
test al, al
je 0x52f50c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
mov eax, dword [eax + 0x30]
call fcn.0051a620
test eax, eax
jne 0x52f50c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.0052b8dc
call fcn.0040554c
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x52f44b
mov eax, dword [ebp - 0x20]
push eax
push 0x64
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0044d634
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x88]
mov eax, dword [0x71865c]
call fcn.0040b610
mov eax, dword [ebp - 0x88]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.004058a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f5d7
call fcn.00404a24
test eax, eax
jne 0x52f587
mov dword [ebp - 0xc], 0x64
jmp 0x52f58c
xor eax, eax
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0044d634
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x8c]
mov eax, dword [0x71865c]
call fcn.0040b610
mov eax, dword [ebp - 0x8c]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.004058a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f624
lea eax, [ebp - 0x8c]
mov edx, 9
call fcn.004072bc
ret