Function at 0x10183cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x10255b8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
mov dword [ebp - 0x238], eax
xor eax, eax
push eax
push 0x1006e28
push 0x80000002
mov dword [ebp - 0x23c], 1
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
call ebx
test eax, eax
jne 0x101860c
push edi
push esi
push dword [ebp - 0x224]
lea edi, [ebp - 0x234]
call fcn.01017f41
test eax, eax
jl 0x101860b
test byte [ebp - 0x233], 4
jne 0x1018464
and dword [ebp - 0x23c], 0
jmp 0x101860b
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x101860b
and dword [ebp - 0x228], 0
push 0x1d
pop ecx
and dword [ebp - 0x230], 0
and dword [ebp - 0x240], 0
mov esi, 0x1006e28
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push 0x64
movsw word es:[edi], word [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x196]
rep stosd dword es:[edi], eax
push 0x1006e24
stosw word es:[edi], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x244], 0x4e
call fcn.01009b3d
test eax, eax
jl 0x101860b
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01009b3d
test eax, eax
jl 0x101860b
lea eax, [ebp - 0x230]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x101860b
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x240]
push eax
push 0
push 0x1006e04
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x240]
push dword [ebp - 0x230]
dec esi
neg esi
sbb esi, esi
and esi, 0xd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x101860b
mov esi, 0x1006f44
lea edi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x220]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x101860b
cmp dword [ebp - 0x238], 0
je 0x10185c1
push dword [ebp - 0x238]
lea ecx, [ebp - 0x21c]
push dword [ebp - 0x22c]
call fcn.0101806d
test eax, eax
jne 0x101860b
push dword [ebp - 0x238]
lea ecx, [ebp - 0x21c]
call fcn.010182f7
test eax, eax
jne 0x10185fb
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
lea edi, [ebp - 0x234]
call fcn.01017f41
test eax, eax
jl 0x10185e6
test byte [ebp - 0x233], 4
je 0x10185fb
inc dword [ebp - 0x228]
cmp dword [ebp - 0x228], 0xa
jl 0x1018481
jmp 0x101860b
mov edi, dword [ebp - 0x22c]
lea esi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
cmp dword [ebp - 0x224], 0
pop esi
pop ebx
je 0x1018623
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 0
je 0x1018638
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x23c]
call fcn.0101874a
leave
ret 0xc