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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fb43
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x491654]
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.00417c10
cmp word [ebx + 0x90c], 0
lea esi, [ebx + 0x90c]
jne 0x42a1c3
cmp word [ebx + 0x704], 0
lea edi, [ebx + 0x704]
jne 0x42a1a3
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 0x42a1b7
mov word [esi], ax
cmp word [esi], 0
lea eax, [ebx + 0x704]
je 0x42a1c5
mov eax, esi
lea ecx, [ebx + 0xbec]
push ecx
push eax
push 0x47bb2c
push 0x47acc0
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 0x42a23b
add ebx, 0x704
cmp word [ebx], 0
jne 0x42a215
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 0x42a22f
mov word [esi], ax
cmp word [esi], 0
jne 0x42a23b
lea esi, [ebx + 0x704]
push esi
push str.s_torrent.ico
push 0x47acc0
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 0x47ac0c
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 0x47c538
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 0x42a31a
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a2d6
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 0x47a8cc
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 0x42a369
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025ce
push 0x47a8cc
push esi
push eax
mov dword [ebp - 4], 0
call fcn.0040260d
call fcn.00402639
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.004025ff
push str.onaDefaultIcon
push 0x47c538
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 0x42a3f4
lea eax, [ebp - 0x418]
lea edx, [eax + 2]
jmp 0x42a3b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a3b0
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 0x47a8cc
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 0x42a443
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025ce
push 0x47a8cc
push edi
push eax
mov dword [ebp - 4], 1
call fcn.0040260d
call fcn.00402639
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.004025ff
push str.pplicationsZona.exe_shellopencommand
push 0x47bf88
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 0x42a4be
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a480
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 0x47a8cc
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 0x47ac98
call fcn.004089f0
add esp, 8
push eax
push str.oftwareClassesZona
push 0x47ab40
call fcn.004089f0
add esp, 8
mov edi, 0x47a8cc
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
push str.RL_Protocol
push 0x47ac98
call fcn.004089f0
add esp, 0xc
push eax
push 0x47c530
push 0x47c538
call fcn.004089f0
add esp, 8
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
cmp byte [ebp + 8], 0
je 0x42a9d1
mov eax, dword [ebp - 0x660]
mov ecx, dword [eax + 0x8d28]
push str.associate_.torrent_file
push str.INFO
call fcn.00417c10
push 0x47c530
push 0x47c538
call fcn.004089f0
push str.zona
push 0x47ae00
mov edi, eax
call fcn.004089f0
mov esi, eax
push 0x47a8cc
mov ecx, esi
mov edx, SysReAllocString
call fcn.00406850
add esp, 0x14
test al, al
jne 0x42a5d0
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025ce
push 0x47a8cc
push esi
push eax
mov dword [ebp - 4], 2
call fcn.0040260d
call fcn.00402639
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025ff
push 0x47c530
push 0x47c538
call fcn.004089f0
push str.torrent
push 0x47ae00
mov edi, eax
call fcn.004089f0
mov esi, eax
push 0x47a8cc
mov ecx, esi
mov edx, SysReAllocString
call fcn.00406850
add esp, 0x14
test al, al
jne 0x42a653
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025ce
push 0x47a8cc
push esi
push eax
mov dword [ebp - 4], 3
call fcn.0040260d
call fcn.00402639
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025ff
push str.torrent
push 0x47ae00
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 0x42a6b8
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 0x42a706
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025ce
push str.Content_Type
push esi
push eax
mov dword [ebp - 4], 4
call fcn.0040260d
call fcn.00402639
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.004025ff
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 0x42a75b
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 0x42a7ad
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025ce
push str.Extension
push str.MIMEDatabaseContent_Type_application_x_bittorrent
push eax
mov dword [ebp - 4], 5
call fcn.0040260d
call fcn.00402639
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.004025ff
push str.ona_Download
push 0x47c538
call fcn.004089f0
push 0x47c530
push 0x47c538
mov edi, eax
call fcn.004089f0
mov esi, eax
push 0x47a8cc
mov ecx, esi
mov edx, SysReAllocString
call fcn.00406850
add esp, 0x14
test al, al
jne 0x42a830
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025ce
push 0x47a8cc
push esi
push eax
mov dword [ebp - 4], 6
call fcn.0040260d
call fcn.00402639
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025ff
push str.ona_shell
push 0x47c538
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 0x42a895
mov edx, dword [ebp - 0x65c]
push 0xa
push str.open
push 1
push eax
push 0x47a8cc
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 0x42a8e3
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025ce
push 0x47a8cc
push esi
push eax
mov dword [ebp - 4], 7
call fcn.0040260d
call fcn.00402639
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.004025ff
push 0x47c530
push 0x47c538
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 0x42a948
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 0x42a996
push str.SoftwareClasses_
lea eax, [ebp - 0x658]
call fcn.004025ce
push str.Content_Type
push esi
push eax
mov dword [ebp - 4], 8
call fcn.0040260d
call fcn.00402639
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.004025ff
push 0x47c530
push 0x47c538
call fcn.004089f0
add esp, 8
push eax
push str.oftwareMicrosoftWindowsCurrentVersionExplorerFileExts.torrentOpenWithProgids
push 0x47ab40
call fcn.004089f0
add esp, 8
mov edi, 0x47a8cc
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406850
add esp, 4
jmp 0x42a9ec
mov ecx, dword [ebp - 0x660]
mov ecx, dword [ecx + 0x8d28]
push str.Dont_associate_.torrent_files
push str.INFO
call fcn.00417c10
mov edx, dword [ebp - 0x660]
mov ecx, dword [edx + 0x8d28]
push str.End_associate
push str.INFO
call fcn.00417c10
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.00452dc2
mov esp, ebp
pop ebp
ret