Function at 0x1003fa8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor eax, eax
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
xor ebx, ebx
push ebx
push 0x1004120
push 0x80000002
mov dword [ebp - 0x2c], eax
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10090c3
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10090f7
push dword [ebp - 0x20]
call fcn.01006a60
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10090f7
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
call fcn.01006a60
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1009102
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
cmp dword [ebp - 0x1c], ebx
jbe 0x1004095
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10041d3
cmp dword [ebp - 0x14], 0x1000
jae 0x1009116
mov eax, dword [ebp - 0x28]
dec eax
jne 0x100408f
push 1
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.01004511
test eax, eax
je 0x1009125
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x1004037
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x10040ef
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10041d3
cmp dword [ebp - 0x14], 0x1000
jae 0x1009166
mov eax, dword [ebp - 0x28]
dec eax
dec eax
je 0x100419a
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jb 0x100409d
push dword [ebp - 0xc]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
pop edi
pop esi
cmp dword [ebp - 8], ebx
je 0x1004108
lea eax, [ebp - 8]
push eax
call fcn.0100575d
cmp dword [ebp - 4], ebx
je 0x1004116
lea eax, [ebp - 4]
push eax
call fcn.0100575d
mov eax, dword [ebp - 0x2c]
pop ebx
leave
ret 4
push dword [ebp - 4]
call fcn.01006a07
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x1009175
push 1
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.01004511
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.0100575d
cmp esi, ebx
jne 0x10040e4
jmp 0x1009175
mov dword [ebp - 0x2c], ebx
jmp 0x10040ef
mov ecx, dword [0x10150c0]
cmp ecx, 0x10150c0
je 0x10090f0
test byte [ecx + 0x1c], 1
je 0x10090f0
cmp byte [ecx + 0x19], 2
jb 0x10090f0
push eax
push 0x100a6f0
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002f89
xor eax, eax
jmp 0x1004119
push dword [ebp - 0xc]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10090f0
push dword [ebp - 0xc]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
call fcn.0100575d
jmp 0x10090f0
mov ecx, dword [ebp - 4]
mov word [ecx + 0xffe], ax
jmp 0x1004071
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x100408f
test byte [eax + 0x1c], 1
je 0x100408f
cmp byte [eax + 0x19], 2
jb 0x100408f
push dword [ebp - 4]
push dword [ebp - 8]
push 0x100a6f0
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100b908
jmp 0x100408f
mov ecx, dword [ebp - 4]
mov word [ecx + 0xffe], ax
jmp 0x10040d9
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x10040e4
test byte [eax + 0x1c], 1
je 0x10040e4
cmp byte [eax + 0x19], 2
jb 0x10040e4
push dword [ebp - 0x30]
push dword [ebp - 8]
push 0x100a6f0
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100b908
jmp 0x10040e4