Function at 0x101e1dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x107342c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x240], eax
xor eax, eax
lea ecx, [ebp - 0x218]
push ecx
inc eax
push eax
xor edi, edi
push edi
push 0x10118d8
push 0x80000002
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x244], 0x105
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101e289
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x238]
push eax
push eax
push eax
push edi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x101e290
cmp eax, 0xea
je 0x101e290
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x101e47d
push esi
push dword [ebp - 0x22c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call esi
cmp eax, edi
mov dword [ebp - 0x224], eax
jne 0x101e2be
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x101e47c
inc dword [ebp - 0x220]
mov eax, dword [ebp - 0x220]
push ebx
add eax, eax
push eax
push 0x40
call esi
mov ebx, eax
cmp ebx, edi
jne 0x101e2eb
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x101e46d
cmp dword [ebp - 0x228], edi
mov dword [ebp - 0x214], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jbe 0x101e395
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x230]
push eax
push 0
lea eax, [ebp - 0x23c]
push eax
push ebx
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x101e44d
cmp dword [ebp - 0x21c], 0x1000
jb 0x101e363
and word [esi + 0xffe], ax
mov eax, dword [ebp - 0x230]
dec eax
jne 0x101e37b
push 1
push esi
push ebx
push dword [ebp - 0x240]
call fcn.0101df76
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x228]
jb 0x101e303
jmp 0x101e39b
mov esi, dword [ebp - 0x224]
and dword [ebp - 0x214], 0
cmp dword [ebp - 0x228], 0
jbe 0x101e454
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x230]
push eax
push 0
lea eax, [ebp - 0x23c]
push eax
push ebx
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x101e44d
cmp dword [ebp - 0x21c], 0x1000
jb 0x101e405
and word [esi + 0xffe], ax
mov eax, dword [ebp - 0x230]
dec eax
dec eax
jne 0x101e433
push esi
call fcn.01032019
push 1
mov esi, eax
push esi
push ebx
push dword [ebp - 0x240]
call fcn.0101df76
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x224]
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x228]
jb 0x101e3af
jmp 0x101e454
and dword [ebp - 0x234], 0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x234]
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0103e4d8
leave
ret 4