Function at 0xf7a1900
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0xf7a191c
test dword [edi - 4], 0xfffffffe
ja 0xf7a1923
push 5
call fcn.0f72689c
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0xf7a1933
test dword [ebx - 4], 0xfffffffe
ja 0xf7a193a
push 5
call fcn.0f72689c
xor esi, esi
push 0x104
mov word [ebp - 0x48], si
lea eax, [ebp - 0x364]
mov dword [ebp - 0x28], 0x104
push eax
push ebx
push edi
call fcn.0f7a12ab
test eax, eax
je 0xf7a1964
push eax
call fcn.0f72689c
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x364]
push eax
push ecx
push SysReAllocStringLen
call fcn.0f722af7
test eax, eax
jne 0xf7a1ba2
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x18]
push ecx
push eax
push edx
lea eax, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x15c]
push ecx
push ecx
push 0
push eax
push edx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0xf7a19d6
mov ebx, 5
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0xf7a19ca
test ebx, ebx
jne 0xf7a19ca
mov ebx, 5
test esi, esi
je 0xf7a19f2
push esi
call fcn.0f726e12
jmp 0xf7a19f2
cmp dword [ebp - 0x24], 0
ja 0xf7a1a0c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0xf7a1ba2
mov ebx, 5
lea esi, [ebp - 0x48]
mov edi, 0xf7ae740
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0xf7a1ba2
push ebx
call fcn.0f72689c
mov eax, dword [ebp - 0x24]
xor edi, edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], 2
push eax
push 2
push 8
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0xf7a1a40
mov ebx, 5
jmp 0xf7a19b4
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov word [ebp - 0x48], 0x2008
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
call fcn.0f726e61
mov esi, eax
test esi, esi
jne 0xf7a1a6a
mov ebx, 7
jmp 0xf7a19b4
xor edi, edi
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push 0
mov dword [ebp - 8], eax
push edx
lea eax, [ebp - 8]
push 0
push eax
push esi
push edi
push dword [ebp - 0xc]
call fcn.0f789762
test eax, eax
jne 0xf7a1b40
cmp dword [ebp - 0x1c], 1
jne 0xf7a1b6e
push esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
test ebx, ebx
je 0xf7a1b89
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 4], 0
jl 0xf7a1b93
mov eax, dword [ebp - 0x10]
dec eax
shr eax, 1
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0xf7a1b78
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 8], eax
push ebx
lea eax, [ebp - 8]
push 0
push 0
push eax
push esi
push edi
push dword [ebp - 0xc]
call fcn.0f789762
test eax, eax
jne 0xf7a1b82
push ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 4], 0
jl 0xf7a1b93
inc edi
jmp 0xf7a1a6c
cmp eax, 0x103
jne 0xf7a1b64
push esi
call fcn.0f726e12
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0xf7a1ba2
mov ebx, 5
jmp 0xf7a19f2
mov ebx, 5
jmp 0xf7a19b4
mov ebx, 5
jmp 0xf7a19b4
mov ebx, 7
jmp 0xf7a19b4
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, 7
jmp 0xf7a19b4
push dword [ebp - 4]
call fcn.0f78704f
mov ebx, eax
jmp 0xf7a19b4
lea esi, [ebp - 0x48]
mov eax, dword [ebp + 8]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc