Function at 0x7cfbfdc3
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x10]
mov edi, 0xf003f
xor ebx, ebx
push eax
push edi
push ebx
push 0x7cf3dde0
push reloc.SHLWAPI.dll_ParseURLA
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x7cfc0134
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
push 0x7cf3e150
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x7cfc0134
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push 0x7cf3e130
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x7cfc0134
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x7cf3e11c
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x7cfc0134
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
push 0x7cf3c5e8
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x7cfc0134
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
push ebx
push ebx
push 0x7cf3e108
push dword [ebp - 8]
call esi
test eax, eax
je 0x7cfc0134
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], eax
je 0x7cfc0134
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push 0x7cf3e0f8
mov dword [ebp - 0x34], 0x100
push dword [ebp - 8]
call esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, 0x7cf34808
test eax, eax
jne 0x7cfbff89
cmp word [ebp - 0x17c], bx
lea eax, [ebp - 0x17c]
je 0x7cfbff89
jmp 0x7cfbfeeb
mov eax, dword [ebp - 0x2c]
mov cx, word [eax]
inc eax
inc eax
mov word [ebp - 0x58], cx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x58]
push ebx
push eax
push dword [ebp - 8]
mov word [ebp - 0x56], bx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7cfbff7d
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x7cfbff7d
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7cfbff7d
movzx eax, word [ebp - 0x58]
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x18], 4
add eax, 0xffffff9f
mov dword [ecx], eax
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call esi
add esp, 0xc
inc dword [ebp - 0x14]
lea eax, [ebp - 0x58]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
cmp word [eax], bx
jne 0x7cfbfee8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x100
push eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push 0x7cf3e0f8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7cfc0106
lea eax, [ebp - 0x384]
mov byte [ebp - 1], bl
push eax
push ebx
push ebx
push 0x10
push ebx
call sym.SHELL32.dll_SHGetFolderPathW
cmp word [ebp - 0x17c], bx
lea eax, [ebp - 0x17c]
je 0x7cfc0106
jmp 0x7cfbffe2
mov eax, dword [ebp - 0x2c]
mov cx, word [eax]
inc eax
inc eax
mov word [ebp - 0x58], cx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x58]
push ebx
push eax
push dword [ebp - 0x20]
mov word [ebp - 0x56], bx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7cfc00fa
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x7cfc00fa
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7cfc00fa
lea eax, [ebp - 0x58c]
push eax
push dword [ebp - 0xc]
call sym.SHELL32.dll_SHGetPathFromIDListW
test eax, eax
je 0x7cfc0095
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x58c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7cfc0095
cmp byte [ebp - 1], bl
jne 0x7cfc00f1
mov eax, dword [ebp - 0xc]
cmp word [eax], bx
movzx eax, word [ebp - 0x58]
sete byte [ebp - 1]
sub eax, 0x61
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call esi
add esp, 0xc
push 0x7cf37604
jmp 0x7cfc00e2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x18], 4
inc dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, ecx
push eax
lea eax, [ebp - 0x7c]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x7c]
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x30]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x7cfc00f1
movzx eax, word [ebp - 0x58]
sub eax, 0x61
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x24]
call fcn.7cfbfc9d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
cmp word [eax], bx
jne 0x7cfbffdf
mov eax, dword [ebp - 0x18]
or dword [eax], 0xffffffff
mov eax, dword [ebp - 0x14]
lea eax, [eax*4 + 4]
push eax
push dword [ebp - 0x38]
push 3
push ebx
push 0x7cf3e108
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x28], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x7cfc0144
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 8], ebx
je 0x7cfc014e
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x24], ebx
je 0x7cfc0158
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x20], ebx
je 0x7cfc0162
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x10], ebx
je 0x7cfc016c
push dword [ebp - 0x10]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret