Function at 0x1003c95
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 0x1003cd2
lea eax, [ebp - 0x18]
push eax
push edi
push 0xc
push 0x1001530
call fcn.01001ed6
mov esi, eax
test esi, esi
je 0x1003f04
mov eax, dword [esi]
test eax, eax
je 0x1003ef2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov dword [esi + 8], 1
je 0x1003cef
mov dword [ebp - 8], ecx
jmp 0x1003d10
imul eax, eax, 0x14d0
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push 0x10014f4
call fcn.01001ed6
test eax, eax
mov dword [ebp - 8], eax
je 0x1003ef5
xor edx, edx
xor ecx, ecx
cmp dword [esi], edx
mov ebx, 0x14d0
jbe 0x1003d31
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 0x1003d25
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 0x1003d8e
and dword [ebp - 4], eax
cmp dword [esi], eax
jbe 0x1003d85
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x1003d63
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x4c8]
push ecx
push 0x1001660
push eax
push dword [ebp - 0x14]
call fcn.01003c1f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], ebx
cmp eax, dword [esi]
jb 0x1003d60
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.010027ed
test eax, eax
mov dword [ebp - 0x20], eax
je 0x1003e51
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1003e1b
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x1003e15
lea eax, [ebp - 0xc]
push eax
push edi
xor edi, edi
push edi
push 0x1001618
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003e0c
cmp dword [esi], edi
mov dword [ebp - 4], edi
jbe 0x1003e03
mov edi, dword [ebp - 8]
lea eax, [edi + 0x4d0]
push eax
push 0x10015e4
push edi
push dword [ebp - 0xc]
call fcn.01003c1f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, ebx
cmp eax, dword [esi]
jb 0x1003de2
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 0x1003ef2
mov edi, dword [ebp - 8]
push edi
call fcn.01003632
inc dword [ebp - 4]
mov dword [edi + 0x4cc], eax
mov eax, dword [ebp - 4]
add edi, ebx
cmp eax, dword [esi]
jb 0x1003e34
jmp 0x1003ef2
call fcn.01002b11
test eax, eax
je 0x1003ef2
lea eax, [ebp - 0xc]
push eax
push edi
push 0
push 0x1001618
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ef2
lea eax, [ebp - 0x20]
push eax
lea edi, [esi + 8]
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push 0x10015cc
push dword [ebp - 0xc]
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1003ea6
mov dword [edi], 1
and dword [ebp - 4], 0
cmp dword [esi], 0
jbe 0x1003ee9
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x1003eba
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x4cc]
lea ecx, [edi + 4]
push ecx
push 0x10015e4
push eax
push dword [ebp - 0xc]
call fcn.01003c1f
push dword [ebp - 0x10]
call fcn.01003632
inc dword [ebp - 4]
add dword [ebp - 0x10], ebx
mov dword [edi], eax
mov eax, dword [ebp - 4]
cmp eax, dword [esi]
jb 0x1003eb7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
cmp dword [ebp + 8], 0
jne 0x1003f04
push dword [ebp - 0x18]
push esi
call fcn.01001f24
cmp dword [ebp + 0xc], 0
jne 0x1003f1b
cmp dword [ebp - 8], 0
je 0x1003f1b
push dword [ebp - 0x1c]
push dword [ebp - 8]
call fcn.01001f24
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8