Function at 0x1003869
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov edi, 0xf001f
jne 0x10038a4
lea eax, [ebp - 0x18]
push eax
push edi
push 0xc
push 0x1001520
call fcn.01001e16
mov esi, eax
test esi, esi
je 0x1003ad6
mov eax, dword [esi]
test eax, eax
je 0x1003ac4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov dword [esi + 8], 1
je 0x10038c1
mov dword [ebp - 8], ecx
jmp 0x10038e2
imul eax, eax, 0x14d0
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push 0x10014e4
call fcn.01001e16
test eax, eax
mov dword [ebp - 8], eax
je 0x1003ac7
xor edx, edx
xor ecx, ecx
cmp dword [esi], edx
mov ebx, 0x14d0
jbe 0x1003903
mov eax, dword [ebp - 8]
add eax, 0x4d0
mov dword [eax - 8], edx
mov dword [eax], edx
inc ecx
add eax, ebx
cmp ecx, dword [esi]
jb 0x10038f7
lea eax, [ebp - 0x14]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001338
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003960
and dword [ebp - 4], eax
cmp dword [esi], eax
jbe 0x1003957
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x1003935
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x4c8]
push ecx
push 0x1001650
push eax
push dword [ebp - 0x14]
call fcn.010037fa
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], ebx
cmp eax, dword [esi]
jb 0x1003932
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.01002645
test eax, eax
mov dword [ebp - 0x20], eax
je 0x1003a23
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x10039ed
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x10039e7
lea eax, [ebp - 0xc]
push eax
push edi
xor edi, edi
push edi
push 0x1001608
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10039de
cmp dword [esi], edi
mov dword [ebp - 4], edi
jbe 0x10039d5
mov edi, dword [ebp - 8]
lea eax, [edi + 0x4d0]
push eax
push 0x10015d4
push edi
push dword [ebp - 0xc]
call fcn.010037fa
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, ebx
cmp eax, dword [esi]
jb 0x10039b4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
cmp dword [esi], 0
jbe 0x1003ac4
mov edi, dword [ebp - 8]
push edi
call fcn.0100329a
inc dword [ebp - 4]
mov dword [edi + 0x4cc], eax
mov eax, dword [ebp - 4]
add edi, ebx
cmp eax, dword [esi]
jb 0x1003a06
jmp 0x1003ac4
call fcn.010028e9
test eax, eax
je 0x1003ac4
lea eax, [ebp - 0xc]
push eax
push edi
push 0
push 0x1001608
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ac4
lea eax, [ebp - 0x20]
push eax
lea edi, [esi + 8]
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push 0x10015bc
push dword [ebp - 0xc]
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1003a78
mov dword [edi], 1
and dword [ebp - 4], 0
cmp dword [esi], 0
jbe 0x1003abb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x1003a8c
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x4cc]
lea ecx, [edi + 4]
push ecx
push 0x10015d4
push eax
push dword [ebp - 0xc]
call fcn.010037fa
push dword [ebp - 0x10]
call fcn.0100329a
inc dword [ebp - 4]
add dword [ebp - 0x10], ebx
mov dword [edi], eax
mov eax, dword [ebp - 4]
cmp eax, dword [esi]
jb 0x1003a89
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
cmp dword [ebp + 8], 0
jne 0x1003ad6
push dword [ebp - 0x18]
push esi
call fcn.01001e5d
cmp dword [ebp + 0xc], 0
jne 0x1003aed
cmp dword [ebp - 8], 0
je 0x1003aed
push dword [ebp - 0x1c]
push dword [ebp - 8]
call fcn.01001e5d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8