Function at 0x4ad7e7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x7c
mov eax, 0x59fbcb
call fcn.00576e00
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x84], edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x74], ebx
call fcn.004ad6e6
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004df0f8
mov byte [ebp - 4], 2
mov edx, eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004def21
pop ecx
mov byte [ebp - 4], 4
xor esi, esi
push ebx
inc esi
lea ecx, [ebp - 0x70]
push esi
call fcn.0047997f
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
push ebx
push esi
call fcn.0047997f
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x78], ebx
call fcn.004ad77b
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x4ad85f
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.0047997f
test bl, bl
je 0x4ad8a7
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00479045
mov dword [ebp - 0x74], esi
mov byte [ebp - 4], 0
push 0
push esi
jmp 0x4ad9ed
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 0x605ea0
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
call ebx
test eax, eax
jne 0x4ad9c6
cmp dword [ebp - 0x80], eax
je 0x4ad9c6
cmp dword [ebp - 0x7c], 1
jne 0x4ad9c6
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.00485afc
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 0x4ad9ad
cmp dword [ebp - 0x7c], 1
jne 0x4ad9ad
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0x40]
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.0047980b
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 0x4ad977
push edx
lea ecx, [ebp - 0x28]
call fcn.004a6410
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00479045
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.0047997f
mov byte [ebp - 4], 5
test esi, esi
je 0x4ad9a5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
push ebx
push 1
jmp 0x4ad9ed
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00479045
xor eax, eax
inc eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 7
xor ebx, ebx
jmp 0x4ad98c
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00479045
xor ebx, ebx
inc ebx
mov dword [ebp - 0x74], ebx
mov byte [ebp - 4], 5
test esi, esi
je 0x4ad9e6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.0047997f
mov eax, edi
call fcn.00576daf
ret