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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fa13
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x490654]
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 + 0x8c28]
push str.Start_associate
push str.INFO
mov dword [ebp - 0x660], ebx
call fcn.00417780
cmp word [ebx + 0x80c], 0
lea esi, [ebx + 0x80c]
jne 0x42a2e3
cmp word [ebx + 0x604], 0
lea edi, [ebx + 0x604]
jne 0x42a2c3
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 0x42a2d7
mov word [esi], ax
cmp word [esi], 0
lea eax, [ebx + 0x604]
je 0x42a2e5
mov eax, esi
lea ecx, [ebx + 0xaec]
push ecx
push eax
push 0x47ab2c
push 0x479cc0
call fcn.004089f0
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 0x42a35b
add ebx, 0x604
cmp word [ebx], 0
jne 0x42a335
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 0x42a34f
mov word [esi], ax
cmp word [esi], 0
jne 0x42a35b
lea esi, [ebx + 0x604]
push esi
push str.s_torrent.ico
push 0x479cc0
call fcn.004089f0
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 0x479c0c
mov word [ebp - 0x210], dx
call fcn.004089f0
add esp, 8
push eax
lea ecx, [ebp - 0x210]
push 0x100
push ecx
call edi
push str.ona_shellopencommand
push 0x47b528
call fcn.004089f0
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 0x42a43a
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a3f6
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 0x4798cc
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 0x42a489
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025cc
push 0x4798cc
push esi
push eax
mov dword [ebp - 4], 0
call fcn.0040260b
call fcn.00402637
lea edi, [ebp - 0x210]
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
push str.onaDefaultIcon
push 0x47b528
call fcn.004089f0
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 0x42a514
lea eax, [ebp - 0x418]
lea edx, [eax + 2]
jmp 0x42a4d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a4d0
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 0x4798cc
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 0x42a563
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025cc
push 0x4798cc
push edi
push eax
mov dword [ebp - 4], 1
call fcn.0040260b
call fcn.00402637
lea edi, [ebp - 0x418]
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
push str.pplicationsZona.exe_shellopencommand
push 0x47af78
call fcn.004089f0
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 0x42a5de
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a5a0
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 0x4798cc
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 0x479c98
call fcn.004089f0
add esp, 8
push eax
push str.oftwareClassesZona
push 0x479b40
call fcn.004089f0
add esp, 8
mov edi, 0x4798cc
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
push str.RL_Protocol
push 0x479c98
call fcn.004089f0
add esp, 0xc
push eax
push 0x47b520
push 0x47b528
call fcn.004089f0
add esp, 8
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
cmp byte [ebp + 8], 0
je 0x42aaf1
mov eax, dword [ebp - 0x660]
mov ecx, dword [eax + 0x8c28]
push str.associate_.torrent_file
push str.INFO
call fcn.00417780
push 0x47b520
push 0x47b528
call fcn.004089f0
push str.zona
push 0x479e00
mov edi, eax
call fcn.004089f0
mov esi, eax
push 0x4798cc
mov ecx, esi
mov edx, SysReAllocString
call fcn.00406850
add esp, 0x14
test al, al
jne 0x42a6f0
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025cc
push 0x4798cc
push esi
push eax
mov dword [ebp - 4], 2
call fcn.0040260b
call fcn.00402637
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
push 0x47b520
push 0x47b528
call fcn.004089f0
push str.torrent
push 0x479e00
mov edi, eax
call fcn.004089f0
mov esi, eax
push 0x4798cc
mov ecx, esi
mov edx, SysReAllocString
call fcn.00406850
add esp, 0x14
test al, al
jne 0x42a773
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025cc
push 0x4798cc
push esi
push eax
mov dword [ebp - 4], 3
call fcn.0040260b
call fcn.00402637
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
push str.torrent
push 0x479e00
call fcn.004089f0
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 0x42a7d8
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 0x42a826
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025cc
push str.Content_Type
push esi
push eax
mov dword [ebp - 4], 4
call fcn.0040260b
call fcn.00402637
mov edi, str.application_x_bittorrent
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
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 0x42a87b
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 0x42a8cd
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025cc
push str.Extension
push str.MIMEDatabaseContent_Type_application_x_bittorrent
push eax
mov dword [ebp - 4], 5
call fcn.0040260b
call fcn.00402637
mov edi, str..torrent
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
push str.ona_Download
push 0x47b528
call fcn.004089f0
push 0x47b520
push 0x47b528
mov edi, eax
call fcn.004089f0
mov esi, eax
push 0x4798cc
mov ecx, esi
mov edx, SysReAllocString
call fcn.00406850
add esp, 0x14
test al, al
jne 0x42a950
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025cc
push 0x4798cc
push esi
push eax
mov dword [ebp - 4], 6
call fcn.0040260b
call fcn.00402637
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
push str.ona_shell
push 0x47b528
call fcn.004089f0
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 0x42a9b5
mov edx, dword [ebp - 0x65c]
push 0xa
push str.open
push 1
push eax
push 0x4798cc
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 0x42aa03
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025cc
push 0x4798cc
push esi
push eax
mov dword [ebp - 4], 7
call fcn.0040260b
call fcn.00402637
mov edi, str.open
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
push 0x47b520
push 0x47b528
call fcn.004089f0
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 0x42aa68
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 0x42aab6
push str.SoftwareClasses_
lea eax, [ebp - 0x658]
call fcn.004025cc
push str.Content_Type
push esi
push eax
mov dword [ebp - 4], 8
call fcn.0040260b
call fcn.00402637
mov edi, str.application_x_bittorrent
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
push 0x47b520
push 0x47b528
call fcn.004089f0
add esp, 8
push eax
push str.oftwareMicrosoftWindowsCurrentVersionExplorerFileExts.torrentOpenWithProgids
push 0x479b40
call fcn.004089f0
add esp, 8
mov edi, 0x4798cc
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
jmp 0x42ab0c
mov ecx, dword [ebp - 0x660]
mov ecx, dword [ecx + 0x8c28]
push str.Dont_associate_.torrent_files
push str.INFO
call fcn.00417780
mov edx, dword [ebp - 0x660]
mov ecx, dword [edx + 0x8c28]
push str.End_associate
push str.INFO
call fcn.00417780
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.00452c94
mov esp, ebp
pop ebp
ret