Function at 0x4079e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498bfd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c4184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 0xc]
mov edx, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x38], eax
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x2c], 0
jb 0x407a2a
mov edx, dword [eax]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 2
push edx
push 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x407a4c
mov byte [esi + 0x18], 0
jmp 0x407bd8
mov edx, dword [ebp - 0x2c]
xor eax, eax
shr edx, 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 7
ja 0x407a9a
mov dword [ebp - 0x18], edx
test edx, edx
je 0x407a8e
mov ecx, edx
lea edi, [ebp - 0x28]
shr ecx, 1
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + edx*2 - 0x28], ax
mov eax, dword [ebp - 0x28]
jmp 0x407b04
cmp edx, 0x7ffffffe
ja 0x407bf7
mov edi, edx
mov dword [ebp - 0x30], edx
or edi, 7
lea ecx, [ebp - 0x28]
cmp edi, 0x7ffffffe
jbe 0x407ac3
mov edi, SysReAllocString
lea eax, [edi + 1]
jmp 0x407ad0
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
call fcn.00408ca0
mov edx, dword [ebp - 0x3c]
mov ecx, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, 0x200020
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x34]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov word [eax + edx*2], cx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae ecx, eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x14], 8
jb 0x407b20
mov eax, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push ecx
push 0
push 2
push eax
mov eax, dword [ebp - 0x40]
push 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x407b7f
mov edx, dword [ebp - 0x14]
mov byte [esi + 0x18], 0
cmp edx, 8
jb 0x407bd8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407b73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bfc
push edx
push ecx
call fcn.0044a0c0
add esp, 8
jmp 0x407bd8
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
shr ecx, 1
dec ecx
cmp ecx, eax
ja 0x407ba2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x407baf
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00408e60
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov byte [esi + 0x18], 1
mov eax, esi
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.0044a466
mov esp, ebp
pop ebp
ret 8
call fcn.00408b80
call fcn.00457e81
int3