Function at 0x101e5b7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x103079f
call fcn.0102b282
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x34]
push eax
push 0x20019
push edi
mov esi, 0x1004e70
push esi
push 0x80000002
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x50], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov ebx, 0x80070000
jle 0x101e615
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x101eb0a
push edi
push edi
push edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x34]
mov dword [ebp - 0x58], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
jle 0x101e648
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0x24], eax
mov ebx, 0x1035128
cmp eax, edi
jne 0x101e797
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x101e688
cmp dword [ebp - 0x34], edi
je 0x101e66d
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1004e00
push 2
push 2
push 0x1035128
call fcn.0102ca9a
add esp, 0x10
jmp 0x101eb32
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0102a64e
xor edi, edi
pop ecx
mov dword [ebp - 0x50], eax
cmp eax, edi
je 0x101e77d
mov ecx, dword [ebp - 0x38]
shl ecx, 2
push ecx
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x38], edi
jbe 0x101ea9b
mov esi, dword [ebp - 0x58]
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x48], esi
neg ecx
or ecx, eax
push ecx
call fcn.0102a64e
mov edx, dword [ebp - 0x28]
pop ecx
mov ecx, dword [ebp - 0x50]
xor edi, edi
lea esi, [ecx + edx*4]
mov dword [esi], eax
cmp eax, edi
je 0x101e75a
push edi
push edi
push edi
xor ecx, ecx
mov word [eax], cx
push edi
lea eax, [ebp - 0x48]
push eax
push dword [esi]
push edx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x101e7ad
cmp eax, edi
jne 0x101e737
push dword [esi]
push 0x1004da8
push 5
push 2
push ebx
call fcn.0102ca9a
add esp, 0x14
inc dword [ebp - 0x40]
jmp 0x101e749
push eax
push 0x1004d60
push edi
push 0x10
push ebx
call fcn.0102ca9a
add esp, 0x14
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x38]
jb 0x101e6c7
jmp 0x101e7ad
mov eax, 0x8007000e
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x40], edi
push 0x1004ce0
push 2
push 0x10
push ebx
mov dword [ebp - 0x24], eax
call fcn.0102ca9a
add esp, 0x18
jmp 0x101e7ad
mov eax, 0x8007000e
push eax
push 0x1004c78
push 2
push 0x10
push ebx
mov dword [ebp - 0x24], eax
call fcn.0102ca9a
jmp 0x101e7aa
push eax
push 0x1004c10
push 4
push 2
push ebx
call fcn.0102ca9a
mov dword [ebp - 0x24], edi
add esp, 0x14
cmp dword [ebp - 0x40], edi
jbe 0x101ea9b
lea eax, [ebp - 0x30]
push eax
push 0x101bdf8
push 0x401
push edi
push 0x101bde8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x24], eax
cmp eax, edi
mov eax, dword [ebp - 0x30]
jl 0x101e7f7
cmp eax, edi
je 0x101e7f7
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xc]
cmp eax, edi
mov dword [ebp - 0x24], eax
jge 0x101e816
push eax
push dword [ebp - 0x30]
push 0x1004b90
jmp 0x101e800
push dword [ebp - 0x24]
push eax
push 0x1004b10
push 2
push 0x10
push ebx
call fcn.0102ca9a
add esp, 0x18
cmp dword [ebp - 0x24], edi
jl 0x101ea8c
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x101e849
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push 0x101bdd8
push eax
call dword [ecx + 0x1c]
cmp eax, edi
mov dword [ebp - 0x24], eax
jge 0x101e852
push eax
push dword [ebp - 0x30]
push 0x1004a88
push 2
push 0x10
push ebx
call fcn.0102ca9a
add esp, 0x18
cmp dword [ebp - 0x24], edi
jl 0x101ea8c
cmp dword [ebp - 0x30], edi
je 0x101eaac
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 2
jmp 0x101ea63
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp eax, edi
mov dword [ebp - 0x24], eax
jge 0x101e892
push eax
push 0x1004a10
push edi
push 0x10
push ebx
call fcn.0102ca9a
add esp, 0x14
jmp 0x101ea5a
cmp dword [ebp - 0x28], edi
je 0x101ea5a
mov dword [ebp - 0x4c], edi
cmp dword [ebp - 0x40], edi
jbe 0x101ea4b
push 2
pop edi
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea esi, [eax + ecx*4]
push dword [esi]
push dword [ebp - 0x28]
push 0x10049a8
push 5
push edi
push ebx
call fcn.0102ca9a
mov esi, dword [esi]
mov eax, esi
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, edi
test dx, dx
jne 0x101e8d0
sub eax, ecx
sar eax, 1
push eax
push esi
push dword [ebp - 0x28]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x101ea18
push dword [ebp - 0x28]
push 0x1004978
push 5
push edi
push ebx
call fcn.0102ca9a
mov eax, dword [ebp - 0x2c]
add esp, 0x14
lea edx, [ebp - 0x44]
xor esi, esi
push edx
mov dword [ebp - 0x44], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x101e939
cmp dword [ebp - 0x44], esi
je 0x101e939
push dword [ebp - 0x44]
push 0x1004950
push 5
push edi
push ebx
call fcn.0102ca9a
add esp, 0x14
jmp 0x101e94e
push eax
push dword [ebp - 0x2c]
push 0x10048c8
push edi
push 0x10
push ebx
call fcn.0102ca9a
add esp, 0x18
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x20]
cmp eax, esi
mov dword [ebp - 0x24], eax
jl 0x101e995
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
call fcn.0101ccb7
push dword [ebp - 0x48]
mov byte [ebp - 4], 3
push 0x100489c
push 5
push edi
push ebx
call fcn.0102ca9a
add esp, 0x14
push dword [ebp - 0x48]
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x101e9aa
push eax
push dword [ebp - 0x2c]
push 0x1004810
push edi
push 0x10
push ebx
call fcn.0102ca9a
add esp, 0x18
push dword [ebp - 0x44]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x10
call fcn.0102a5df
pop ecx
cmp eax, esi
je 0x101e9d0
lea esi, [ebp - 0x20]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], eax
pop edi
jmp 0x101e9d3
mov dword [ebp - 0x54], esi
push 4
call fcn.0102a5df
pop ecx
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x101e9f4
push dword [ebp - 0x28]
mov ecx, eax
call fcn.0101cc80
mov esi, eax
jmp 0x101e9f6
xor esi, esi
cmp dword [ebp - 0x54], 0
mov byte [ebp - 4], 2
je 0x101ea29
test esi, esi
je 0x101ea29
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
call fcn.010302f4
mov ecx, dword [ebp - 0x60]
push esi
call fcn.010302f4
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x40]
jb 0x101e8aa
jmp 0x101ea49
mov eax, 0x8007000e
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x28]
push 0x1004780
push edi
push 0x10
push ebx
call fcn.0102ca9a
add esp, 0x1c
xor edi, edi
cmp dword [ebp - 0x2c], edi
je 0x101ea5a
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.0101c615
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x2c]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
mov eax, dword [ebp - 0x2c]
je 0x101e867
mov byte [ebp - 4], 1
cmp eax, edi
je 0x101ea8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x101eaac
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
jmp 0x101eaac
push 0x1004718
push edi
push 0x10
push ebx
call fcn.0102ca9a
add esp, 0x10
mov ebx, dword [ebp - 0x50]
cmp ebx, edi
je 0x101ead5
xor esi, esi
cmp dword [ebp - 0x38], edi
jbe 0x101eace
mov eax, dword [ebx + esi*4]
cmp eax, edi
je 0x101eac8
push eax
call fcn.0102a5ce
pop ecx
inc esi
cmp esi, dword [ebp - 0x38]
jb 0x101eaba
push ebx
call fcn.0102a5ce
pop ecx
cmp dword [ebp - 0x34], edi
je 0x101eae3
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x101eaf4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x101eb05
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
jmp 0x101eb56
cmp dword [ebp - 0x34], edi
je 0x101eb18
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x24]
push esi
push 0x10046a0
push 2
push 0x10
push 0x1035128
call fcn.0102ca9a
add esp, 0x18
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x101eb43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x101eb54
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
call fcn.0102b314
ret 8