Function at 0x40cfb0
Capabilities:
Delete registry key
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x450358
push eax
mov dword fs:[0], esp
sub esp, 0xa1c
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x40d0dc
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0x4582a8
push SysReAllocStringLen
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 5
jne 0x40d05c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x224]
push eax
mov dword [ebp + 8], 0x202
call edi
push 0x4582a8
push str.CLASSES_ROOT
push str._s_s
lea eax, [ebp - 0xa24]
push 0x800
push eax
call fcn.0043d354
add esp, 0x14
lea eax, [ebp - 0x224]
push 0xf003f
push eax
push 2
push ecx
lea eax, [ebp - 0xa24]
push eax
call fcn.00413900
test eax, eax
je 0x40d05c
push 0x4582a8
push SysReAllocStringLen
call esi
push str.bfpkgFile
push SysReAllocStringLen
call esi
cmp eax, 5
jne 0x40d214
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x224]
push eax
mov dword [ebp + 8], 0x202
call edi
push str.bfpkgFile
push str.CLASSES_ROOT
push str._s_s
lea eax, [ebp - 0xa24]
push 0x800
push eax
call fcn.0043d354
add esp, 0x14
lea eax, [ebp - 0x224]
push 0xf003f
push eax
push 2
push ecx
lea eax, [ebp - 0xa24]
push eax
call fcn.00413900
test eax, eax
je 0x40d214
push str.bfpkgFile
push SysReAllocStringLen
call esi
jmp 0x40d214
push str.bfpkgFile
push 0
mov edx, 0x4582a8
mov ecx, SysReAllocStringLen
call fcn.00413020
mov ecx, esi
call fcn.0040d870
mov edx, dword [section..data]
mov ecx, section..data
mov esi, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push str.BFAppInstall.exe
push esi
lea eax, [ebp + 8]
push str._s_s
push eax
mov dword [ebp - 4], 0
call fcn.0040a530
mov esi, dword [ebp + 8]
add esp, 0x10
lea ebx, [esi - 0x10]
mov ecx, ebx
call fcn.00401980
add eax, 0x10
mov dword [ebp - 0x18], eax
push 5
push str.__128
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040a3e0
mov edi, dword [ebp - 0x18]
push edi
push 0
mov edx, str.bfpkgFileDefaultIcon
mov ecx, SysReAllocStringLen
call fcn.00413020
push str.open
push 0
mov edx, str.bfpkgFileShell
mov ecx, SysReAllocStringLen
call fcn.00413020
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push str.__s___ShellRun___1_
push eax
mov byte [ebp - 4], 2
call fcn.0040a530
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov edx, str.bfpkgFileShellOpenCommand
push esi
push 0
mov ecx, SysReAllocStringLen
call fcn.00413020
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d1dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d1f9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40d214
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4