Function at 0x407b40
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fc2d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov ecx, dword [edi + 0x34]
lea edx, [edi + 0x34]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x407657
mov edi, eax
push dword [edi + 8]
mov ecx, edx
push edx
call fcn.004085a0
mov esi, edi
mov edi, dword [edi]
lea ecx, [esi + 0x14]
call fcn.00407fe0
push 0x20
push esi
call fcn.0041c0c6
mov edx, dword [ebp - 0x38]
add esp, 8
cmp byte [edi + 0xd], 0
je 0x407626
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], ecx
lea eax, [edi + 0x3c]
mov dword [ecx], ecx
mov dword [ecx + 8], ecx
mov dword [edx + 4], 0
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x4076a6
mov edi, dword [ebp - 0x28]
nop dword [eax]
push dword [esi + 8]
mov ecx, edi
push edi
call fcn.00408560
mov eax, esi
mov esi, dword [esi]
push 0x1c
push eax
call fcn.0041c0c6
add esp, 8
cmp byte [esi + 0xd], 0
je 0x407680
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], eax
mov dword [edi + 0x40], 0
mov eax, dword [edi + 0x44]
cmp eax, dword [edi + 0x48]
je 0x4076c0
mov dword [edi + 0x48], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x407b1b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
mov byte [edi + 0xc], 0
call 0x407b40
mov esi, dword [ebp - 0x14]
cmp al, 1
jne 0x4077e1
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x1c], edx
test edx, edx
js 0x407b25
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x407767
push edx
lea ecx, [ebp - 0x14]
call fcn.00401bb0
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + 1]
push eax
push esi
call fcn.00422983
mov eax, dword [ebp - 0x1c]
add esp, 8
cmp eax, dword [esi - 8]
jg 0x407b25
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
jl 0x40787c
push str.intel
push esi
call fcn.0041d927
add esp, 8
test eax, eax
je 0x40787c
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40787c
mov dword [edi + 8], 0
cmp dword [esi - 0xc], 0
jl 0x4077e1
push str.12th
push esi
call fcn.0041d927
add esp, 8
test eax, eax
je 0x4077e1
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4077e1
mov byte [edi + 0xc], 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407800
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformationEx]
lea eax, [ebp - 0x18]
push eax
push 0
push 0xffff
mov dword [ebp - 0x18], 0
call esi
test eax, eax
jne 0x407a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x407a40
push dword [ebp - 0x18]
call fcn.0041c0f7
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0xffff
call esi
test eax, eax
je 0x407a33
xor edx, edx
cmp dword [ebp - 0x18], 0x4c
mov dword [ebp - 0x14], edx
jbe 0x407a33
mov esi, dword [ebp - 0x28]
add esi, edx
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
cmp eax, 3
ja case.default.0x407875
jmp dword [eax*4 + 0x407b30]
mov dword [edi + 8], 1
jmp 0x4077e1
mov al, byte [esi + 8]
cmp al, 3
jne case.default.0x407875
mov byte [ebp - 0x60], al
lea ecx, [edi + 0x44]
mov al, byte [esi + 9]
mov byte [ebp - 0x5f], al
mov ax, word [esi + 0xa]
mov word [ebp - 0x5e], ax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x48], eax
movzx eax, word [esi + 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x44], 0
cmp eax, dword [ecx + 8]
je 0x4078e4
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [eax + 0x10], xmm0
add dword [ecx + 4], 0x20
jmp 0x4078f1
lea edx, [ebp - 0x60]
push edx
push eax
call fcn.004087f0
mov edx, dword [ebp - 0x14]
mov ecx, dword [edi + 0x50]
test ecx, ecx
jne 0x4078fe
mov ecx, dword [esi + 0xc]
mov dword [edi + 0x50], ecx
cmp ecx, dword [esi + 0xc]
cmovae ecx, dword [esi + 0xc]
mov dword [edi + 0x50], ecx
mov ecx, dword [edi + 0x54]
cmp ecx, dword [esi + 0xc]
cmovbe ecx, dword [esi + 0xc]
mov dword [edi + 0x54], ecx
jmp case.default.0x407875
inc dword [edi + 0x24]
movzx eax, word [esi + 0x1e]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40792f
mov dword [ebp - 0x1c], 1
mov edi, dword [ebp - 0x1c]
lea eax, [esi + 8]
mov dword [ebp - 0x24], eax
add esi, 0x20
nop dword [eax + eax]
mov ecx, dword [ebp - 0x38]
push eax
call fcn.00408180
mov ecx, eax
mov edx, dword [ecx + 4]
cmp edx, dword [ecx + 8]
je 0x407967
movq xmm0, qword [esi]
movq qword [edx], xmm0
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
add dword [ecx + 4], 0xc
jmp 0x40796e
push esi
push edx
call fcn.00408630
mov eax, dword [ebp - 0x24]
add esi, 0xc
sub edi, 1
jne 0x407940
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
jmp case.default.0x407875
inc dword [edi + 0x1c]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x34]
xor ecx, ecx
bts ecx, eax
xor esi, esi
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [edi + 0x20]
mov edi, dword [ebp - 0x30]
cmovae edx, ecx
and esi, edx
and eax, ecx
or eax, esi
mov esi, dword [ebp - 0x34]
je 0x4079f1
movzx eax, word [esi + 0x24]
lea ecx, [edi + 0x3c]
inc dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov al, byte [esi + 9]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x40]
push eax
call fcn.004080b0
movzx ecx, byte [ebp - 0x1d]
mov dword [eax], ecx
movzx eax, byte [esi + 9]
cmp eax, dword [edi + 0x2c]
jbe 0x4079f1
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 0x20
jb 0x407992
cmp byte [esi + 8], 1
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp - 0x24]
jne 0x407a0d
add ecx, eax
jmp 0x407a0e
inc ecx
mov dword [edi + 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp eax, dword [edi + 0x18]
jbe case.default.0x407875
mov dword [edi + 0x18], eax
jmp case.default.0x407875
inc dword [edi + 0x20]
add edx, dword [esi + 4]
mov dword [ebp - 0x14], edx
lea eax, [edx + 0x4c]
cmp eax, dword [ebp - 0x18]
jb 0x407862
push 0x4c
push dword [ebp - 0x28]
call fcn.0041c0c6
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
push 0xffff
call esi
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
movzx eax, ax
push 0
mov dword [edi + 0x28], eax
call esi
cmp dword [edi + 0x18], 0
mov dword [edi + 0x10], eax
jne 0x407a70
mov dword [edi + 0x18], 1
xor esi, esi
cmp dword [edi + 0x28], esi
jbe 0x407aa1
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
push eax
push esi
mov ecx, edi
movlpd qword [ebp - 0x2c], xmm0
call fcn.00407db0
test al, al
je 0x407a9b
mov eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x28]
je 0x407a9b
mov byte [edi + 0x30], 1
inc esi
cmp esi, dword [edi + 0x28]
jb 0x407a77
cmp dword [edi + 8], 0
je 0x407ae8
mov eax, dword [edi + 0x50]
cmp eax, dword [edi + 0x54]
je 0x407ae8
mov eax, dword [edi + 0x48]
xor ecx, ecx
mov edx, dword [edi + 0x44]
sub eax, edx
sar eax, 5
test eax, eax
je 0x407ae8
xor esi, esi
mov eax, dword [edx + esi + 4]
cmp eax, dword [edi + 0x50]
jne 0x407ad0
mov dword [edi + 0x5c], ecx
jmp 0x407ad8
cmp eax, dword [edi + 0x54]
jne 0x407ad8
mov dword [edi + 0x58], ecx
mov eax, dword [edi + 0x48]
inc ecx
sub eax, edx
add esi, 0x20
sar eax, 5
cmp ecx, eax
jb 0x407ac2
cmp dword [edi + 0x20], 0
je 0x407afe
cmp dword [edi + 0x14], 0
je 0x407afe
cmp dword [edi + 0x1c], 0
je 0x407afe
mov al, 1
jmp 0x407b00
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
push 0x80070057
call fcn.00401f80
nop
xchg dword [ecx + 0x40], edi
add byte [edx], bl
jns 0x407b77
add byte [eax + 0x1e004078], cl
jp 0x407b7f
add byte [ebp - 0x75], dl
in al, dx
mov eax, 0x2010
call fcn.0041c810
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx + 4]
push ebx
lea ebx, [ecx + 4]
push esi
mov eax, dword [edx - 0xc]
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x407bc8
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x407ce7
add dword [eax], eax
add byte [ebx - 0x72fff382], al
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x407bbf
pop esi
or al, 0x7c
cmp al, 0x8b
add dword [ebx], edi
push es
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x407bbc
push ecx
call fcn.00402560
add esp, 4
mov dword [ebp - 0x2010], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x407bb2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2010]
add eax, 0x10
mov dword [edi], eax
jmp 0x407ce7
mov eax, dword [edx - 0xc]
push eax
push edx
mov ecx, edi
jmp 0x407ce2
push 0x2000
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2010], 0
push 0
push eax
call fcn.0041e180
add esp, 0xc
lea eax, [ebp - 0x2010]
push eax
push 1
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c4f
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0x1fff
push eax
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], 1
push eax
lea eax, [ebp - 0x2008]
push eax
push 0
push str.ProcessorNameString
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407c60
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00401840
push 0x43b0a8
push 0x43b0ac
mov ecx, edi
call fcn.004082c0
mov ecx, dword [edi]
mov esi, dword [ebx]
sub esi, 0x10
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x407ce7
cmp dword [esi + 0xc], 0
jl 0x407cdc
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x407cdc
push edx
call fcn.00402560
add esp, 4
mov dword [ebp - 0x2008], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407cd5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2008]
add eax, 0x10
mov dword [ebx], eax
jmp 0x407ce7
push dword [ecx - 0xc]
push ecx
mov ecx, ebx
call fcn.00401840
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
cmp dword [eax - 0xc], 0
pop ebx
setne al
xor ecx, ebp
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret 4