Function at 0x1064ad2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x111124c]
mov ebx, 0x111124c
cmp eax, ebx
je 0x1064b09
test byte [eax + 0x1c], 1
je 0x1064b09
cmp byte [eax + 0x19], 4
jb 0x1064b09
push 0x1005d4c
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
jne 0x1064b26
push 0x10062d0
push 0x11b
push 0x1005f5c
call fcn.0107b4be
push 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], 4
mov dword [edi], esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x1064b7f
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x1064b73
test byte [eax + 0x1c], 1
je 0x1064b73
cmp byte [eax + 0x19], 2
jb 0x1064b73
push 0x1005d4c
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
mov dword [ebp - 4], 0x8007000e
jmp 0x1064c73
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
or dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10
push 0x100629c
mov ebx, 0x1006210
push ebx
mov edi, 0x80000002
push edi
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1064c0e
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1064bf6
test byte [eax + 0x1c], 1
je 0x1064bf6
cmp byte [eax + 0x19], 2
jb 0x1064bf6
push 0x1005d4c
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jle 0x1064c09
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 4], ecx
jmp 0x1064c69
cmp dword [ebp - 0x10], 4
je 0x1064c28
push 0x10061f8
push 0x144
push 0x1005f5c
call fcn.0107b4be
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call fcn.010648ae
mov dword [ebp - 4], eax
test eax, eax
jge 0x1064ca8
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1064c69
test byte [eax + 0x1c], 1
je 0x1064c69
cmp byte [eax + 0x19], 2
jb 0x1064c69
push 0x1005d4c
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
cmp dword [ebp - 4], 0
jge 0x1064e75
cmp eax, 0x111124c
je 0x1064c9b
test byte [eax + 0x1c], 1
je 0x1064c9b
cmp byte [eax + 0x19], 2
jb 0x1064c9b
push dword [ebp - 4]
push 0x1005d4c
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
push dword [ebp - 0x18]
call fcn.010fd970
jmp 0x1064e7d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 1
je 0x1064cd0
cmp eax, 2
je 0x1064cd0
cmp eax, 3
je 0x1064cd0
push 0x1006100
push 0x14f
push 0x1005f5c
call fcn.0107b4be
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0x20
push 0x10060cc
push ebx
push edi
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1064d1c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1064bf6
test byte [eax + 0x1c], 1
je 0x1064bf6
cmp byte [eax + 0x19], 2
jb 0x1064bf6
push 0x1005d4c
push 0x1d
jmp 0x1064be6
cmp dword [ebp - 0x10], 7
je 0x1064d36
push 0x10060b4
push 0x15f
push 0x1005f5c
call fcn.0107b4be
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x1064d79
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1064b73
test byte [eax + 0x1c], 1
je 0x1064b73
cmp byte [eax + 0x19], 2
jb 0x1064b73
push 0x1005d4c
push 0x1e
jmp 0x1064b63
push dword [ebp - 0x14]
push 0
push dword [ebp - 8]
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push 0x20
push 0x10060cc
push ebx
push edi
call esi
mov esi, eax
test esi, esi
je 0x1064dec
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1064dd4
test byte [eax + 0x1c], 1
je 0x1064dd4
cmp byte [eax + 0x19], 2
jb 0x1064dd4
push 0x1005d4c
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
test esi, esi
jle 0x1064de4
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
jmp 0x1064c69
cmp dword [ebp - 0x10], 7
je 0x1064e06
push 0x10060b4
push 0x17b
push 0x1005f5c
call fcn.0107b4be
mov eax, dword [0x111124c]
mov esi, 0x111124c
cmp eax, esi
je 0x1064e40
test byte [eax + 0x1c], 1
je 0x1064e40
cmp byte [eax + 0x19], 4
jb 0x1064e40
push dword [ebp - 8]
mov ebx, 0x1005d4c
push dword [ebp - 0x14]
push ebx
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010194be
mov eax, dword [0x111124c]
jmp 0x1064e45
mov ebx, 0x1005d4c
mov edi, dword [ebp - 0x14]
and dword [ebp - 0xc], 0
shr edi, 1
cmp edi, 2
jne 0x1064eba
cmp eax, esi
je 0x1064e71
test byte [eax + 0x1c], 1
je 0x1064e71
cmp byte [eax + 0x19], 4
jb 0x1064e71
push ebx
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
pop edi
pop esi
pop ebx
cmp eax, 0x111124c
je 0x1064eb3
test byte [eax + 0x1c], 1
je 0x1064eb3
cmp byte [eax + 0x19], 4
jb 0x1064eb3
push 0x1005d4c
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 4]
leave
ret 4
mov esi, dword [ebp - 0x18]
cmp dword [esi], 3
je 0x1064eed
push 0x1006068
push 0x18b
push 0x1005f5c
call fcn.0107b4be
mov eax, dword [0x111124c]
jmp 0x1064eed
mov edx, dword [ebp - 8]
xor ecx, ecx
dec edi
cmp word [edx + edi*2], cx
sete cl
add dword [ebp - 0xc], ecx
test edi, edi
jne 0x1064edd
dec dword [ebp - 0xc]
cmp eax, 0x111124c
je 0x1064f18
test byte [eax + 0x1c], 1
je 0x1064f18
cmp byte [eax + 0x19], 4
jb 0x1064f18
push dword [ebp - 0xc]
push ebx
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov ebx, dword [ebp - 0xc]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
shl ebx, 2
push ebx
call edi
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 4
push eax
mov dword [ebp - 0x20], eax
call edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], eax
test ecx, ecx
je 0x10650fb
xor edi, edi
cmp eax, edi
je 0x10650fb
push ebx
push edi
push ecx
call sub.msvcrt.dll_memset
push dword [ebp - 0x20]
push edi
push dword [esi + 8]
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0x18
mov dword [esi + 4], eax
mov dword [ebp - 0x1c], edi
cmp eax, edi
jbe 0x1064c64
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1064f7f
sub eax, edx
sar eax, 1
mov dword [ebp - 0x30], eax
jne 0x1064fa6
push 0x1006048
push 0x1b1
push 0x1005f5c
call fcn.0107b4be
push 0x2c
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1065055
xor eax, eax
mov word [edi], ax
mov eax, dword [esi + 8]
add eax, dword [ebp - 0x20]
push eax
push dword [ebp - 8]
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x1065090
push 0xa
lea eax, [ebp - 0x34]
push eax
add edi, 2
push edi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov edi, dword [ebp - 0x1c]
mov ebx, eax
mov eax, dword [esi + 0xc]
add esp, 0xc
shl edi, 2
add eax, edi
push eax
push ebx
call fcn.010648ae
mov dword [ebp - 4], eax
test eax, eax
jl 0x10650bf
mov eax, dword [esi + 0xc]
mov edi, dword [edi + eax]
cmp edi, 1
je 0x1065030
cmp edi, 2
je 0x1065030
push 0x1005fa0
push 0x1d3
push 0x1005f5c
call fcn.0107b4be
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
inc dword [ebp - 0x1c]
add dword [ebp - 0x20], 0x10
lea eax, [eax + ecx*2 + 2]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jb 0x1064f79
jmp 0x1064c64
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1065084
test byte [eax + 0x1c], 1
je 0x1065084
cmp byte [eax + 0x19], 2
jb 0x1065084
push 0x1005d4c
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
mov dword [ebp - 4], 0x80780098
jmp 0x1064c73
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1065084
test byte [eax + 0x1c], 1
je 0x1065084
cmp byte [eax + 0x19], 2
jb 0x1065084
push dword [ebp - 8]
push 0x1005d4c
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
jmp 0x106507f
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1064c69
test byte [eax + 0x1c], 1
je 0x1064c69
cmp byte [eax + 0x19], 2
jb 0x1064c69
push ebx
push 0x1005d4c
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x1064c64
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x106512a
test byte [eax + 0x1c], 1
je 0x106512a
cmp byte [eax + 0x19], 2
jb 0x106512a
push 0x1005d4c
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
mov dword [ebp - 4], 0x8007000e
jmp 0x1064c69