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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e343
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0x8d28]
push str.Start_associate
push str.INFO
mov dword [ebp - 0x660], ebx
call fcn.00414290
cmp word [ebx + 0x90c], 0
lea esi, [ebx + 0x90c]
jne 0x427063
cmp word [ebx + 0x704], 0
lea edi, [ebx + 0x704]
jne 0x427043
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x427057
mov word [esi], ax
cmp word [esi], 0
lea eax, [ebx + 0x704]
je 0x427065
mov eax, esi
lea ecx, [ebx + 0xbec]
push ecx
push eax
push 0x47a144
push 0x479538
call fcn.00405c30
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 8
push eax
lea edx, [ebp - 0x620]
push 0x104
push edx
call edi
add esp, 0x14
cmp word [esi], 0
jne 0x4270db
add ebx, 0x704
cmp word [ebx], 0
jne 0x4270b5
mov ecx, dword [ebp - 0x660]
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [ebp - 0x660]
test eax, eax
jne 0x4270cf
mov word [esi], ax
cmp word [esi], 0
jne 0x4270db
lea esi, [ebx + 0x704]
push esi
push str.s_torrent.ico
push 0x479538
call fcn.00405c30
add esp, 8
push eax
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call edi
add esp, 0x10
lea eax, [ebp - 0x620]
push eax
xor edx, edx
push str._s_____1_
push 0x479484
mov word [ebp - 0x210], dx
call fcn.00405c30
add esp, 8
push eax
lea ecx, [ebp - 0x210]
push 0x100
push ecx
call edi
push str.ona_shellopencommand
push 0x47a980
call fcn.00405c30
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
add esp, 0x18
push 0
lea edx, [ebp - 0x65c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov esi, eax
push esi
push SysReAllocString
call ebx
test eax, eax
jne 0x4271ba
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427176
sub eax, edx
mov edx, dword [ebp - 0x65c]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 1
push 0
push 0x479144
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x427209
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.00401cc7
push 0x479144
push esi
push eax
mov dword [ebp - 4], 0
call fcn.00401cf8
call fcn.00401489
lea edi, [ebp - 0x210]
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b8
push str.onaDefaultIcon
push 0x47a980
call fcn.00405c30
add esp, 8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edi, eax
push edi
push SysReAllocString
call ebx
test eax, eax
jne 0x427294
lea eax, [ebp - 0x418]
lea edx, [eax + 2]
jmp 0x427250
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427250
mov ecx, dword [ebp - 0x65c]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x418]
push eax
push 1
push 0
push 0x479144
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x65c]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4272e3
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.00401cc7
push 0x479144
push edi
push eax
mov dword [ebp - 4], 1
call fcn.00401cf8
call fcn.00401489
lea edi, [ebp - 0x418]
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b8
push str.pplicationsZona.exe_shellopencommand
push 0x47a52c
call fcn.00405c30
add esp, 8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x42735e
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427320
mov ecx, dword [ebp - 0x65c]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x479144
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x65c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RL_Protocol
push 0x479510
call fcn.00405c30
add esp, 8
push eax
push str.oftwareClassesZona
push 0x4793b8
call fcn.00405c30
add esp, 8
mov edi, 0x479144
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
push str.RL_Protocol
push 0x479510
call fcn.00405c30
add esp, 0xc
push eax
push 0x47aa0c
push 0x47a980
call fcn.00405c30
add esp, 8
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
cmp byte [ebp + 8], 0
je 0x427871
mov eax, dword [ebp - 0x660]
mov ecx, dword [eax + 0x8d28]
push str.associate_.torrent_file
push str.INFO
call fcn.00414290
push 0x47aa0c
push 0x47a980
call fcn.00405c30
push str.zona
push 0x479664
mov edi, eax
call fcn.00405c30
mov esi, eax
push 0x479144
mov ecx, esi
mov edx, SysReAllocString
call fcn.004039d0
add esp, 0x14
test al, al
jne 0x427470
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.00401cc7
push 0x479144
push esi
push eax
mov dword [ebp - 4], 2
call fcn.00401cf8
call fcn.00401489
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b8
push 0x47aa0c
push 0x47a980
call fcn.00405c30
push str.torrent
push 0x479664
mov edi, eax
call fcn.00405c30
mov esi, eax
push 0x479144
mov ecx, esi
mov edx, SysReAllocString
call fcn.004039d0
add esp, 0x14
test al, al
jne 0x4274f3
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.00401cc7
push 0x479144
push esi
push eax
mov dword [ebp - 4], 3
call fcn.00401cf8
call fcn.00401489
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b8
push str.torrent
push 0x479664
call fcn.00405c30
add esp, 8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov esi, eax
push esi
push SysReAllocString
call ebx
test eax, eax
jne 0x427558
mov edx, dword [ebp - 0x65c]
push 0x32
push str.application_x_bittorrent
push 1
push eax
push str.Content_Type
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4275a6
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.00401cc7
push str.Content_Type
push esi
push eax
mov dword [ebp - 4], 4
call fcn.00401cf8
call fcn.00401489
mov edi, str.application_x_bittorrent
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.MIMEDatabaseContent_Type_application_x_bittorrent
push SysReAllocString
call ebx
test eax, eax
jne 0x4275fb
mov edx, dword [ebp - 0x65c]
push 0x12
push str..torrent
push 1
push eax
push str.Extension
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42764d
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.00401cc7
push str.Extension
push str.MIMEDatabaseContent_Type_application_x_bittorrent
push eax
mov dword [ebp - 4], 5
call fcn.00401cf8
call fcn.00401489
mov edi, str..torrent
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b8
push str.ona_Download
push 0x47a980
call fcn.00405c30
push 0x47aa0c
push 0x47a980
mov edi, eax
call fcn.00405c30
mov esi, eax
push 0x479144
mov ecx, esi
mov edx, SysReAllocString
call fcn.004039d0
add esp, 0x14
test al, al
jne 0x4276d0
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.00401cc7
push 0x479144
push esi
push eax
mov dword [ebp - 4], 6
call fcn.00401cf8
call fcn.00401489
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b8
push str.ona_shell
push 0x47a980
call fcn.00405c30
add esp, 8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov esi, eax
push esi
push SysReAllocString
call ebx
test eax, eax
jne 0x427735
mov edx, dword [ebp - 0x65c]
push 0xa
push str.open
push 1
push eax
push 0x479144
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x427783
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.00401cc7
push 0x479144
push esi
push eax
mov dword [ebp - 4], 7
call fcn.00401cf8
call fcn.00401489
mov edi, str.open
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b8
push 0x47aa0c
push 0x47a980
call fcn.00405c30
add esp, 8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov esi, eax
push esi
push SysReAllocString
call ebx
test eax, eax
jne 0x4277e8
mov edx, dword [ebp - 0x65c]
push 0x32
push str.application_x_bittorrent
push 1
push eax
push str.Content_Type
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x427836
push str.SoftwareClasses_
lea eax, [ebp - 0x658]
call fcn.00401cc7
push str.Content_Type
push esi
push eax
mov dword [ebp - 4], 8
call fcn.00401cf8
call fcn.00401489
mov edi, str.application_x_bittorrent
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b8
push 0x47aa0c
push 0x47a980
call fcn.00405c30
add esp, 8
push eax
push str.oftwareMicrosoftWindowsCurrentVersionExplorerFileExts.torrentOpenWithProgids
push 0x4793b8
call fcn.00405c30
add esp, 8
mov edi, 0x479144
mov ecx, eax
mov edx, SysReAllocString
call fcn.004039d0
add esp, 4
jmp 0x42788c
mov ecx, dword [ebp - 0x660]
mov ecx, dword [ecx + 0x8d28]
push str.Dont_associate_.torrent_files
push str.INFO
call fcn.00414290
mov edx, dword [ebp - 0x660]
mov ecx, dword [edx + 0x8d28]
push str.End_associate
push str.INFO
call fcn.00414290
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045080d
mov esp, ebp
pop ebp
ret