Function at 0x418500
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c72b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4771ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x44], ebx
xor eax, eax
mov dword [ebp - 0x48], ebx
push eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
call fcn.0041ba90
lea esi, [ebx + 0x24]
mov dword [ebx], vtable.LunaHost.0
mov dword [ebx + 0x20], 0
mov ecx, esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041a190
mov dword [esi], eax
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea eax, [ebx + 0x38]
push 2
push eax
call fcn.00435706
add esp, 8
push 0
push 0x19
lea ecx, [ebx + 4]
mov byte [ebp - 4], 3
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov byte [ebx + 0xa0], 0
call fcn.0041bed0
push 0x28
call fcn.0044edad
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4185f1
mov ecx, eax
call fcn.00409bb0
jmp 0x4185f3
xor eax, eax
mov dword [ebx + 0x90], eax
lea ecx, [ebp - 0x28]
push 0xc
xor eax, eax
mov byte [ebp - 4], 3
push str.LunaHost_Gui
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040d5c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 4]
call fcn.0041bf40
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x41866e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418664
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418e7d
push edx
push ecx
call fcn.0044eddd
add esp, 8
push 0x90
call fcn.0044edad
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
xor eax, eax
mov byte [ebp - 4], 6
test esi, esi
je 0x4186cc
push 8
push str.Settings
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040d5c0
push 0
push 0x64
push 0x64
mov eax, 1
mov byte [ebp - 4], 7
push 0x64
mov dword [ebp - 0x3c], eax
mov ecx, esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0x64
push eax
push ebx
call fcn.00413ec0
mov dword [ebx + 0x80], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 3
test al, 1
je 0x4186ee
and eax, 0xfffffffe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], eax
call fcn.0040af00
push 0x90
call fcn.0044edad
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
xor eax, eax
mov byte [ebp - 4], 9
test esi, esi
je 0x418753
push 0xe
push str.Select_Process
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040d5c0
mov eax, dword [ebp - 0x3c]
mov ecx, esi
push 0
push 0x28
push 0xc8
or eax, 2
mov byte [ebp - 4], 0xa
push 0xa
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0x33e
push eax
push ebx
call fcn.00413ec0
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 3
test al, 2
je 0x418772
and eax, 0xfffffffd
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], eax
call fcn.0040af00
push 0x90
call fcn.0044edad
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
xor eax, eax
mov byte [ebp - 4], 0xc
test esi, esi
je 0x4187d6
push eax
push 0x460a1c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040d5c0
mov eax, dword [ebp - 0x3c]
mov ecx, esi
push 0x80
push 0x28
push 0x258
or eax, 4
mov byte [ebp - 4], 0xd
push 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0xa
push eax
push ebx
call fcn.004142c0
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 3
test al, 4
je 0x4187f5
and eax, 0xfffffffb
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], eax
call fcn.0040af00
push 0x90
call fcn.0044edad
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
xor eax, eax
mov byte [ebp - 4], 0xf
test esi, esi
je 0x41885a
push 7
push str.Plugins
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040d5c0
mov eax, dword [ebp - 0x3c]
mov ecx, esi
push 0
push 0x28
push 0xc8
or eax, 8
mov byte [ebp - 4], 0x10
push 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0x33e
push eax
push ebx
call fcn.00413ec0
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 3
test al, 8
je 0x418879
and eax, 0xfffffff7
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], eax
call fcn.0040af00
push 0x58
call fcn.0044edad
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0x12
test eax, eax
je 0x418898
push ebx
mov ecx, eax
call fcn.0041cd00
jmp 0x41889a
xor eax, eax
mov dword [ebx + 0x8c], eax
lea ecx, [ebp - 0x38]
mov eax, dword [ebx + 0x70]
add eax, 0x68
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_054ad32d0be679ea5323f2f048b7487d___void___.0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ecx
call fcn.00417890
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4188d7
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
push 0x90
call fcn.0044edad
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
xor eax, eax
mov byte [ebp - 4], 0x13
test esi, esi
je 0x41893c
push 0xf
push str.Insert_UserHook
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040d5c0
mov eax, dword [ebp - 0x3c]
mov ecx, esi
push 0
push 0x28
push 0xc8
or eax, 0x10
mov byte [ebp - 4], 0x14
push 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0x262
push eax
push ebx
call fcn.00413ec0
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 3
test al, 0x10
je 0x41895b
and eax, 0xffffffef
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], eax
call fcn.0040af00
mov eax, dword [ebx + 0x80]
lea ecx, [ebp - 0x38]
add eax, 0x68
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_1ae6412048cf501d06809369eacf6884___void___.0
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ecx
call fcn.00417890
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x418991
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
mov eax, dword [ebx + 0x7c]
lea ecx, [ebp - 0x38]
add eax, 0x68
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_2e8334245d7f2bd27bd8d2738b3ec9de___void___.0
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ecx
call fcn.00417890
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4189c4
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
mov eax, dword [ebx + 0x6c]
lea ecx, [ebp - 0x38]
add eax, 0x68
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_57db55847150fbef179ec5c0e51043c2___void___.0
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ecx
call fcn.00417890
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4189f7
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
push 0x90
call fcn.0044edad
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0x16
test eax, eax
je 0x418a27
push 0xc8
push 0xc8
push 0x78
push 0xa
push ebx
mov ecx, eax
call fcn.004140b0
jmp 0x418a29
xor eax, eax
mov dword [ebx + 0x74], eax
lea ecx, [ebp - 0x38]
add eax, 0x68
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_27993d44c92b2f38e612ebd384d613cd___void__int_.0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ecx
call fcn.00417890
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x418a60
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
mov eax, dword [ebx + 0x74]
lea ecx, [ebp - 0x38]
add eax, 0x18
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_3ce34d45b8426cf49726ea1329a45eb5___struct_HMENU______.0
push eax
mov dword [ebp - 0x14], ecx
call fcn.00417890
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x418a90
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
mov eax, dword [ebx + 0x74]
lea ecx, [ebp - 0x38]
add eax, 0x40
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_97e8b779c20cc1aa3c498abfd8d3cc30___void__unsigned_int_.0
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ecx
call fcn.00417890
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x418ac3
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
push 0x90
call fcn.0044edad
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 0x17
test esi, esi
je 0x418b35
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 0x460a1c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040d5c0
mov eax, dword [ebp - 0x3c]
mov ecx, esi
push 0x200044
push 0xc8
push 0xc8
or eax, 0x20
mov byte [ebp - 4], 0x18
push 0x14a
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0xa
push eax
push ebx
call fcn.004142c0
mov edi, eax
jmp 0x418b37
xor edi, edi
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x78], edi
mov dword [ebp - 4], 3
test al, 0x20
je 0x418b53
lea ecx, [ebp - 0x28]
call fcn.0040af00
mov edi, dword [ebx + 0x78]
mov esi, dword [ebx + 0x90]
lea ecx, [ebp - 0x28]
push 8
push str.ReadOnly
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040d4d0
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1a
push eax
mov ecx, esi
call fcn.00418130
push eax
mov ecx, edi
call fcn.00414c40
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x418bcb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418bc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418e82
push edx
push ecx
call fcn.0044eddd
add esp, 8
mov esi, dword [ebx + 0x90]
lea ecx, [ebp - 0x28]
push 0xc
push str.filterrepeat
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040d4d0
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1b
push eax
mov ecx, esi
call fcn.00418130
mov edx, dword [ebp - 0x14]
mov byte [0x47ab00], al
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x418c40
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418c36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418e87
push edx
push ecx
call fcn.0044eddd
add esp, 8
mov esi, dword [ebx + 0x90]
lea ecx, [ebp - 0x28]
push 0xb
push str.ToClipboard
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040d4d0
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1c
push eax
mov ecx, esi
call fcn.00418130
mov edx, dword [ebp - 0x14]
mov byte [ebx + 0xa0], al
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x418cb6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418cac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418e8c
push edx
push ecx
call fcn.0044eddd
add esp, 8
mov edi, dword [ebx + 0x90]
lea ecx, [ebp - 0x28]
mov esi, dword [0x477070]
push 0xa
push 0x465b2c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040d4d0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1d
push eax
mov ecx, edi
call fcn.00417fb0
mov edx, dword [ebp - 0x14]
mov dword [0x477070], eax
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x418d30
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418d26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418e91
push edx
push ecx
call fcn.0044eddd
add esp, 8
mov edi, dword [ebx + 0x90]
lea ecx, [ebp - 0x28]
mov esi, dword [0x477074]
push 8
push str.codepage
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040d4d0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1e
push eax
mov ecx, edi
call fcn.00417fb0
mov edx, dword [ebp - 0x14]
mov dword [0x477074], eax
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x418daa
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418da0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418e96
push edx
push ecx
call fcn.0044eddd
add esp, 8
mov al, byte [ebp - 0x18]
push 1
sub esp, 0x28
mov ecx, esp
sub esp, 0x28
mov dword [ecx], 0x465dbc
mov dword [ecx + 8], 0x41b490
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], al
mov al, byte [ebp - 0x17]
mov byte [ecx + 0x11], al
mov al, byte [ebp - 0x18]
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x24], ecx
mov ecx, esp
sub esp, 0x28
mov dword [ecx], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8LunaHost__AEXAAVTextThread___ZPAV3_ABU___Ph__00_2__std__XAAVTextThread___std__.0
mov dword [ecx + 8], 0x41b810
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], al
mov al, byte [ebp - 0x18]
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x24], ecx
mov ecx, esp
sub esp, 0x28
mov dword [ecx], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8LunaHost__AEXAAVTextThread___ZPAV3_ABU___Ph__00_2__std__XAAVTextThread___std__.0
mov dword [ecx + 8], 0x41b610
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], al
mov eax, esp
mov dword [ecx + 0x14], ebx
sub esp, 0x28
mov dword [ecx + 0x24], ecx
mov ecx, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_bb280babd3e7575bc7f07b9660ea5e33___void__unsigned_long_int_.0
mov dword [eax + 4], ebx
mov dword [eax + 0x24], eax
mov dword [ecx], vtable.std::_Func_impl_no_alloc_class__lambda_03dda3a83f826b63298acecd880152a0___void__unsigned_long_int_.0
mov dword [ecx + 4], ebx
mov dword [ecx + 0x24], ecx
call fcn.00430a30
add esp, 0xcc
mov ecx, ebx
push 0x258
push 0x3e8
call fcn.0041be30
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044edeb
mov esp, ebp
pop ebp
ret
call fcn.004503b0
call fcn.004503b0
call fcn.004503b0
call fcn.004503b0
call fcn.004503b0
call fcn.004503b0
int3