Function at 0x1018778
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1025558]
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 0x1006fd8
push 0x80000002
mov dword [ebp - 0x23c], 1
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
call ebx
test eax, eax
jne 0x10189b9
push edi
push esi
push dword [ebp - 0x224]
lea edi, [ebp - 0x234]
call fcn.010182ee
test eax, eax
jl 0x10189b8
test byte [ebp - 0x233], 4
jne 0x1018811
and dword [ebp - 0x23c], 0
jmp 0x10189b8
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x10189b8
and dword [ebp - 0x228], 0
push 0x1d
pop ecx
and dword [ebp - 0x230], 0
and dword [ebp - 0x240], 0
mov esi, 0x1006fd8
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 0x1006fd4
stosw word es:[edi], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x244], 0x4e
call fcn.01009cf0
test eax, eax
jl 0x10189b8
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01009cf0
test eax, eax
jl 0x10189b8
lea eax, [ebp - 0x230]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x10189b8
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x240]
push eax
push 0
push 0x1006fb4
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 0x10189b8
mov esi, 0x10070fc
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 0x10189b8
cmp dword [ebp - 0x238], 0
je 0x101896e
push dword [ebp - 0x238]
lea ecx, [ebp - 0x21c]
push dword [ebp - 0x22c]
call fcn.0101841a
test eax, eax
jne 0x10189b8
push dword [ebp - 0x238]
lea ecx, [ebp - 0x21c]
call fcn.010186a4
test eax, eax
jne 0x10189a8
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
lea edi, [ebp - 0x234]
call fcn.010182ee
test eax, eax
jl 0x1018993
test byte [ebp - 0x233], 4
je 0x10189a8
inc dword [ebp - 0x228]
cmp dword [ebp - 0x228], 0xa
jl 0x101882e
jmp 0x10189b8
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 0x10189d0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 0
je 0x10189e5
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x23c]
call fcn.01018af7
leave
ret 0xc