Function at 0x5ad8a8
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
sub esp, 0x48
mov eax, 0x6e3df8
call fcn.006899cc
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
sub esp, 0x18
mov byte [ebp + 0x4b], bl
mov eax, esp
mov dword [ebp - 0x2c], esp
mov dword [eax], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xf
mov esi, dword [ebp + 0x54]
lea eax, [ebp - 0x44]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.0048fcb1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x5ad8f7
mov eax, dword [eax]
lea ecx, [ebp + 0x4b]
mov byte [ebp - 4], 2
push ecx
push ebx
push eax
lea ecx, [ebp - 0x16c]
call fcn.0045ea87
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0040fad0
mov edi, dword [ebp + 0x5c]
mov eax, str.NULL
mov ecx, edi
test edi, edi
jne 0x5ad928
mov ecx, eax
mov ebx, dword [ebp + 0x58]
test ebx, ebx
je 0x5ad931
mov eax, ebx
push ecx
push eax
push esi
push str.LoadKnownFileType_called_with__s___s___s_n
call fcn.0040f570
add esp, 0x10
push 0x6fd0b8
push esi
call fcn.0048ff8f
test al, al
je 0x5adcdd
test edi, edi
je 0x5ad967
push str.torrent
push edi
call fcn.0048ff8f
test al, al
jne 0x5ad999
cmp byte [ebp + 0x4b], 0
je 0x5adb56
cmp dword [ebp - 0x128], 0x10
lea eax, [ebp - 0x13c]
jb 0x5ad986
mov eax, dword [ebp - 0x13c]
push 0x7002f8
push eax
call fcn.0048f8f6
test al, al
je 0x5adb56
push dword [ebp + 0x60]
push 0xa0
push 4
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x5aa414
call fcn.005ad706
push 0xf
pop esi
push ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x28]
push 0x77a89f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
call fcn.00414b60
push 7
mov dword [ebp + 0x30], ebx
lea ecx, [ebp + 0x30]
push str.success
mov byte [ebp - 4], 5
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], esi
mov byte [ebp + 0x30], bl
call fcn.00414b60
push str.http_add_torrent
mov byte [ebp + 0x60], bl
lea ecx, [ebp]
push dword [ebp + 0x60]
mov dword [ebp], ebx
push 0x10
pop edi
push edi
mov byte [ebp - 4], 6
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], esi
mov byte [ebp], bl
call fcn.00416cb0
push 0xa
mov dword [ebp + 0x18], ebx
lea ecx, [ebp + 0x18]
push str.AddTorrent
mov byte [ebp - 4], 7
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], esi
mov byte [ebp + 0x18], bl
call fcn.00414b60
fld dword [0x70996c]
lea eax, [ebp - 0x28]
push ecx
fstp dword [esp]
push ebx
push eax
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x18]
push eax
push ebx
call fcn.0054ca58
mov eax, dword [ebp + 0x2c]
mov esi, 0x1000
cmp eax, edi
jb 0x5ada95
mov ecx, dword [ebp + 0x18]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x5ada8c
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], 0xf
mov byte [ebp + 0x18], bl
cmp eax, edi
jb 0x5adad3
mov ecx, dword [ebp]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x5adaca
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], 0xf
mov byte [ebp], bl
cmp eax, edi
jb 0x5adb11
mov ecx, dword [ebp + 0x30]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x5adb08
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], 0xf
mov byte [ebp + 0x30], bl
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x5adb4f
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 0x6c], ecx
mov dword [ebp + 0x60], eax
cmp eax, esi
jb 0x5adb46
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
push ebx
push ebx
jmp 0x5ae00c
test edi, edi
je 0x5adb69
push str.btkey
push edi
call fcn.00490018
test al, al
jne 0x5adb93
cmp byte [ebp + 0x4b], 0
je 0x5adbb3
cmp dword [ebp - 0x128], 0x10
lea eax, [ebp - 0x13c]
jb 0x5adb84
mov eax, dword [ebp - 0x13c]
push str..btkey
push eax
call fcn.0048f8f6
test al, al
je 0x5adbb3
xor eax, eax
push eax
push 0xa0
push 4
push eax
push dword [ebp + 0x6c]
push ebx
push esi
push eax
push 0x5aa339
call fcn.005ad706
jmp 0x5ae01d
test edi, edi
je 0x5adbc6
push str.btinstall
push edi
call fcn.00490018
test al, al
jne 0x5adbf4
cmp byte [ebp + 0x4b], 0
je 0x5adc70
cmp dword [ebp - 0x128], 0x10
lea eax, [ebp - 0x13c]
jb 0x5adbe5
mov eax, dword [ebp - 0x13c]
push str..btinstall
push eax
call fcn.0048f8f6
test al, al
je 0x5adc70
push 0x38
call fcn.0068973d
pop ecx
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x5adc1a
push edi
push esi
push dword [ebp + 0x68]
mov ecx, eax
push dword [ebp + 0x64]
call fcn.005a96e1
mov edi, eax
jmp 0x5adc1c
xor edi, edi
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.0048fcb1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x5adc36
mov eax, dword [eax]
push 0x5aa6c6
push edi
xor edi, edi
push edi
push ebx
push eax
push edi
call fcn.005ec56a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
mov esi, eax
call fcn.0040fad0
test esi, esi
je 0x5ae01d
mov ecx, esi
call fcn.005aa5b0
push esi
push edi
push 0x801d
jmp 0x5ae011
test edi, edi
je 0x5adc83
push 0x703ae4
push edi
call fcn.00490018
test al, al
jne 0x5adcad
cmp byte [ebp + 0x4b], 0
je 0x5adcbb
cmp dword [ebp - 0x128], 0x10
lea eax, [ebp - 0x13c]
jb 0x5adc9e
mov eax, dword [ebp - 0x13c]
push str..btapp
push eax
call fcn.0048f8f6
test al, al
je 0x5adcbb
push 0
push 0
push 0x8023
jmp 0x5ae011
mov eax, dword [ebp + 0x60]
shr eax, 2
and al, 1
movzx eax, al
push eax
sub esp, 0x18
mov eax, esp
push esi
push eax
call fcn.004494f1
call fcn.006200f3
jmp 0x5ae01d
push 0x6f6974
push esi
call fcn.00490018
test al, al
jne 0x5ae01d
push 0x6f6a10
push esi
call fcn.00490018
test al, al
je 0x5add3c
push 0
lea eax, [ebp + 0x60]
push eax
push esi
call fcn.00472f8b
push dword [ebp + 0x60]
mov esi, eax
mov byte [ebp - 4], 0xb
push esi
mov dword [ebp + 0x6c], esi
call fcn.005dc21d
jmp 0x5add28
push 1
push esi
mov dword [ebp - 4], 4
call fcn.0046f19e
jmp 0x5ae01d
push 0x6fc72c
push esi
call fcn.0048ff8f
test al, al
je 0x5aded7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push fcn.004b6a24
push eax
mov eax, dword [ebp + 0x60]
push ebx
or eax, 0x200
push eax
push esi
call fcn.004e281a
push 0xf
xor ebx, ebx
lea ecx, [ebp - 0x28]
pop esi
push ebx
mov dword [ebp - 0x28], ebx
push 0x77a89f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
call fcn.00414b60
push 7
mov dword [ebp + 0x18], ebx
lea ecx, [ebp + 0x18]
push str.success
mov byte [ebp - 4], 0xd
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], esi
mov byte [ebp + 0x18], bl
call fcn.00414b60
push 0xe
mov dword [ebp], ebx
lea ecx, [ebp]
push str.add_magnetlink
mov byte [ebp - 4], 0xe
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], esi
mov byte [ebp], bl
call fcn.00414b60
push 0xa
mov dword [ebp + 0x30], ebx
lea ecx, [ebp + 0x30]
push str.AddTorrent
mov byte [ebp - 4], 0xf
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], esi
mov byte [ebp + 0x30], bl
call fcn.00414b60
fld dword [0x70996c]
lea eax, [ebp - 0x28]
push ecx
fstp dword [esp]
push ebx
push eax
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x30]
push eax
push ebx
call fcn.0054ca58
mov eax, dword [ebp + 0x44]
mov esi, 0x1000
push 0x10
pop edi
cmp eax, edi
jb 0x5ade49
mov ecx, dword [ebp + 0x30]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x5ade40
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], 0xf
mov byte [ebp + 0x30], bl
cmp eax, edi
jb 0x5ade87
mov ecx, dword [ebp]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x5ade7e
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], 0xf
mov byte [ebp], bl
cmp eax, edi
jb 0x5adec5
mov ecx, dword [ebp + 0x18]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x6c], ecx
cmp eax, esi
jb 0x5adebc
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], 0xf
mov byte [ebp + 0x18], bl
jmp 0x5adb1e
push 0x6f6a5c
push esi
call fcn.00490018
test al, al
jne 0x5adcad
push 0x6f6ab4
push esi
call fcn.00490018
test al, al
je 0x5adf18
push 0x77a89f
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
push edi
push 1
push ebx
push esi
push 0
call fcn.005ad523
jmp 0x5ae01d
test edi, edi
je 0x5adf2b
push 0x744918
push edi
call fcn.00490018
test al, al
jne 0x5adf3e
push 0x6f69c4
push esi
call fcn.00490018
test al, al
je 0x5adfee
push str.current.btskin
lea eax, [ebp + 0x30]
push eax
call fcn.004848ce
test dword [ebp + 0x60], 0x400
mov byte [ebp - 4], 0x11
je 0x5adf6a
push 8
push str.user_set
mov ecx, 0x7e6598
call fcn.00414b60
push str.default
push esi
call fcn.00698d49
pop ecx
test eax, eax
lea eax, [ebp + 0x30]
pop ecx
jne 0x5adf90
cmp dword [ebp + 0x44], 8
jb 0x5adf87
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x5adfbc
cmp dword [ebp + 0x44], 8
jb 0x5adf99
mov eax, dword [ebp + 0x30]
push eax
push esi
call fcn.00698d49
pop ecx
pop ecx
test eax, eax
je 0x5adfbc
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
jb 0x5adfb2
mov eax, dword [ebp + 0x30]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
call fcn.006312aa
call fcn.005f46f6
push 1
push 1
call fcn.005eb5d1
call fcn.006368f9
push dword [0x7f84a0]
call fcn.005aff1e
call fcn.005c6909
lea ecx, [ebp + 0x30]
call fcn.0044823e
jmp 0x5ae01d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push fcn.004b6a24
push eax
push ebx
push dword [ebp + 0x60]
push esi
call fcn.004e281a
push 0
push 0
push 0x803c
push dword [0x81d248]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x16c]
call fcn.0045ebf7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x4c
leave
ret 0x20