Function at 0x1003969
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
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 0x10039a6
lea eax, [ebp - 0x18]
push eax
push edi
push 0xc
push 0x1001518
call fcn.01001ec5
mov esi, eax
test esi, esi
je 0x1003bd5
cmp dword [esi], 0
je 0x1003bc3
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [esi + 8], 1
je 0x10039c2
mov dword [ebp - 8], eax
jmp 0x10039e1
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x14d00
push 0x10014dc
call fcn.01001ec5
test eax, eax
mov dword [ebp - 8], eax
je 0x1003bc6
xor edx, edx
xor ecx, ecx
cmp dword [esi], edx
mov ebx, 0x14d0
jbe 0x1003a02
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 0x10039f6
lea eax, [ebp - 0x14]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001348
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003a5f
and dword [ebp - 4], eax
cmp dword [esi], eax
jbe 0x1003a56
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x1003a34
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x4c8]
push ecx
push 0x1001648
push eax
push dword [ebp - 0x14]
call fcn.010038f3
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], ebx
cmp eax, dword [esi]
jb 0x1003a31
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.010026f0
test eax, eax
mov dword [ebp - 0x20], eax
je 0x1003b22
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1003aec
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x1003ae6
lea eax, [ebp - 0xc]
push eax
push edi
xor edi, edi
push edi
push 0x1001600
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003add
cmp dword [esi], edi
mov dword [ebp - 4], edi
jbe 0x1003ad4
mov edi, dword [ebp - 8]
lea eax, [edi + 0x4d0]
push eax
push 0x10015cc
push edi
push dword [ebp - 0xc]
call fcn.010038f3
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, ebx
cmp eax, dword [esi]
jb 0x1003ab3
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 0x1003bc3
mov edi, dword [ebp - 8]
push edi
call fcn.010032e9
inc dword [ebp - 4]
mov dword [edi + 0x4cc], eax
mov eax, dword [ebp - 4]
add edi, ebx
cmp eax, dword [esi]
jb 0x1003b05
jmp 0x1003bc3
call fcn.01002a2d
test eax, eax
je 0x1003bc3
lea eax, [ebp - 0xc]
push eax
push edi
push 0
push 0x1001600
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003bc3
lea eax, [ebp - 0x20]
push eax
lea edi, [esi + 8]
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push 0x10015b4
push dword [ebp - 0xc]
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1003b77
mov dword [edi], 1
and dword [ebp - 4], 0
cmp dword [esi], 0
jbe 0x1003bba
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x1003b8b
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x4cc]
lea ecx, [edi + 4]
push ecx
push 0x10015cc
push eax
push dword [ebp - 0xc]
call fcn.010038f3
push dword [ebp - 0x10]
call fcn.010032e9
inc dword [ebp - 4]
add dword [ebp - 0x10], ebx
mov dword [edi], eax
mov eax, dword [ebp - 4]
cmp eax, dword [esi]
jb 0x1003b88
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
cmp dword [ebp + 8], 0
jne 0x1003bd5
push dword [ebp - 0x18]
push esi
call fcn.01001f13
cmp dword [ebp + 0xc], 0
jne 0x1003bec
cmp dword [ebp - 8], 0
je 0x1003bec
push dword [ebp - 0x1c]
push dword [ebp - 8]
call fcn.01001f13
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8