Function at 0x7cfaf5b8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push edi
xor edi, edi
push 0x2000
push 0x40
mov dword [ebp - 4], edi
mov word [ebp - 0x214], 0x2e
mov word [ebp - 0x212], di
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 8], ebx
je 0x7cfaf8ad
push esi
push 0x1000
push ebx
push 0x7cf3c754
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
cmp word [ebx], di
je 0x7cfaf893
push 0x3d
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
cmp esi, edi
je 0x7cfaf87a
sub eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
sar eax, 1
inc eax
mov word [ebp - 0x214], 0x2e
push eax
lea eax, [ebp - 0x212]
push ebx
push eax
call edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jg 0x7cfaf87a
lea ebx, [esi + 2]
cmp word [ebx], 0x20
jne 0x7cfaf662
inc ebx
inc ebx
jmp 0x7cfaf658
push 0x5e
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x7cfaf87a
sub eax, ebx
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x41c]
push ebx
push eax
call edi
lea eax, [ebp - 0x41c]
push eax
call fcn.7cfaf21f
test eax, eax
je 0x7cfaf87a
lea eax, [ebp - 0x214]
push eax
call fcn.7cfaf33a
test eax, eax
jne 0x7cfaf87a
push ebx
lea eax, [ebp - 0x624]
push 0x104
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.7cfaf40d
test eax, eax
je 0x7cfaf711
lea eax, [ebp - 0x624]
push 0x208
push eax
lea eax, [ebp - 0x214]
mov edi, 0x7cf3a468
push eax
mov esi, reloc.SHLWAPI.dll_ParseURLW
push edi
push esi
call fcn.7cfaf3d8
test eax, eax
jne 0x7cfaf87a
lea eax, [ebp - 0x214]
push ebx
push eax
push edi
push esi
call fcn.7cfaf3aa
jmp 0x7cfaf87a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x214]
push 0x7cf3c748
push eax
call edi
test eax, eax
jne 0x7cfaf76e
lea eax, [ebp - 0x41c]
push 0x7cf3c72c
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call edi
test eax, eax
jne 0x7cfaf76e
push eax
push 0x7cf3c71c
lea eax, [ebp - 0x214]
push 1
push eax
push ParseURLA
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
lea eax, [ebp - 0x624]
push 0x7cf3c71c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x214]
push 0x7cf3c710
push eax
call edi
test eax, eax
jne 0x7cfaf79d
lea eax, [ebp - 0x41c]
push 0x7cf3c6f8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call edi
test eax, eax
je 0x7cfaf87a
lea eax, [ebp - 0x214]
push ebx
push eax
push 0x7cf3a468
push reloc.SHLWAPI.dll_ParseURLW
call fcn.7cfaf3aa
lea eax, [ebp - 0x41c]
push 0x7cf35204
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc esi
lea eax, [ebp - 0x214]
inc esi
mov dword [ebp - 4], eax
mov di, word [esi]
test di, di
je 0x7cfaf804
mov eax, dword [ebp - 4]
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov edx, eax
movzx eax, di
push eax
mov dword [ebp - 0xc], edx
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, dword [ebp - 0xc]
cmp eax, ecx
jne 0x7cfaf804
inc esi
inc esi
add dword [ebp - 4], 2
jmp 0x7cfaf7d1
cmp word [esi], 0
je 0x7cfaf818
lea eax, [ebp - 0x41c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebp - 0x624], 0
je 0x7cfaf836
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x214]
push 0x7cf35574
push eax
call esi
lea eax, [ebp - 0x214]
push 0x7cf33560
push eax
call esi
lea eax, [ebp - 0x41c]
push 0
push eax
push 1
pop esi
lea eax, [ebp - 0x214]
push esi
push eax
push ParseURLA
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
xor edi, edi
cmp word [ebx], di
jne 0x7cfaf60d
mov ebx, dword [ebp - 8]
cmp dword [ebp - 4], edi
je 0x7cfaf8a5
push edi
push edi
push edi
push 0x8000000
call sym.SHELL32.dll_SHChangeNotify
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
pop ebx
leave
ret