Function at 0x7cfa704a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
and dword [ebp - 0x18], 0
mov esi, 0x104
push edi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, esi
lea ecx, [ebp + eax*2 - 0x45c]
sub ebx, eax
and dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ebx
jmp 0x7cfa70b1
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push 0
push eax
push edi
mov dword [ebp - 4], 0x208
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x7cfa7328
push ebx
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
cmp word [edi], 0x2a
je 0x7cfa7113
lea eax, [ebp - 0x45c]
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsAndAttributesW]
test eax, eax
je 0x7cfa731b
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x254]
push 0x7cf37ecc
push eax
call ebx
push esi
lea eax, [ebp - 0x254]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
push eax
call edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x254]
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
test eax, eax
jne 0x7cfa71f5
cmp dword [ebp - 4], 1
jb 0x7cfa71f5
lea eax, [ebp - 0x254]
push 0x4c
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x7cfa7198
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x254]
push 0x59
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x7cfa71b2
mov dword [ebp - 0xc], 2
lea eax, [ebp - 0x254]
push 0x4e
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x7cfa71d5
push 0x3f
call fcn.7cf5b11e
or eax, 1
je 0x7cfa731b
lea eax, [ebp - 0x254]
push 0x46
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x7cfa71f5
call fcn.7cfa6d7f
test eax, eax
je 0x7cfa731b
lea eax, [ebp - 0x254]
push 0x7cf38bc4
push eax
call ebx
push esi
lea eax, [ebp - 0x254]
push dword [ebp + 0x18]
push eax
call edi
push 8
lea eax, [ebp - 4]
pop ebx
xor edi, edi
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x254]
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
test eax, eax
jne 0x7cfa72dc
cmp dword [ebp - 4], ebx
jne 0x7cfa72dc
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 8], edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
call fcn.7cf5915c
mov edi, eax
test edi, edi
je 0x7cfa72c0
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x7cfa72c0
and dword [ebp - 0x24], 0
push eax
push edi
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.7cf593ec
test eax, eax
je 0x7cfa72b7
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x7cf35574
push dword [ebp - 0x20]
call fcn.7cf59427
test eax, eax
je 0x7cfa72b7
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x14], ebx
jb 0x7cfa72cf
jne 0x7cfa72d6
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x38]
ja 0x7cfa72d6
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x7cfa731b
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
dec eax
je 0x7cfa730d
dec eax
je 0x7cfa72fd
mov dword [ecx + 0xc], 0x25a0
jmp 0x7cfa7314
mov dword [ecx + 0x10], 1
mov dword [ecx + 0xc], 0x25a2
jmp 0x7cfa7314
mov dword [ecx + 0xc], 0x25a1
mov dword [ebp - 0x18], 1
inc dword [ebp - 0x10]
cmp dword [ebp - 0x18], 0
je 0x7cfa70ae
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18