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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x42701c]
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 + 0x1326]
add eax, 0x8a
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 0x40c2f6
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c2c0
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 0x42066c
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 0x40c35b
lea eax, [ebp - 0x40c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c325
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 0x42066c
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 0x40c3c6
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c390
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 0x42066c
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 0x40c42b
lea eax, [ebp - 0x40c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c3f5
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 0x42066c
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 0x40c496
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c460
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 0x42066c
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 0x40c4dd
mov ecx, dword [ebp - 0x618]
push 2
push 0x42066c
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 0x40c524
mov ecx, dword [ebp - 0x618]
push 2
push 0x42066c
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 0x40c56b
mov ecx, dword [ebp - 0x618]
push 0xa
push str.open
push 1
push eax
push 0x42066c
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 0x40c5fa
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c5c4
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 0x42066c
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 0x40c666
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c630
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 0x42066c
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 0x40c6ad
mov edx, dword [ebp - 0x618]
push 2
push 0x42066c
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 0x40c7d3
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 0x40c6fe
mov edx, dword [ebp - 0x618]
push 0xa
push str.Zona
push 1
push eax
push 0x42066c
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 0x40c745
mov edx, dword [ebp - 0x618]
push 0xa
push str.Zona
push 1
push eax
push 0x42066c
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 0x40c78c
mov edx, dword [ebp - 0x618]
push 0xa
push str.Zona
push 1
push eax
push 0x42066c
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 0x40c7d3
mov edx, dword [ebp - 0x618]
push 0xa
push str.Zona
push 1
push eax
push 0x42066c
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.0040fa5b
mov esp, ebp
pop ebp
ret