Function at 0x1007dcf6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x7c
mov eax, 0x1045b0fe
call fcn.1043abb3
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x84], edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x74], ebx
call fcn.1007dbf5
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.10096882
mov byte [ebp - 4], 2
mov edx, eax
push esi
lea ecx, [ebp - 0x28]
call fcn.1009658d
pop ecx
mov byte [ebp - 4], 4
xor esi, esi
push ebx
inc esi
lea ecx, [ebp - 0x70]
push esi
call fcn.1007a42c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
push ebx
push esi
call fcn.1007a42c
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x78], ebx
call fcn.1007dc8a
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x1007dd6e
mov eax, dword [eax]
lea ecx, [ebp - 0x78]
push ecx
push 0x20219
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne bl
mov byte [ebp - 4], 5
push 0
push esi
lea ecx, [ebp - 0x58]
call fcn.1007a42c
test bl, bl
je 0x1007ddb6
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1008083e
mov dword [ebp - 0x74], esi
mov byte [ebp - 4], 0
push 0
push esi
jmp 0x1007defe
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x88], esi
mov byte [ebp - 4], 7
xor ecx, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x80]
push eax
push ecx
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
push eax
push ecx
push 0x10529958
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
call ebx
test eax, eax
jne 0x1007ded7
cmp dword [ebp - 0x80], eax
je 0x1007ded7
cmp dword [ebp - 0x7c], 1
jne 0x1007ded7
xor ecx, ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x80]
shr eax, 1
push ecx
dec eax
lea ecx, [ebp - 0x40]
push eax
call fcn.1007ea20
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x80]
push ecx
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push str.InstallDir
push dword [ebp - 0x78]
call ebx
test eax, eax
jne 0x1007debe
cmp dword [ebp - 0x7c], 1
jne 0x1007debe
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0x40]
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.1007a2b8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 0x5c
pop edx
cmp dx, word [ecx + eax*2 - 2]
je 0x1007de88
push edx
push 1
lea ecx, [ebp - 0x28]
call fcn.1007fb4e
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1008083e
xor eax, eax
inc eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 7
push ebx
push eax
lea ecx, [ebp - 0x40]
call fcn.1007a42c
mov byte [ebp - 4], 5
test esi, esi
je 0x1007deb6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
push ebx
push 1
jmp 0x1007defe
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1008083e
xor eax, eax
inc eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 7
xor ebx, ebx
jmp 0x1007de9d
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1008083e
xor ebx, ebx
inc ebx
mov dword [ebp - 0x74], ebx
mov byte [ebp - 4], 5
test esi, esi
je 0x1007def7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.1007a42c
mov eax, edi
call fcn.1043ab62
ret