Function at 0x54e670
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 0x54efd6
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 0x54efbb
mov eax, dword [ebp - 4]
call fcn.0054fa6c
xor eax, eax
push ebp
push 0x54efa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0054fa3c
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0042f1e4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x54]
mov eax, dword [0x575500]
call fcn.00409d88
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.00405120
xor eax, eax
push ebp
push 0x54ef8c
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.0053fc90
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x10], eax
test byte [ebp - 5], 8
je 0x54e7ef
mov eax, dword [ebp - 4]
call fcn.00550238
cmp dword [eax + 8], 0
jle 0x54e75f
mov eax, dword [ebp - 4]
call fcn.00550238
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
mov edi, eax
dec edi
test edi, edi
jl 0x54e7ef
inc edi
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x20]
cmp dword [eax + 8], 0
jle 0x54e7eb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
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.0042f1e4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x58]
mov eax, dword [0x575500]
call fcn.00409d88
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.00405120
inc ebx
dec edi
jne 0x54e774
test byte [ebp - 5], 4
je 0x54ea03
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
mov edi, eax
dec edi
test edi, edi
jl 0x54e8d9
inc edi
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
call fcn.00549eac
test al, al
je 0x54e8d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x34]
call fcn.0054c624
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x18]
pop edx
pop ecx
call fcn.0054e658
test al, al
jne 0x54e8d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.0054c5c4
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.0042f1e4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [0x575500]
call fcn.00409d88
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.00405120
inc ebx
dec edi
jne 0x54e812
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
mov edi, eax
sub edi, 2
test edi, edi
jl 0x54ea13
inc edi
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
cmp dword [eax + 0x34], 0
je 0x54e9f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x34]
call fcn.0054c72c
add al, 0xfe
sub al, 2
jae 0x54e9f9
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0054d468
call fcn.00549eac
test al, al
jne 0x54e9f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
lea edx, [ebp - 0x20]
call fcn.00549b6c
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0054d468
lea edx, [ebp - 0x30]
call fcn.00549b6c
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 0x54e9f9
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.user32.dll_EqualRect
test eax, eax
je 0x54e9b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.0054c73c
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.0042f1e4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [0x575500]
call fcn.00409d88
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.00405120
inc ebx
dec edi
jne 0x54e8f4
jmp 0x54ea13
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
add eax, eax
add dword [ebp - 0xc], eax
test byte [ebp - 5], 2
je 0x54eae6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
mov ebx, eax
dec ebx
cmp ebx, 1
jl 0x54eaf4
inc dword [ebp - 0xc]
mov esi, ebx
dec esi
jmp 0x54ea3d
dec esi
test esi, esi
jle 0x54ea6d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.0054d468
cmp dword [eax + 0x34], 0
je 0x54ea6d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.0054d468
mov eax, dword [eax + 0x34]
call fcn.0054c72c
cmp al, 3
je 0x54ea3c
test esi, esi
jl 0x54ea92
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.0054d468
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
pop edx
call fcn.0054bc2c
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.0042f1e4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [0x575500]
call fcn.00409d88
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.00405120
dec ebx
test ebx, ebx
jne 0x54ea34
jmp 0x54eaf4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
add dword [ebp - 0xc], eax
test byte [ebp - 5], 4
je 0x54eca7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x54ec5e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x30]
call fcn.0053fc90
mov esi, eax
dec esi
cmp esi, 0
jl 0x54ec13
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00548b24
mov edx, dword [0x53ca48]
call fcn.004050b0
test al, al
jne 0x54ebf2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00548b24
mov edx, dword [0x53c5a4]
call fcn.004050b0
test al, al
jne 0x54ebf2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00548b24
mov edx, dword [0x53d260]
call fcn.004050b0
test al, al
jne 0x54ebf2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00548b24
mov edx, dword [0x53d3ec]
call fcn.004050b0
test al, al
je 0x54ec09
test ebx, ebx
jg 0x54ebf2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
dec eax
jne 0x54ec09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.0053fcd8
dec esi
cmp esi, 0xffffffff
jne 0x54eb44
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
call fcn.00548e40
test al, al
je 0x54ec54
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x30]
call fcn.0053fc90
test eax, eax
jne 0x54ec54
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
call fcn.00404e9c
dec ebx
cmp ebx, 0xffffffff
jne 0x54eb23
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.0042f1e4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [0x575500]
call fcn.00409d88
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.00405120
test byte [ebp - 5], 1
je 0x54edee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x54edfc
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
call fcn.00548e40
test al, al
jne 0x54ede2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
call fcn.00549eac
test al, al
je 0x54ede2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x34]
call fcn.0054c700
movzx esi, ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
call fcn.0054b874
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
call fcn.00548e40
test al, al
je 0x54ed99
test ebx, ebx
jle 0x54ed8c
mov edx, ebx
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0054d468
call fcn.00549eac
test al, al
je 0x54ed8c
mov edi, ebx
dec edi
mov edx, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0054d468
mov eax, dword [eax + 0x34]
call fcn.0054c700
add ax, si
push eax
mov edx, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0054d468
mov eax, dword [eax + 0x34]
pop edx
call fcn.0054c708
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0053fcd8
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.0042f1e4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [0x575500]
call fcn.00409d88
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.00405120
dec ebx
cmp ebx, 0xffffffff
jne 0x54ecc8
jmp 0x54edfc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
add dword [ebp - 0xc], eax
test byte [ebp - 5], 4
je 0x54ef32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x54eee9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
cmp dword [eax + 0x34], 0
je 0x54ee9e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov esi, dword [eax + 0x34]
mov eax, esi
call fcn.0054c700
test ax, ax
je 0x54ee68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
dec eax
jne 0x54ee9e
mov eax, esi
call fcn.0054c5b8
test al, al
jne 0x54ee9e
mov eax, esi
call fcn.0054c710
test al, al
jne 0x54ee9e
mov eax, esi
call fcn.0054c72c
sub al, 2
jb 0x54ee97
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0053fc90
dec eax
jne 0x54ee9e
mov eax, esi
call fcn.00404e9c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
call fcn.00548e40
test al, al
je 0x54eedf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
mov eax, dword [eax + 0x30]
call fcn.0053fc90
test eax, eax
jne 0x54eedf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0054d468
call fcn.00404e9c
dec ebx
cmp ebx, 0xffffffff
jne 0x54ee2b
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.0042f1e4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [0x575500]
call fcn.00409d88
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.00405120
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ef93
call fcn.004042e0
test eax, eax
jne 0x54ef4f
mov ebx, 0x64
jmp 0x54ef51
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.0042f1e4
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x74]
mov eax, dword [0x575500]
call fcn.00409d88
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.00405120
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54efdd
lea eax, [ebp - 0x74]
mov edx, 9
call fcn.00406aec
ret