Function at 0x4e0b50
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e0dfe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], 0xa
lea ecx, [ebp - 0x230]
mov edx, 0x4e0e10
lea eax, [ebp - 0x226]
call fcn.004d41ac
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x226]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyW
mov edi, eax
test edi, edi
je 0x4e0cd1
cmp dword [ebp - 0xc], 0
je 0x4e0be2
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
jne 0x4e0c22
push 0
lea edx, [ebp - 0x234]
mov eax, dword [0x4f1304]
call fcn.0040d7c0
mov eax, dword [ebp - 0x234]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x230], edx
mov byte [ebp - 0x22c], 0xa
lea ecx, [ebp - 0x230]
mov edx, 1
call fcn.004e6fc4
mov dword [ebp - 0x10], edi
jmp 0x4e0dd5
lea ebx, [ebp - 0x226]
jmp 0x4e0c2d
add ebx, 2
movzx esi, word [ebx]
test si, si
je 0x4e0c3b
cmp si, 0x5c
jne 0x4e0c2a
movzx eax, word [ebx]
mov word [ebp - 0x16], ax
mov word [ebx], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2000000
push 0
push 0
push 0
lea eax, [ebp - 0x226]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
je 0x4e0cb2
push 0
lea edx, [ebp - 0x238]
mov eax, dword [0x4f1304]
call fcn.0040d7c0
mov eax, dword [ebp - 0x238]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x230], edx
mov byte [ebp - 0x22c], 0xa
lea ecx, [ebp - 0x230]
mov edx, 1
call fcn.004e6fc4
mov dword [ebp - 0x10], edi
jmp 0x4e0dd5
cmp word [ebp - 0x16], 0
je 0x4e0cd1
movzx eax, word [ebp - 0x16]
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4e0c2d
cmp dword [ebp - 0xc], 0
je 0x4e0ce0
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
jne 0x4e0d32
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edi, eax
test edi, edi
je 0x4e0dc9
push 0
lea edx, [ebp - 0x23c]
mov eax, dword [0x4f1304]
call fcn.0040d7c0
mov eax, dword [ebp - 0x23c]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x230], edx
mov byte [ebp - 0x22c], 0xa
lea ecx, [ebp - 0x230]
mov edx, 1
call fcn.004e6fc4
jmp 0x4e0dc9
mov eax, dword [ebp - 0xc]
call fcn.004d40f0
inc eax
add eax, eax
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
push 0
push 0x4e0e3c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
test edi, edi
jne 0x4e0d91
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 0x248], 0xa
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 0xa
lea edx, [ebp - 0x24c]
mov eax, 0x4e0e40
mov ecx, 1
call fcn.004d8538
jmp 0x4e0dc9
push 0
lea edx, [ebp - 0x250]
mov eax, dword [0x4f0fd4]
call fcn.0040d7c0
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x230], edx
mov byte [ebp - 0x22c], 0xa
lea ecx, [ebp - 0x230]
mov edx, 1
call fcn.004e6fc4
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov dword [ebp - 0x10], edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0e05
lea eax, [ebp - 0x250]
call fcn.00409e68
lea eax, [ebp - 0x23c]
mov edx, 3
call fcn.00409ec8
ret