Function at 0x4186b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531eee
mov eax, dword fs:[0]
push eax
mov eax, 0x845c
call fcn.00460460
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x844c], esi
cmp dword [ebp + 0x20], 8
lea edx, [ebp - 0x8434]
push edx
push 0x20019
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418a79
push edi
push dword [edi + 4]
push dword [edi]
call fcn.00419550
mov eax, dword [edi]
mov dword [edi + 4], eax
push esi
push dword [esi + 4]
push dword [esi]
call fcn.00419550
mov eax, dword [esi]
push 0x208
mov dword [esi + 4], eax
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.004ecad0
add esp, 0x24
mov dword [ebp - 0x8444], 0x104
lea eax, [ebp - 0x8468]
mov dword [ebp - 0x8438], 0
mov dword [ebp - 0x843c], 0x3fff
push eax
lea eax, [ebp - 0x8450]
push eax
lea eax, [ebp - 0x8454]
push eax
lea eax, [ebp - 0x8458]
push eax
lea eax, [ebp - 0x8440]
push eax
lea eax, [ebp - 0x845c]
push eax
lea eax, [ebp - 0x8460]
push eax
lea eax, [ebp - 0x8438]
push eax
push 0
lea eax, [ebp - 0x8444]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x8434]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8438]
test eax, eax
je 0x4188f9
xor esi, esi
test eax, eax
je 0x4188f9
lea eax, [ebp - 0x8468]
mov dword [ebp - 0x8448], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x8448]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x8434]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4188ec
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x8420], eax
mov dword [ebp - 0x841c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x8430], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418840
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x8430]
call fcn.00416d70
mov eax, dword [edi + 4]
mov byte [ebp - 4], 1
cmp eax, dword [edi + 8]
je 0x418899
movups xmm0, xmmword [ebp - 0x8430]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x8420]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0x8430], ax
jmp 0x4188ae
lea ecx, [ebp - 0x8430]
push ecx
push eax
mov ecx, edi
call fcn.00419720
mov edx, dword [ebp - 0x841c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4188ec
mov ecx, dword [ebp - 0x8430]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4188e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a9e
push edx
push ecx
call fcn.00460404
add esp, 8
inc esi
cmp esi, dword [ebp - 0x8438]
jb 0x4187e0
mov eax, dword [ebp - 0x8440]
test eax, eax
je 0x418a33
xor esi, esi
test eax, eax
je 0x418a33
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x843c], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8418], ax
lea eax, [ebp - 0x843c]
push eax
lea eax, [ebp - 0x8418]
push eax
push esi
push dword [ebp - 0x8434]
call edi
test eax, eax
jne 0x418a26
mov dword [ebp - 0x8420], eax
mov word [ebp - 0x8430], ax
lea eax, [ebp - 0x8418]
mov dword [ebp - 0x841c], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418976
sub eax, edx
lea ecx, [ebp - 0x8430]
sar eax, 1
push eax
lea eax, [ebp - 0x8418]
push eax
call fcn.00416d70
mov ecx, dword [ebp - 0x844c]
mov byte [ebp - 4], 2
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4189d5
movups xmm0, xmmword [ebp - 0x8430]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x8420]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ecx + 4], 0x18
mov word [ebp - 0x8430], ax
jmp 0x4189e8
lea edx, [ebp - 0x8430]
push edx
push eax
call fcn.00419720
mov edx, dword [ebp - 0x841c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x418a26
mov ecx, dword [ebp - 0x8430]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418a1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a9e
push edx
push ecx
call fcn.00460404
add esp, 8
inc esi
cmp esi, dword [ebp - 0x8440]
jb 0x418920
push dword [ebp - 0x8434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x418a75
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418a6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a9e
push edx
push ecx
call fcn.00460404
add esp, 8
mov al, 1
jmp 0x418a83
lea ecx, [ebp + 0xc]
call fcn.00419a40
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.00460412
mov esp, ebp
pop ebp
ret
call fcn.004f5b2a
int3