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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 0xc]
push 0x2e
push ecx
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x31c], eax
call fcn.0047d91d
mov edi, eax
add esp, 8
test edi, edi
jne 0x417f3c
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x314]
push esi
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push 2
push 0
push 0
push 0
push edi
push 0x80000000
call ebx
mov esi, eax
test esi, esi
jne 0x418164
lea eax, [edi + 2]
push eax
push str._sfile
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00401670
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea ecx, [ebp - 0x104]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417fa1
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0
push 0
push dword [ebp - 0x310]
call edi
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x104]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x418046
mov edx, dword [ebp - 0x318]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418014
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0
push dword [ebp - 0x310]
call edi
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x31c]
test esi, esi
je 0x4180d5
lea eax, [ebp - 0x104]
push eax
push str._sDefaultIcon
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.00401670
add esp, 0x10
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x30c]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x4180d5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4180a3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push 0
push dword [ebp - 0x310]
call edi
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x104]
push eax
push str._s_shellopencommand
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.00401670
add esp, 0x10
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x30c]
push eax
push 0x80000000
call ebx
mov esi, eax
test esi, esi
jne 0x418164
mov esi, dword [ebp - 0x320]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418130
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push 0
push dword [ebp - 0x310]
call edi
push dword [ebp - 0x310]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
pop ebx
pop edi
call fcn.0047c26b
mov esp, ebp
pop ebp
ret