Function at 0x101e05c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10723e4]
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 0x1011618
push 0x80000002
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x244], 0x105
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101e109
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 0x101e110
cmp eax, 0xea
je 0x101e110
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x101e2fd
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 0x101e13e
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x101e2fc
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 0x101e16b
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x101e2ed
cmp dword [ebp - 0x228], edi
mov dword [ebp - 0x214], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jbe 0x101e215
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 0x101e2cd
cmp dword [ebp - 0x21c], 0x1000
jb 0x101e1e3
and word [esi + 0xffe], ax
mov eax, dword [ebp - 0x230]
dec eax
jne 0x101e1fb
push 1
push esi
push ebx
push dword [ebp - 0x240]
call fcn.0101de16
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x228]
jb 0x101e183
jmp 0x101e21b
mov esi, dword [ebp - 0x224]
and dword [ebp - 0x214], 0
cmp dword [ebp - 0x228], 0
jbe 0x101e2d4
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 0x101e2cd
cmp dword [ebp - 0x21c], 0x1000
jb 0x101e285
and word [esi + 0xffe], ax
mov eax, dword [ebp - 0x230]
dec eax
dec eax
jne 0x101e2b3
push esi
call fcn.01031970
push 1
mov esi, eax
push esi
push ebx
push dword [ebp - 0x240]
call fcn.0101de16
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 0x101e22f
jmp 0x101e2d4
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.0103d24a
leave
ret 4