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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x590
push ebx
push esi
push edi
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x7cf5e5d9
push 4
push 0x80
call dword [sym.imp.COMCTL32.dll_DSA_Create]
cmp eax, ebx
mov dword [esi], eax
je 0x7cf5e415
lea eax, [esi + 4]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x7cf5e415
push dword [esi]
call dword [sym.imp.COMCTL32.dll_DSA_Destroy]
mov dword [esi], ebx
cmp dword [esi], ebx
je 0x7cf5e5d0
cmp dword [ebp + 0x10], ebx
mov edi, 0x208
mov ecx, edi
lea eax, [ebp - 0x590]
mov word [ebp - 0x590], bx
je 0x7cf5e470
push dword [ebp + 0x10]
lea eax, [ebp - 0x590]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x590]
push 0x7cf3c6f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x590]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, edi
sub ecx, eax
lea eax, [ebp + eax*2 - 0x590]
add ecx, ecx
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
cmp word [ebp - 0x590], bx
jne 0x7cf5e4a2
cmp dword [ebp + 0x14], ebx
je 0x7cf5e4a2
push dword [ebp + 0x14]
lea eax, [ebp - 0x590]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edi, [ebp - 0x590]
mov ax, word [edi]
cmp ax, 0x20
je 0x7cf5e4b7
cmp ax, 0x2c
jne 0x7cf5e4bb
inc edi
inc edi
jmp 0x7cf5e4a8
cmp word [edi], bx
je 0x7cf5e52f
push 0x7cf4c2b8
push edi
call dword [sym.imp.SHLWAPI.dll_StrCSpnW]
lea ebx, [edi + eax*2]
xor eax, eax
cmp word [ebx], ax
je 0x7cf5e4db
mov word [ebx], ax
inc ebx
inc ebx
lea ecx, [ebp + 0xc]
push ecx
push 0x20019
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7cf5e52b
push eax
push dword [ebp + 0xc]
call fcn.7d041367
test eax, eax
jne 0x7cf5e522
lea eax, [ebp - 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x100]
push eax
push ParseURLA
push dword [esi]
call dword [sym.imp.COMCTL32.dll_DSA_InsertItem]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
xor ebx, ebx
cmp edi, ebx
je 0x7cf5e53c
cmp word [edi], bx
jne 0x7cf5e4a8
cmp dword [ebp + 0x18], ebx
jne 0x7cf5e5d9
lea eax, [ebp - 0x80]
push 0x40
push eax
push ebx
push dword [esi + 4]
mov dword [ebp + 0x10], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebx
test eax, eax
jne 0x7cf5e5d9
mov eax, dword [esi]
xor edi, edi
cmp dword [eax], edi
jle 0x7cf5e584
push edi
push eax
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x7cf5e584
mov eax, dword [esi]
inc edi
cmp edi, dword [eax]
jl 0x7cf5e566
mov eax, dword [esi]
cmp edi, dword [eax]
jne 0x7cf5e5bf
lea eax, [ebp - 0x80]
push eax
push dword [esi + 4]
call fcn.7d041367
test eax, eax
jne 0x7cf5e5bf
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x100]
push eax
push ParseURLA
push dword [esi]
call dword [sym.imp.COMCTL32.dll_DSA_InsertItem]
inc dword [ebp + 0x10]
lea eax, [ebp - 0x80]
push 0x40
push eax
push dword [ebp + 0x10]
push dword [esi + 4]
jmp 0x7cf5e558
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14