Function at 0x4515c0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48ed10
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4b39fc]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebx + 0x180]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x184]
mov dword [esp + 0x18], edx
mov edx, dword [ebx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x1c]
mov ecx, ebx
call eax
mov edi, eax
call fcn.00407e60
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x451644
push 0x64
cmp ecx, 1
jne 0x45163a
mov ecx, dword [eax + 4]
push ecx
jmp 0x45163d
mov edx, dword [eax]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
mov edi, eax
call fcn.00407e60
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x45167f
push 0x64
cmp ecx, 1
jne 0x45166d
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x34]
push eax
push ecx
jmp 0x451675
mov edx, dword [eax]
mov eax, dword [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x30], eax
mov ecx, dword [ebx + 0x6e4]
mov edx, dword [ebx + 0x6e8]
mov eax, dword [ebx + 0x6ec]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x6f0]
mov dword [esp + 0x48], edx
mov edx, dword [ebx]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x50], ecx
mov ecx, ebx
call eax
mov edi, eax
call fcn.00407e60
lea edi, [esp + 0x44]
mov esi, eax
call fcn.00417d70
mov ecx, dword [esp + 0x10]
lea esi, [ebx + 0x158]
push esi
xor eax, eax
push ecx
lea edx, [esp + 0x24]
xor edi, edi
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x451c00
cmp byte [ebx + 0x6dc], 0
je 0x45174d
mov eax, dword [esi]
add eax, dword [esp + 0x44]
mov ecx, dword [ebx + 0x15c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
cdq
sub eax, edx
mov edx, dword [ebx + 0x160]
sub edx, dword [esp + 0x4c]
sar eax, 1
add eax, ecx
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x6e0]
push 1
lea esi, [esp + 0x3c]
mov dword [esp + 0x44], edx
call fcn.00432760
add esp, 8
jmp 0x451b34
mov dword [esp + 0x88], edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
lea esi, [esp + 0x54]
mov dword [eax + 0xc], edx
call fcn.0042ef30
add esp, 0x10
lea esi, [ebx + 0x158]
push esi
push edi
mov ecx, ebx
call fcn.00414ae0
mov eax, dword [ebx + 0x6c0]
mov edx, dword [eax + 0x24]
lea ecx, [ebx + 0x6c0]
push esi
push edi
call edx
push edi
push ebx
call fcn.00451ca0
cmp byte [ebx + 0x781], 0
je 0x4517bd
push edi
push ebx
call fcn.00451f30
cmp dword [ebx + 0x558], 0
jle 0x451b09
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov esi, dword [esi + 0xc]
add eax, dword [ebx + 0x560]
add ecx, dword [ebx + 0x564]
sub edx, dword [ebx + 0x568]
sub esi, dword [ebx + 0x56c]
cmp dword [ebx + 0x584], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], esi
je 0x45182b
mov ecx, dword [ebx + 0x584]
mov eax, dword [ecx]
mov edx, dword [eax + 0xf4]
call edx
test al, al
je 0x45182b
mov ecx, dword [ebx + 0x584]
mov eax, dword [ecx]
mov edx, dword [eax + 0x7c]
call edx
sub dword [esp + 0x3c], eax
cmp dword [ebx + 0x588], 0
je 0x45185c
mov ecx, dword [ebx + 0x588]
mov eax, dword [ecx]
mov edx, dword [eax + 0xf4]
call edx
test al, al
je 0x45185c
mov ecx, dword [ebx + 0x588]
mov eax, dword [ecx]
mov edx, dword [eax + 0x84]
call edx
sub dword [esp + 0x40], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x451986
xor edi, edi
cmp dword [ebx + 0x558], edi
jle 0x451b05
jmp 0x451890
mov eax, dword [ebx + 0x554]
mov esi, dword [eax + edi*4]
cmp esi, dword [esp + 0x18]
je 0x45194c
mov edx, dword [esi]
mov eax, dword [edx + 0xf4]
mov ecx, esi
call eax
test al, al
je 0x45193a
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push str.MenuElement
mov ecx, esi
call eax
test eax, eax
jne 0x45193a
mov edx, dword [esi]
mov eax, dword [edx + 0x50]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45193a
mov eax, dword [esi]
mov edx, dword [eax + 0x120]
mov ecx, esi
call edx
test al, al
je 0x45193a
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
mov ecx, esi
call edx
push eax
lea eax, [ebx + 0x158]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45193a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x144]
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
mov ecx, esi
call edx
test al, al
je 0x451c75
inc edi
cmp edi, dword [ebx + 0x558]
jl 0x451890
jmp 0x451b05
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov ecx, dword [esp + 0x58]
push ecx
call esi
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [esp + 0x88], 1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], edx
lea esi, [esp + 0x70]
mov dword [eax + 0xc], ecx
call fcn.0042ef30
xor eax, eax
add esp, 0x10
cmp dword [ebx + 0x558], eax
mov dword [esp + 0x2c], eax
jle 0x451ae5
lea esp, [esp]
mov edx, dword [ebx + 0x554]
mov esi, dword [edx + eax*4]
cmp esi, dword [esp + 0x18]
je 0x451c1a
mov eax, dword [esi]
mov edx, dword [eax + 0xf4]
mov ecx, esi
call edx
test al, al
je 0x451ad0
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push str.MenuElement
mov ecx, esi
call edx
test eax, eax
jne 0x451ad0
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
mov ecx, esi
call edx
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
push eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call edi
test eax, eax
je 0x451ad0
mov edx, dword [esi]
mov eax, dword [edx + 0x120]
mov ecx, esi
call eax
mov edx, dword [esi]
test al, al
mov eax, dword [edx + 0x50]
mov ecx, esi
je 0x451a9a
call eax
push eax
lea eax, [ebx + 0x158]
push eax
lea ecx, [esp + 0x24]
push ecx
call edi
test eax, eax
je 0x451ad0
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x14]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
push ecx
push edx
push edi
mov ecx, esi
call eax
test al, al
je 0x451c6c
mov ecx, dword [esp + 0x74]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x451ad0
call eax
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
je 0x451ad0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [eax + 0x144]
push ecx
mov ecx, esi
call edx
test al, al
je 0x451c6c
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [ebx + 0x558]
mov dword [esp + 0x2c], eax
jl 0x4519d0
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov edx, dword [esp + 0x74]
push edx
call esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x88], 0xffffffff
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov ecx, dword [esp + 0x58]
push ecx
call esi
mov eax, dword [ebx + 0x584]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x451b9b
cmp eax, esi
je 0x45196c
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xf4]
call eax
test al, al
je 0x451b9b
mov ecx, dword [ebx + 0x584]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x451b9b
mov ecx, dword [ebx + 0x584]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x144]
push esi
push edx
push edi
call eax
test al, al
je 0x45196c
mov eax, dword [ebx + 0x588]
test eax, eax
je 0x451c00
cmp eax, esi
je 0x45196c
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xf4]
call eax
test al, al
je 0x451c00
mov ecx, dword [ebx + 0x588]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x451c00
mov ebx, dword [ebx + 0x588]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
mov edx, dword [eax + 0x144]
push esi
push ecx
push edi
mov ecx, ebx
call edx
test al, al
je 0x45196c
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov ebx, dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
push eax
call ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov ecx, dword [esp + 0x74]
push ecx
call esi
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
push edi
push edx
call ebx
push edi
call esi
mov eax, dword [esp + 0x58]
push eax
call esi
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x60]
call fcn.0042ef00
lea esi, [esp + 0x44]
call fcn.0042ef00
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc