Function at 0x4065a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4f238c]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
cmp dword [edx + 0x14], 8
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
jb 0x4065cd
mov edx, dword [edx]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4065fe
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00457808
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebx], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jb 0x406620
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x406645
test eax, eax
jne 0x4067a4
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00457b5c
mov ecx, dword [ebp - 0x28]
add esp, 4
mov ebx, eax
test ecx, ecx
je 0x40667a
xor eax, eax
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x34]
cmp dword [esi + 0x14], 8
jb 0x406682
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406797
cmp dword [ebp - 0x2c], 1
jne 0x4066cd
mov edx, ebx
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4066b0
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push ebx
call fcn.00405100
jmp 0x40678b
mov eax, dword [ebp - 0x2c]
cmp eax, 7
je 0x4066de
cmp eax, 2
jne 0x40678b
xor eax, eax
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0xc], 7
shr eax, 1
push eax
push ebx
call fcn.00405100
lea eax, [ebp - 0x20]
cmp edi, eax
je 0x406755
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x406742
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x406738
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067c3
mov eax, edx
push ecx
push eax
call fcn.0045757d
add esp, 8
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [edi + 0x10], xmm0
jmp 0x40678b
mov edx, dword [ebp - 0xc]
cmp edx, 8
jb 0x40678b
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406781
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067c3
push edx
push ecx
call fcn.0045757d
add esp, 8
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x21], 1
mov dword [ecx], eax
test ebx, ebx
je 0x4067a4
push ebx
call fcn.00434c8a
add esp, 4
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x21]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00457808
mov esp, ebp
pop ebp
ret 0x14
call fcn.004a2f99
int3