Function at 0x1064ba0
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 [0x111024c]
mov ebx, 0x111024c
cmp eax, ebx
je 0x1064bd7
test byte [eax + 0x1c], 1
je 0x1064bd7
cmp byte [eax + 0x19], 4
jb 0x1064bd7
push 0x1005d4c
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
jne 0x1064bf4
push 0x10062d0
push 0x11b
push 0x1005f5c
call fcn.0107b644
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 0x1064c4d
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x1064c41
test byte [eax + 0x1c], 1
je 0x1064c41
cmp byte [eax + 0x19], 2
jb 0x1064c41
push 0x1005d4c
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
mov dword [ebp - 4], 0x8007000e
jmp 0x1064d41
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 0x1064cdc
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1064cc4
test byte [eax + 0x1c], 1
je 0x1064cc4
cmp byte [eax + 0x19], 2
jb 0x1064cc4
push 0x1005d4c
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jle 0x1064cd7
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 4], ecx
jmp 0x1064d37
cmp dword [ebp - 0x10], 4
je 0x1064cf6
push 0x10061f8
push 0x144
push 0x1005f5c
call fcn.0107b644
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call fcn.0106497c
mov dword [ebp - 4], eax
test eax, eax
jge 0x1064d76
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1064d37
test byte [eax + 0x1c], 1
je 0x1064d37
cmp byte [eax + 0x19], 2
jb 0x1064d37
push 0x1005d4c
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
cmp dword [ebp - 4], 0
jge 0x1064f43
cmp eax, 0x111024c
je 0x1064d69
test byte [eax + 0x1c], 1
je 0x1064d69
cmp byte [eax + 0x19], 2
jb 0x1064d69
push dword [ebp - 4]
push 0x1005d4c
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
push dword [ebp - 0x18]
call fcn.010fd836
jmp 0x1064f4b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 1
je 0x1064d9e
cmp eax, 2
je 0x1064d9e
cmp eax, 3
je 0x1064d9e
push 0x1006100
push 0x14f
push 0x1005f5c
call fcn.0107b644
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 0x1064dea
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1064cc4
test byte [eax + 0x1c], 1
je 0x1064cc4
cmp byte [eax + 0x19], 2
jb 0x1064cc4
push 0x1005d4c
push 0x1d
jmp 0x1064cb4
cmp dword [ebp - 0x10], 7
je 0x1064e04
push 0x10060b4
push 0x15f
push 0x1005f5c
call fcn.0107b644
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 0x1064e47
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1064c41
test byte [eax + 0x1c], 1
je 0x1064c41
cmp byte [eax + 0x19], 2
jb 0x1064c41
push 0x1005d4c
push 0x1e
jmp 0x1064c31
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 0x1064eba
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1064ea2
test byte [eax + 0x1c], 1
je 0x1064ea2
cmp byte [eax + 0x19], 2
jb 0x1064ea2
push 0x1005d4c
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
test esi, esi
jle 0x1064eb2
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
jmp 0x1064d37
cmp dword [ebp - 0x10], 7
je 0x1064ed4
push 0x10060b4
push 0x17b
push 0x1005f5c
call fcn.0107b644
mov eax, dword [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x1064f0e
test byte [eax + 0x1c], 1
je 0x1064f0e
cmp byte [eax + 0x19], 4
jb 0x1064f0e
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.01019471
mov eax, dword [0x111024c]
jmp 0x1064f13
mov ebx, 0x1005d4c
mov edi, dword [ebp - 0x14]
and dword [ebp - 0xc], 0
shr edi, 1
cmp edi, 2
jne 0x1064f88
cmp eax, esi
je 0x1064f3f
test byte [eax + 0x1c], 1
je 0x1064f3f
cmp byte [eax + 0x19], 4
jb 0x1064f3f
push ebx
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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 [0x111024c]
pop edi
pop esi
pop ebx
cmp eax, 0x111024c
je 0x1064f81
test byte [eax + 0x1c], 1
je 0x1064f81
cmp byte [eax + 0x19], 4
jb 0x1064f81
push 0x1005d4c
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
leave
ret 4
mov esi, dword [ebp - 0x18]
cmp dword [esi], 3
je 0x1064fbb
push 0x1006068
push 0x18b
push 0x1005f5c
call fcn.0107b644
mov eax, dword [0x111024c]
jmp 0x1064fbb
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 0x1064fab
dec dword [ebp - 0xc]
cmp eax, 0x111024c
je 0x1064fe6
test byte [eax + 0x1c], 1
je 0x1064fe6
cmp byte [eax + 0x19], 4
jb 0x1064fe6
push dword [ebp - 0xc]
push ebx
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
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 0x10651c9
xor edi, edi
cmp eax, edi
je 0x10651c9
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 0x1064d32
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 0x106504d
sub eax, edx
sar eax, 1
mov dword [ebp - 0x30], eax
jne 0x1065074
push 0x1006048
push 0x1b1
push 0x1005f5c
call fcn.0107b644
push 0x2c
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1065123
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 0x106515e
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.0106497c
mov dword [ebp - 4], eax
test eax, eax
jl 0x106518d
mov eax, dword [esi + 0xc]
mov edi, dword [edi + eax]
cmp edi, 1
je 0x10650fe
cmp edi, 2
je 0x10650fe
push 0x1005fa0
push 0x1d3
push 0x1005f5c
call fcn.0107b644
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 0x1065047
jmp 0x1064d32
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065152
test byte [eax + 0x1c], 1
je 0x1065152
cmp byte [eax + 0x19], 2
jb 0x1065152
push 0x1005d4c
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
mov dword [ebp - 4], 0x80780098
jmp 0x1064d41
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1065152
test byte [eax + 0x1c], 1
je 0x1065152
cmp byte [eax + 0x19], 2
jb 0x1065152
push dword [ebp - 8]
push 0x1005d4c
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
jmp 0x106514d
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1064d37
test byte [eax + 0x1c], 1
je 0x1064d37
cmp byte [eax + 0x19], 2
jb 0x1064d37
push ebx
push 0x1005d4c
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x1064d32
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10651f8
test byte [eax + 0x1c], 1
je 0x10651f8
cmp byte [eax + 0x19], 2
jb 0x10651f8
push 0x1005d4c
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
mov dword [ebp - 4], 0x8007000e
jmp 0x1064d37