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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea esi, [eax + 0xfc0]
add eax, 0x17e8
push eax
push esi
push str._s_s.exe
lea eax, [ebp - 0x614]
push 0x104
push eax
call edi
push esi
push str._s_torrent.ico
lea ecx, [ebp - 0x40c]
push 0x104
push ecx
call edi
lea eax, [ebp - 0x614]
push eax
push str.__s_____1_
lea ecx, [ebp - 0x204]
xor edx, edx
push 0x100
push ecx
mov word [ebp - 0x204], dx
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
add esp, 0x34
push 0
lea edx, [ebp - 0x618]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesZona_shellopencommand
push SysReAllocString
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x410616
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4105e0
sub eax, edx
mov edx, dword [ebp - 0x618]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 1
push 0
push 0x446884
push edx
call esi
mov eax, dword [ebp - 0x618]
push eax
call edi
push 0
lea ecx, [ebp - 0x618]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesZonaDefaultIcon
push SysReAllocString
call ebx
test eax, eax
jne 0x41067b
lea eax, [ebp - 0x40c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410645
mov ecx, dword [ebp - 0x618]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x40c]
push eax
push 1
push 0
push 0x446884
push ecx
call esi
mov edx, dword [ebp - 0x618]
push edx
call edi
push 0
lea eax, [ebp - 0x618]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.Zona_shellopencommand
push SysReAllocString
call ebx
test eax, eax
jne 0x4106e6
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4106b0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x618]
push ecx
lea edx, [ebp - 0x204]
push edx
push 1
push 0
push 0x446884
push eax
call esi
mov ecx, dword [ebp - 0x618]
push ecx
call edi
push 0
lea edx, [ebp - 0x618]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.ZonaDefaultIcon
push SysReAllocString
call ebx
test eax, eax
jne 0x41074b
lea eax, [ebp - 0x40c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410715
sub eax, edx
mov edx, dword [ebp - 0x618]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x40c]
push ecx
push 1
push 0
push 0x446884
push edx
call esi
mov eax, dword [ebp - 0x618]
push eax
call edi
push 0
lea ecx, [ebp - 0x618]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.ApplicationsZona.exe_shellopencommand
push SysReAllocString
call ebx
test eax, eax
jne 0x4107b6
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410780
mov ecx, dword [ebp - 0x618]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x204]
push eax
push 1
push 0
push 0x446884
push ecx
call esi
mov edx, dword [ebp - 0x618]
push edx
call edi
push 0
lea eax, [ebp - 0x618]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesZona
push SysReAllocString
call ebx
test eax, eax
jne 0x4107fd
mov ecx, dword [ebp - 0x618]
push 2
push 0x446884
push 1
push eax
push str.URL_Protocol
push ecx
call esi
mov edx, dword [ebp - 0x618]
push edx
call edi
push 0
lea eax, [ebp - 0x618]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.Zona
push SysReAllocString
call ebx
test eax, eax
jne 0x410844
mov ecx, dword [ebp - 0x618]
push 2
push 0x446884
push 1
push eax
push str.URL_Protocol
push ecx
call esi
mov edx, dword [ebp - 0x618]
push edx
call edi
push 0
lea eax, [ebp - 0x618]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesZona_shell
push SysReAllocString
call ebx
test eax, eax
jne 0x41088b
mov ecx, dword [ebp - 0x618]
push 0xa
push str.open
push 1
push eax
push 0x446884
push ecx
call esi
mov edx, dword [ebp - 0x618]
push edx
call edi
lea ecx, [ebp - 0x614]
push ecx
push str.__s_torrent.ico_
lea edx, [ebp - 0x204]
xor eax, eax
push 0x100
push edx
mov word [ebp - 0x204], ax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push 0
lea eax, [ebp - 0x618]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesZonaDefaultIcon
push SysReAllocString
call ebx
test eax, eax
jne 0x41091a
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4108e4
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x618]
push ecx
lea edx, [ebp - 0x204]
push edx
push 1
push 0
push 0x446884
push eax
call esi
mov ecx, dword [ebp - 0x618]
push ecx
call edi
push 0
lea edx, [ebp - 0x618]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.ZonaDefaultIcon
push SysReAllocString
call ebx
test eax, eax
jne 0x410986
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410950
sub eax, edx
mov edx, dword [ebp - 0x618]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 1
push 0
push 0x446884
push edx
call esi
mov eax, dword [ebp - 0x618]
push eax
call edi
push 0
lea ecx, [ebp - 0x618]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.torrentOpenWithProgids
push SysReAllocString
call ebx
test eax, eax
jne 0x4109cd
mov edx, dword [ebp - 0x618]
push 2
push 0x446884
push 1
push eax
push str.Zona
push edx
call esi
mov eax, dword [ebp - 0x618]
push eax
call edi
cmp byte [ebp + 8], 0
je 0x410af3
push 0
lea ecx, [ebp - 0x618]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..torrent
push SysReAllocString
call ebx
test eax, eax
jne 0x410a1e
mov edx, dword [ebp - 0x618]
push 0xa
push str.Zona
push 1
push eax
push 0x446884
push edx
call esi
mov eax, dword [ebp - 0x618]
push eax
call edi
push 0
lea ecx, [ebp - 0x618]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClasses.torrent
push SysReAllocString
call ebx
test eax, eax
jne 0x410a65
mov edx, dword [ebp - 0x618]
push 0xa
push str.Zona
push 1
push eax
push 0x446884
push edx
call esi
mov eax, dword [ebp - 0x618]
push eax
call edi
push 0
lea ecx, [ebp - 0x618]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..zona
push SysReAllocString
call ebx
test eax, eax
jne 0x410aac
mov edx, dword [ebp - 0x618]
push 0xa
push str.Zona
push 1
push eax
push 0x446884
push edx
call esi
mov eax, dword [ebp - 0x618]
push eax
call edi
push 0
lea ecx, [ebp - 0x618]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClasses.zona
push SysReAllocString
call ebx
test eax, eax
jne 0x410af3
mov edx, dword [ebp - 0x618]
push 0xa
push str.Zona
push 1
push eax
push 0x446884
push edx
call esi
mov eax, dword [ebp - 0x618]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004276fb
mov esp, ebp
pop ebp
ret