Function at 0x1010cab
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
xor edi, edi
mov esi, 0x102a084
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x3c], edi
call fcn.01001e95
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], edi
call fcn.01001e95
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], edi
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
call fcn.01001e95
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.01001e95
lea ecx, [ebp - 0x58]
call fcn.0100950d
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.01001e95
push dword [ebp + 8]
lea eax, [ebp - 0x34]
push 0x100a070
push eax
mov byte [ebp - 4], 7
call fcn.010028ff
mov eax, dword [ebp - 0x34]
add esp, 0xc
cmp dword [eax - 0xc], edi
je 0x1010cbc
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x100c0b3
push eax
call fcn.010094ac
cmp eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], 1
jge 0x100c0b3
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
jl 0x1009fee
mov ebx, dword [ebp + 8]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x1010ce3
cmp dword [ebp - 0x20], edi
je 0x1009ffc
push dword [ebp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x14], edi
jge 0x100a00d
cmp dword [ebp - 0x3c], edi
je 0x100a00d
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.01001cdd
lea ecx, [ebp - 0x58]
call fcn.01009528
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.01001cdd
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.01001cdd
lea ecx, [ebp - 0x1c]
call fcn.0100a0ed
lea ecx, [ebp - 0x30]
call fcn.0100a0ed
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.01001cdd
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.01001cdd
mov eax, dword [ebp - 0x14]
call fcn.01001e37
jmp 0x1010f19
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x100c0b9
sub eax, edx
sar eax, 1
add eax, 2
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x38], eax
mul edx
seto cl
mov byte [ebp - 4], 8
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 7
jmp 0x1009fc0
push 0x70
mov eax, 0x10244f5
call fcn.01002309
jmp 0x1009f06
mov dword [ebp - 0x14], 0x8007000e
jmp 0x1009fc0
cmp eax, edi
je 0x1010cf0
push eax
call fcn.010094ac
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], edi
jl 0x1010d56
push edi
lea ecx, [ebp - 0x1c]
call fcn.01008fc1
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1010d21
push eax
call fcn.010094ac
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], edi
jl 0x1010d56
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1010d2c
sub eax, edx
sar eax, 1
add eax, 2
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], eax
call fcn.010021da
mov ebx, eax
cmp ebx, edi
jne 0x1010d56
mov dword [ebp - 0x14], 0x8007000e
mov dword [ebp - 0x24], edi
jmp 0x1010eff
mov eax, dword [ebp - 0x44]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x1010f08
cmp eax, edi
je 0x1010d91
push eax
call fcn.010094ac
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], edi
jl 0x1010efc
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1010d9f
sub eax, edx
push 0x7b
pop ecx
sar eax, 1
cmp cx, word [ebx]
jne 0x1010efc
push 0x7d
pop ecx
cmp cx, word [ebx + eax*2 - 2]
jne 0x1010efc
mov ecx, dword [ebp + 8]
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, di
jne 0x1010dcd
sub ecx, esi
sar ecx, 1
cmp ecx, eax
jne 0x1010efc
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 2
push ebx
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
cmp eax, edi
je 0x1010e06
push eax
call fcn.010094ac
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], edi
jl 0x1010efc
mov eax, dword [ebp - 0x18]
shr eax, 1
inc eax
inc eax
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
call fcn.010021da
mov esi, eax
mov eax, dword [ebp - 0x18]
add eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push 2
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
cmp eax, edi
je 0x1010e4c
push eax
call fcn.010094ac
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], edi
jl 0x1010efc
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.01009188
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], edi
je 0x1010efc
push ebx
lea ecx, [ebp - 0x58]
call fcn.01002e50
push 0x7b
lea ecx, [ebp - 0x58]
call fcn.01009e2b
push 0x7d
lea ecx, [ebp - 0x58]
call fcn.01009e2b
lea eax, [ebp - 0x7c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1010ed8
push dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push 0x1010f44
push eax
call fcn.010028ff
add esp, 0x10
cmp dword [ebp - 0x28], edi
jne 0x1010ebf
mov eax, 0x1010f34
cmp dword [ebp - 0x24], edi
je 0x1010ec4
mov eax, 0x1010f20
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
push dword [ebp + 0x10]
call fcn.0101f814
add esp, 0x10
jmp 0x1010ee5
push 0x1010f1c
lea ecx, [ebp - 0x54]
call fcn.01002e50
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push eax
call fcn.0101f8c9
test eax, eax
jne 0x1010efc
mov dword [ebp - 0x14], 0x8007000e
inc dword [ebp - 0x24]
cmp dword [ebp - 0x14], edi
jge 0x1010d5e
inc dword [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jl 0x1009fee
jmp 0x1009fcb
ret 0xc