Function at 0x49d948
Capabilities:
Delete registry key
Get common file path
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x90
push 0
push 0
dec ecx
jne 0x49d950
push ebx
push esi
push edi
lea esi, [ebp - 0x2c]
xor eax, eax
push ebp
push 0x49e238
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
push 0x400
lea eax, [ebp - 0x42c]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x42c]
call fcn.004097b0
lea eax, [ebp - 0x430]
mov edx, dword [ebp + 8]
call fcn.00404784
mov eax, dword [ebp - 0x430]
lea edx, [ebp - 0x10]
call fcn.00409490
lea eax, [ebp - 0x18]
mov ecx, 0x49e254
mov edx, dword [ebp - 0x10]
call fcn.00404898
lea eax, [ebp - 0x1c]
mov ecx, 0x49e26c
mov edx, dword [ebp - 0x10]
call fcn.00404898
lea eax, [ebp - 0x434]
call fcn.00465ce8
lea eax, [ebp - 0x434]
mov edx, 0x49e288
call fcn.00404854
mov ecx, dword [ebp - 0x434]
mov dl, 1
mov eax, dword [0x424cbc]
call fcn.00424d6c
mov ebx, eax
push 1
mov ecx, 0x49e29c
mov edx, 0x49e2b4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebp - 8], eax
push 1
mov ecx, 0x49e2c4
mov edx, 0x49e2b4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x49e2dc
mov edx, 0x49e2b4
mov eax, ebx
mov edi, dword [eax]
call dword [edi]
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x49e2f8
mov edx, 0x49e2b4
mov eax, ebx
mov edi, dword [eax]
call dword [edi]
mov eax, dword [ebp - 0x20]
call fcn.004093dc
test al, al
jne 0x49da6c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.0040462c
mov eax, dword [ebp - 0x24]
call fcn.004093dc
test al, al
jne 0x49da83
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
call fcn.0040462c
push 1
mov ecx, 0x49e314
mov edx, 0x49e2b4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
mov byte [ebp - 0x25], al
push 1
mov ecx, 0x49e330
mov edx, 0x49e2b4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
mov byte [ebp - 0x26], al
push 1
mov ecx, 0x49e348
mov edx, 0x49e2b4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
mov byte [ebp - 0x27], al
mov eax, ebx
call fcn.0040375c
cmp byte [ebp - 0x26], 0
je 0x49dbdd
push esi
push 0x49e358
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e388
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e3a0
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e3e4
lea eax, [ebp - 0x43c]
mov edx, dword [ebp + 8]
call fcn.00404dd8
push dword [ebp - 0x43c]
push 0x49e3e4
lea eax, [ebp - 0x438]
mov edx, 3
call fcn.00404fbc
mov eax, dword [ebp - 0x438]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e3e8
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e388
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e410
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e3e4
lea eax, [ebp - 0x444]
mov edx, dword [ebp + 8]
call fcn.00404dd8
push dword [ebp - 0x444]
push 0x49e3e4
lea eax, [ebp - 0x440]
mov edx, 3
call fcn.00404fbc
mov eax, dword [ebp - 0x440]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
jmp 0x49dc6d
push esi
push 0xf003f
push 0
push 0x49e358
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
push 0x49e448
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegDeleteKeyW
push esi
push 0xf003f
push 0
push 0x49e458
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
push 0x49e474
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegDeleteKeyW
push esi
push 0xf003f
push 0
push 0x49e3e8
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
push 0x49e448
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegDeleteKeyW
push esi
push 0xf003f
push 0
push 0x49e48c
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
push 0x49e474
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegDeleteKeyW
cmp byte [ebp - 0x25], 0
je 0x49dd7e
push esi
push 0x49e49c
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e4cc
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e4dc
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e3e4
lea eax, [ebp - 0x44c]
mov edx, dword [ebp + 8]
call fcn.00404dd8
push dword [ebp - 0x44c]
push 0x49e520
lea eax, [ebp - 0x448]
mov edx, 3
call fcn.00404fbc
mov eax, dword [ebp - 0x448]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e530
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e554
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e564
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e3e4
lea eax, [ebp - 0x454]
mov edx, dword [ebp + 8]
call fcn.00404dd8
push dword [ebp - 0x454]
push 0x49e520
lea eax, [ebp - 0x450]
mov edx, 3
call fcn.00404fbc
mov eax, dword [ebp - 0x450]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
jmp 0x49de0e
push esi
push 0xf003f
push 0
push 0x49e49c
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
push 0x49e448
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegDeleteKeyW
push esi
push 0xf003f
push 0
push 0x49e458
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
push 0x49e598
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegDeleteKeyW
push esi
push 0xf003f
push 0
push 0x49e530
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
push 0x49e448
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegDeleteKeyW
push esi
push 0xf003f
push 0
push 0x49e48c
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
push 0x49e5b0
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegDeleteKeyW
push esi
push 0x49e5c4
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e5d8
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e5d8
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
cmp byte [ebp - 0x27], 0
je 0x49de62
push 0
push 0x49e5f8
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
jmp 0x49de78
push 0
push 0x49e610
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push 0
push 0
push 1
push 0
push 0x49e614
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueExW
push esi
push 0x49e630
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
mov eax, dword [ebp - 8]
sub eax, 1
jb 0x49deac
je 0x49dec7
dec eax
je 0x49def4
jmp 0x49df21
push 0
push 0x49e668
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
jmp 0x49df5c
push 0
lea eax, [ebp - 0x458]
mov edx, dword [ebp - 0x18]
call fcn.00404e60
mov eax, dword [ebp - 0x458]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
jmp 0x49df5c
push 0
lea eax, [ebp - 0x45c]
mov edx, dword [ebp - 0x20]
call fcn.00404e60
mov eax, dword [ebp - 0x45c]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
jmp 0x49df5c
push 0
lea eax, [ebp - 0x460]
mov edx, dword [ebp + 8]
call fcn.00404dd8
lea eax, [ebp - 0x460]
mov edx, 0x49e674
call fcn.00404ef8
mov eax, dword [ebp - 0x460]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e67c
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e6b4
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e6c4
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e3e4
lea eax, [ebp - 0x468]
mov edx, dword [ebp + 8]
call fcn.00404dd8
push dword [ebp - 0x468]
push 0x49e520
lea eax, [ebp - 0x464]
mov edx, 3
call fcn.00404fbc
mov eax, dword [ebp - 0x464]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e70c
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e724
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e724
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
cmp byte [ebp - 0x27], 0
je 0x49e031
push 0
push 0x49e748
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
jmp 0x49e047
push 0
push 0x49e610
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push 0
push 0
push 1
push 0
push 0x49e614
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueExW
push esi
push 0x49e760
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
mov eax, dword [ebp - 0xc]
sub eax, 1
jb 0x49e07e
je 0x49e0be
dec eax
je 0x49e0eb
jmp 0x49e118
push 0
lea eax, [ebp - 0x46c]
mov edx, dword [ebp - 0x14]
call fcn.00404e60
lea eax, [ebp - 0x46c]
mov edx, 0x49e7a0
call fcn.00404ef8
mov eax, dword [ebp - 0x46c]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
jmp 0x49e153
push 0
lea eax, [ebp - 0x470]
mov edx, dword [ebp - 0x1c]
call fcn.00404e60
mov eax, dword [ebp - 0x470]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
jmp 0x49e153
push 0
lea eax, [ebp - 0x474]
mov edx, dword [ebp - 0x24]
call fcn.00404e60
mov eax, dword [ebp - 0x474]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
jmp 0x49e153
push 0
lea eax, [ebp - 0x478]
mov edx, dword [ebp + 8]
call fcn.00404dd8
lea eax, [ebp - 0x478]
mov edx, 0x49e7c4
call fcn.00404ef8
mov eax, dword [ebp - 0x478]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e7cc
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e808
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
push esi
push 0x49e818
push 0x80000000
call sub.advapi32.dll_RegCreateKeyW
push 0
push 0x49e3e4
lea eax, [ebp - 0x480]
mov edx, dword [ebp + 8]
call fcn.00404dd8
push dword [ebp - 0x480]
push 0x49e520
lea eax, [ebp - 0x47c]
mov edx, 3
call fcn.00404fbc
mov eax, dword [ebp - 0x47c]
call fcn.00404edc
push eax
push 1
push 0x49e39c
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegSetValueW
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegFlushKey
cmp byte [ebp + 0xc], 0
je 0x49e1fd
push 0
push 0
push 0x1000
push 0x8000000
call sub.shell32.dll_SHChangeNotify
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e23f
lea eax, [ebp - 0x480]
mov edx, 0x13
call fcn.00404cc8
lea eax, [ebp - 0x434]
mov edx, 2
call fcn.004045b8
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.004045b8
ret