Function at 0x1001b6d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xad4
mov eax, dword [0x1007070]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xab0], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0xad4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xacc], eax
mov eax, dword [ebp + 0x1c]
push 9
push 0x10012c0
mov dword [ebp - 0xac4], eax
lea eax, [ebp - 0x804]
xor edi, edi
push 0x10012ac
push eax
mov dword [ebp - 0xaac], edi
mov dword [ebp - 0xaa0], edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0xab8]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x804]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1001c13
cmp eax, 0x10000
jae 0x1001c08
cmp eax, edi
jle 0x1001c08
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xaa0], eax
jmp 0x1001fff
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xaa8]
push eax
push edi
lea eax, [ebp - 0xac0]
push eax
push edi
mov esi, 0x1001298
push esi
push dword [ebp - 0xab8]
call ebx
cmp eax, edi
je 0x1001c5e
cmp eax, 0x10000
jae 0x1001c47
cmp eax, edi
jg 0x1001c52
mov dword [ebp - 0xaa0], eax
jmp 0x1001ffe
and eax, 0xffff
or eax, 0x80070000
jmp 0x1001c47
push dword [ebp - 0xaa8]
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 0xaa4], edi
jne 0x1001c97
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x10000
jae 0x1001c90
call esi
test eax, eax
jg 0x1001e69
call esi
jmp 0x1001e75
mov ecx, dword [ebp - 0xaa8]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0xaa4]
lea eax, [ebp - 0xaa8]
push eax
push edi
lea eax, [ebp - 0xac0]
push eax
push 0
push esi
push dword [ebp - 0xab8]
call ebx
test eax, eax
jne 0x1001c77
mov eax, edi
cmp word [eax], 0
je 0x1001d87
mov esi, dword [sym.imp.msvcrt.dll_iswctype]
cmp edi, dword [ebp - 0xaa4]
jbe 0x1001d02
lea ebx, [edi - 4]
jmp 0x1001cf2
dec ebx
dec ebx
xor eax, eax
mov ax, word [ebx]
push 4
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1001cf0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001288
push edi
call ebx
test eax, eax
jne 0x1001d3e
lea ebx, [edi - 4]
jmp 0x1001d1b
dec ebx
dec ebx
xor eax, eax
mov ax, word [ebx]
push 4
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1001d19
add ebx, 2
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1001d72
push 0x1001270
push edi
call ebx
test eax, eax
jne 0x1001d72
lea ebx, [edi - 4]
jmp 0x1001d51
dec ebx
dec ebx
xor eax, eax
mov ax, word [ebx]
push 4
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1001d4f
add ebx, 2
push ebx
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [ebp - 0xab4], eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
jne 0x1001ce3
push dword [ebp - 0xaa4]
call dword [sym.imp.msvcrt.dll_free]
mov eax, 0xc800
push eax
mov dword [ebp - 0xaa8], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xaa4], edi
je 0x1001c77
mov ecx, dword [ebp - 0xaa8]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0xaa8]
push eax
push dword [ebp - 0xaa4]
lea eax, [ebp - 0xac0]
push eax
push ebx
lea eax, [ebp - 0x804]
push eax
push 0x80000004
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1001e33
cmp dword [ebp - 0xaa8], ebx
jbe 0x1001fe8
mov ecx, dword [ebp - 0xaa4]
cmp word [ecx], 0x50
jne 0x1001fe8
cmp word [ecx + 2], 0x45
jne 0x1001fe8
cmp word [ecx + 4], 0x52
jne 0x1001fe8
cmp word [ecx + 6], 0x46
je 0x1001e80
cmp eax, 0xea
jne 0x1001fe8
add dword [ebp - 0xaa8], 0x6400
push dword [ebp - 0xaa8]
push dword [ebp - 0xaa4]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0xaa4], edi
jmp 0x1001db9
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xaa0], eax
jmp 0x1001fe8
mov eax, dword [ebp - 0xaa4]
mov edi, dword [eax + 0x18]
add edi, eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x20]
add eax, edi
xor edx, edx
cmp ecx, ebx
jbe 0x1001eb7
mov esi, dword [ebp - 0xab4]
cmp dword [eax + 4], esi
je 0x1001eae
add eax, 0x28
inc edx
cmp edx, ecx
jb 0x1001e99
jmp 0x1001eb7
mov eax, dword [eax + 0x24]
mov dword [ebp - 0xab4], eax
mov esi, dword [edi + 4]
add esi, edi
cmp dword [edi + 0x28], ebx
mov dword [ebp - 0xabc], ebx
jbe 0x1001fe8
mov eax, dword [esi + 0x10]
push dword [ebp - 0xad4]
add eax, esi
push eax
mov dword [ebp - 0xac8], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001efc
cmp dword [ebp + 0x18], eax
jne 0x1001ef7
mov eax, dword [ebp - 0xaac]
cmp eax, dword [ebp + 0xc]
jae 0x1001efc
xor eax, eax
inc eax
jmp 0x1001efe
xor eax, eax
mov ebx, dword [esi]
add ebx, esi
test eax, eax
je 0x1001fcf
cmp dword [ebp + 0x18], 0
je 0x1001f6c
cmp dword [ebp - 0xac4], 0
mov eax, dword [ebp - 0xab4]
mov eax, dword [ebx + eax]
mov dword [ebp - 0xa9c], eax
je 0x1001f52
lea ecx, [ebp - 0xad0]
push ecx
push dword [ebp - 0xac4]
push eax
call fcn.010018f5
test eax, eax
mov dword [ebp - 0xaa0], eax
jl 0x1001fc9
cmp dword [ebp - 0xad0], 0
je 0x1001fc9
push 1
lea eax, [ebp - 0xa9c]
push eax
call fcn.01001976
test eax, eax
mov dword [ebp - 0xaa0], eax
jl 0x1001fe8
jmp 0x1001fc9
push dword [ebp - 0xac8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0xab0]
inc eax
inc eax
cmp eax, 0x208
ja 0x1001f99
push dword [ebp - 0xac8]
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1001fa4
mov eax, dword [ebp - 0xab0]
and word [eax + 0x10], 0
and dword [esi + 8], 0
mov eax, dword [ebp - 0xab4]
mov eax, dword [ebx + eax]
test eax, eax
mov dword [esi], eax
jne 0x1001fbd
mov dword [esi], 0xfffffffe
add esi, 0x298
mov dword [ebp - 0xab0], esi
inc dword [ebp - 0xaac]
mov esi, dword [ebx]
add esi, ebx
inc dword [ebp - 0xabc]
mov eax, dword [ebp - 0xabc]
cmp eax, dword [edi + 0x28]
jb 0x1001ecb
cmp dword [ebp - 0xaa4], 0
je 0x1001ffe
push dword [ebp - 0xaa4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ebx
push dword [ebp - 0xab8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 0x80000004
call esi
mov eax, dword [ebp - 0xaac]
mov ecx, dword [ebp - 0xacc]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xaa0]
pop edi
pop esi
call fcn.010051f3
leave
ret 0x18