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

Disassembly:
sub esp, 0xc20
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0xc1c], eax
push esi
mov esi, dword [esp + 0xc28]
push edi
mov edi, dword [esp + 0xc30]
push 0xf
push str.SoftwareWinRAR
push edi
mov dword [esp + 0x2c], edi
call fcn.004c11b0
test eax, eax
jne 0x4cfc6a
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cfc6a
push ebx
push 0x100000
call fcn.00538da8
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4cfa43
mov ecx, 0x5d281c
call fcn.004875a0
xor al, al
pop ebx
mov ecx, dword [esp + 0xc24]
pop edi
pop esi
xor ecx, esp
call fcn.0052f708
add esp, 0xc20
ret 8
push ebp
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0x200
push eax
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0x100000
push eax
xor ebp, ebp
lea eax, [esp + 0x1c]
push ebp
push eax
lea eax, [esp + 0x40]
push eax
push ebp
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4cfbc8
lea eax, [edi + 0x1e]
mov dword [esp + 0x20], eax
mov edi, eax
cmp word [edi], 0x5c
jne 0x4cfa91
add edi, 2
mov eax, dword [esp + 0x14]
cmp eax, 3
jne 0x4cfaaf
push dword [esp + 0x1c]
lea eax, [esp + 0x30]
push ebx
push eax
push edi
push esi
call fcn.004ce080
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x4cfac8
push 0
push dword [ebx]
lea eax, [esp + 0x34]
push eax
push edi
push esi
call fcn.004ce1b0
mov eax, dword [esp + 0x14]
cmp eax, 0xb
jne 0x4cfae2
push dword [ebx + 4]
lea eax, [esp + 0x30]
push dword [ebx]
push eax
push edi
push esi
call fcn.004ce1b0
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x4cfb89
call fcn.004cdb60
cmp byte [0x5debc9], 0
je 0x4cfb89
test esi, esi
je 0x4cfb11
cmp esi, 0x80000001
je 0x4cfb11
cmp esi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x4cfb89
cmp word [edi], 0x5c
je 0x4cfb89
test esi, esi
jne 0x4cfb22
mov eax, 0x557718
jmp 0x4cfb34
mov eax, 0x567cb0
cmp esi, 0x80000001
je 0x4cfb34
mov eax, str.HKLM_
push 0x400
push eax
lea eax, [esp + 0x434]
push eax
call fcn.004bd090
push 0x400
push edi
lea eax, [esp + 0x434]
push eax
call fcn.004bd030
push 0x400
lea eax, [esp + 0x430]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x438]
push eax
call fcn.004a25d0
push 1
push ebx
lea eax, [esp + 0x434]
push eax
call fcn.004cd1a0
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0x200
push eax
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0x100000
push eax
push 0
lea eax, [esp + 0x20]
inc ebp
push eax
lea eax, [esp + 0x40]
push eax
push ebp
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
mov eax, dword [esp + 0x20]
je 0x4cfa86
push ebx
call fcn.00537b6f
add esp, 4
mov dword [esp + 0x10], 0xc8
xor edi, edi
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
pop ebp
test eax, eax
jne 0x4cfc54
mov ebx, dword [esp + 0x24]
push 0x200
lea eax, [esp + 0x42c]
push eax
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.004a25d0
lea eax, [esp + 0x428]
push eax
push esi
call fcn.004cf9b0
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 0xc8
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
inc edi
push eax
lea eax, [esp + 0x3c]
push eax
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4cfc01
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4cfc63
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x4cfa29
xor al, al
jmp 0x4cfa2a