Function at 0x6b4af8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4d
push 0
push 0
dec ecx
jne 0x6b4b00
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x6b4eda
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 8]
call fcn.0040f6a0
push eax
push 0x6b4ee8
push 1
push 0
mov eax, dword [0x876310]
push eax
call sub.ole32.dll_CoCreateInstance
test eax, 0x80000000
jne 0x6b4c77
lea eax, [ebp - 4]
call fcn.0040f6a0
push eax
push 0
push 0
mov eax, dword [0x875db0]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.00538790
jmp 0x6b4c57
cmp dword [ebp - 0x14], 0
je 0x6b4bd5
push 0x6b4f04
lea edx, [ebp - 0x238]
lea eax, [ebp - 0x34]
call fcn.005387fc
push dword [ebp - 0x238]
push 0x6b4f20
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b3b0
lea eax, [ebp - 0x23c]
push eax
mov ecx, 0x80000000
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.005388c0
mov eax, dword [ebp - 0x23c]
mov edx, 0x6b4f30
call fcn.0040b4c0
jne 0x6b4c57
xor eax, eax
push ebp
push 0x6b4bf8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x34]
call fcn.0053888c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6b4c4c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x6b4b77
jmp 0x6b4e82
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0x6b4f34
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x6b4e82
xor eax, eax
push ebp
push 0x6b4e7b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x6b4e41
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0xa
lea edx, [ebp - 0x260]
mov eax, dword [0x875db0]
call fcn.005387fc
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x254], eax
mov byte [ebp - 0x250], 0x11
lea edx, [ebp - 0x25c]
mov ecx, 1
mov eax, 0x6b4f4c
call fcn.004290e4
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040b0c4
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueW
test eax, eax
jne 0x6b4da2
cmp dword [ebp - 0x14], 0
je 0x6b4da2
mov dword [ebp - 0x20], pe_nt_image_headers32
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x20]
call fcn.0040b250
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040b0c4
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.0040b0c4
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x6b4d6d
mov edx, dword [ebp - 0x20]
dec edx
lea eax, [ebp - 0xc]
call fcn.0040b250
jmp 0x6b4d75
lea eax, [ebp - 0xc]
call fcn.0040a558
lea eax, [ebp - 0x264]
push eax
mov ecx, 0x80000000
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.005388c0
mov eax, dword [ebp - 0x264]
mov edx, 0x6b4f30
call fcn.0040b4c0
jne 0x6b4e41
xor eax, eax
push ebp
push 0x6b4def
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x234]
mov ecx, pe_nt_image_headers32
call fcn.0040b178
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x25c]
call fcn.005387a0
lea eax, [ebp - 0x25c]
lea edx, [ebp - 0xc]
call fcn.0053888c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6b4e33
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc dword [ebp - 0x1c]
push 0x200
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegEnumKeyW
test eax, eax
je 0x6b4cb1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b4e82
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b4ee1
lea eax, [ebp - 0x26c]
mov edx, 4
call fcn.0040a5b8
lea eax, [ebp - 0x24c]
mov edx, 2
call fcn.0040a5b8
lea eax, [ebp - 0x23c]
mov edx, 2
call fcn.0040a5b8
lea eax, [ebp - 0xc]
call fcn.0040a558
lea eax, [ebp - 8]
call fcn.0040f6a0
lea eax, [ebp - 4]
call fcn.0040f6a0
pop eax
jmp eax