Function at 0x100149a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010806c
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x24c], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], esi
cmp byte [ebp + 0x44], 0
mov byte [ebp - 4], 3
je 0x10014b3e
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x10014a24
lea eax, [ebp + 8]
push 0x20119
push eax
push ecx
lea ecx, [ebp - 0x248]
call fcn.10016270
test eax, eax
jne 0x10014b3e
xor ebx, ebx
mov edi, dword [ebp - 0x248]
lea ecx, [ebp - 0x268]
push ecx
push esi
push esi
push esi
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x218]
push eax
push ebx
push edi
mov dword [ebp - 0x23c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10014b1b
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x10014a84
lea eax, [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
push ecx
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.10066f75
add esp, 0xc
test eax, eax
jne 0x10014b15
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10014ac0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.1000abb0
lea ecx, [ebp - 0x234]
lea edi, [ebp - 0x25c]
mov byte [ebp - 4], 4
call fcn.1000c150
mov byte [ebp - 4], 3
cmp dword [ebp - 0x220], 8
jb 0x10014b13
mov edx, dword [ebp - 0x234]
push edx
call fcn.10065453
add esp, 4
xor esi, esi
inc ebx
jmp 0x10014a40
cmp edi, esi
je 0x10014b2c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], esi
mov edi, dword [ebp - 0x258]
mov ebx, dword [ebp - 0x25c]
mov dword [ebp - 0x244], esi
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x10014b4a
lea eax, [ebp + 8]
push 0x20219
push eax
mov eax, dword [ebp - 0x260]
push eax
lea ecx, [ebp - 0x248]
call fcn.10016270
test eax, eax
jne 0x10014c6e
xor ebx, ebx
mov edi, dword [ebp - 0x248]
lea ecx, [ebp - 0x268]
push ecx
push esi
push esi
push esi
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x218]
push eax
push ebx
push edi
mov dword [ebp - 0x23c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10014c4b
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x10014bb0
lea eax, [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
push ecx
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.10066f75
add esp, 0xc
test eax, eax
jne 0x10014c45
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
lea edx, [eax + 2]
jmp 0x10014bf0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10014bf0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.1000abb0
lea ecx, [ebp - 0x234]
lea edi, [ebp - 0x25c]
mov byte [ebp - 4], 5
call fcn.1000c150
mov byte [ebp - 4], 3
cmp dword [ebp - 0x220], 8
jb 0x10014c43
mov edx, dword [ebp - 0x234]
push edx
call fcn.10065453
add esp, 4
xor esi, esi
inc ebx
jmp 0x10014b6c
cmp edi, esi
je 0x10014c5c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], esi
mov edi, dword [ebp - 0x258]
mov ebx, dword [ebp - 0x25c]
mov dword [ebp - 0x244], esi
mov ecx, edi
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, 1
jne 0x10014c91
push 0xffffffffffffffff
push 0
push ebx
jmp 0x10014cb0
jbe 0x10014cbb
push esi
push edi
push ebx
call fcn.10014d50
add esp, 0xc
lea eax, [esi*8]
push 0xffffffffffffffff
sub eax, esi
push 0
lea ecx, [ebx + eax*4 - 0x1c]
push ecx
mov ecx, dword [ebp - 0x24c]
call fcn.1000b050
test esi, esi
setne byte [ebp - 0x235]
test ebx, ebx
je 0x10014cd8
mov eax, ebx
call fcn.1000c860
push ebx
call fcn.10065453
add esp, 4
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x10014ce9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x10014cff
mov edx, dword [ebp + 8]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], esi
jb 0x10014d24
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.10065453
add esp, 4
mov al, byte [ebp - 0x235]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret