Function at 0x5707bb
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
sub esp, 0x4c
mov eax, 0x67ea17
call fcn.0062921c
sub esp, 0x15c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ecx, ecx
sub esp, 0x18
mov byte [ebp + 0x4f], cl
mov eax, esp
mov dword [ebp + 0x18], esp
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 0x10
jb 0x5707f4
mov eax, dword [eax]
mov byte [eax], cl
mov esi, dword [ebp + 0x58]
lea eax, [ebp - 0x40]
push esi
push eax
mov dword [ebp - 4], ecx
call fcn.004784a4
xor ebx, ebx
inc ebx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], bl
jb 0x570814
mov eax, dword [eax]
lea ecx, [ebp + 0x4f]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
lea ecx, [ebp - 0x168]
call fcn.0043fb4c
push 0
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0040abbf
mov edi, dword [ebp + 0x60]
mov eax, str.NULL
mov ecx, edi
test edi, edi
jne 0x570849
mov ecx, eax
cmp dword [ebp + 0x5c], 0
je 0x570852
mov eax, dword [ebp + 0x5c]
push ecx
push eax
push esi
push str.LoadKnownFileType_called_with__s___s___s_n
call fcn.00409944
add esp, 0x10
push 0x69829c
push esi
call fcn.00478730
test al, al
je 0x570af4
test edi, edi
je 0x570888
push str.torrent
push edi
call fcn.00478730
test al, al
jne 0x5708ba
cmp byte [ebp + 0x4f], 0
je 0x57096f
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x5708a7
lea eax, [ebp - 0x138]
push 0x69c3c8
push eax
call fcn.004781b3
test al, al
je 0x57096f
push dword [ebp + 0x64]
push 0xa0
push 4
push dword [ebp + 0x74]
push dword [ebp + 0x70]
push dword [ebp + 0x5c]
push esi
xor esi, esi
push esi
push 0x56d96f
call fcn.00570675
push 0x70ed3c
lea ecx, [ebp + 0x1c]
call fcn.0040a58f
push str.success
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0040a58f
push str.http_add_torrent
lea ecx, [ebp]
mov byte [ebp - 4], 6
call fcn.0040a58f
push str.AddTorrent
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 7
call fcn.0040a58f
fld dword [0x6dbfb0]
lea eax, [ebp + 0x1c]
push ecx
fstp dword [esp]
push esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x34]
push eax
push esi
call fcn.00663f2b
push esi
push ebx
lea ecx, [ebp + 0x34]
call fcn.0040abbf
push esi
push ebx
lea ecx, [ebp]
call fcn.0040abbf
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040abbf
lea ecx, [ebp + 0x1c]
push esi
push ebx
call fcn.0040abbf
push esi
push esi
jmp 0x570d54
test edi, edi
je 0x570982
push str.btkey
push edi
call fcn.004787ad
test al, al
jne 0x5709ac
cmp byte [ebp + 0x4f], 0
je 0x5709ce
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x57099d
lea eax, [ebp - 0x138]
push str..btkey
push eax
call fcn.004781b3
test al, al
je 0x5709ce
xor eax, eax
push eax
push 0xa0
push 4
push eax
push dword [ebp + 0x70]
push dword [ebp + 0x5c]
push esi
push eax
push 0x56d88f
call fcn.00570675
jmp 0x570d65
test edi, edi
je 0x5709e1
push 0x6dae84
push edi
call fcn.004787ad
test al, al
jne 0x570a0f
cmp byte [ebp + 0x4f], 0
je 0x570a87
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x570a00
lea eax, [ebp - 0x138]
push str..btinstall
push eax
call fcn.004781b3
test al, al
je 0x570a87
push 0x38
call fcn.006291e1
pop ecx
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x570a35
push edi
push esi
push dword [ebp + 0x6c]
mov ecx, eax
push dword [ebp + 0x68]
call fcn.0056cd16
mov edi, eax
jmp 0x570a37
xor edi, edi
push esi
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.004784a4
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x570a51
mov eax, dword [eax]
push 0x56dc3e
push edi
xor edi, edi
push edi
push dword [ebp + 0x5c]
push eax
push edi
call fcn.005a09f4
push edi
push ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 4
mov esi, eax
call fcn.0040abbf
mov ecx, esi
call fcn.0056db29
push esi
push edi
push 0x801d
jmp 0x570d59
test edi, edi
je 0x570a9a
push 0x6a08c4
push edi
call fcn.004787ad
test al, al
jne 0x570ac4
cmp byte [ebp + 0x4f], 0
je 0x570ad2
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x570ab5
lea eax, [ebp - 0x138]
push str..btapp
push eax
call fcn.004781b3
test al, al
je 0x570ad2
push 0
push 0
push 0x8023
jmp 0x570d59
mov eax, dword [ebp + 0x64]
shr eax, 2
and al, 1
movzx eax, al
push eax
sub esp, 0x18
mov eax, esp
push esi
push eax
call fcn.004249d0
call fcn.005c8942
jmp 0x570d65
push 0x68f42c
push esi
call fcn.004787ad
test al, al
jne 0x570d65
push 0x68f4c8
push esi
call fcn.004787ad
test al, al
je 0x570b55
push 0
lea eax, [ebp + 0x5c]
push eax
push esi
call fcn.0045e379
push dword [ebp + 0x5c]
mov esi, eax
mov byte [ebp - 4], 0xe
push esi
mov dword [ebp + 0x64], esi
call fcn.0059655a
jmp 0x570b42
push ebx
push esi
mov dword [ebp - 4], 4
call fcn.0045b404
jmp 0x570d65
push str.magnet:
push esi
call fcn.00478730
test al, al
je 0x570c17
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push fcn.0049c661
push eax
push dword [ebp + 0x5c]
mov eax, dword [ebp + 0x64]
or eax, 0x200
push eax
push esi
call fcn.004c7237
push 0x70ed3c
lea ecx, [ebp + 0x34]
call fcn.0040a58f
push str.success
lea ecx, [ebp]
mov byte [ebp - 4], 0x10
call fcn.0040a58f
push str.add_magnetlink
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.0040a58f
push str.AddTorrent
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0x12
call fcn.0040a58f
fld dword [0x6dbfb0]
lea eax, [ebp + 0x34]
push ecx
fstp dword [esp]
xor esi, esi
mov byte [ebp - 4], 0x13
push esi
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1c]
push eax
push esi
call fcn.00663f2b
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0040abbf
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040abbf
push esi
push ebx
lea ecx, [ebp]
call fcn.0040abbf
lea ecx, [ebp + 0x34]
jmp 0x570961
push 0x68f514
push esi
call fcn.004787ad
test al, al
jne 0x570ac4
push 0x68f56c
push esi
call fcn.004787ad
test al, al
je 0x570c58
push 0x70ed3c
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push edi
push dword [ebp + 0x5c]
push esi
push 0
call fcn.005704d5
jmp 0x570d65
test edi, edi
je 0x570c6b
push 0x6db340
push edi
call fcn.004787ad
test al, al
jne 0x570c7e
push 0x68f47c
push esi
call fcn.004787ad
test al, al
je 0x570d36
push str.current.btskin
lea eax, [ebp + 0x34]
push eax
call fcn.0046dfa2
test dword [ebp + 0x64], 0x400
mov byte [ebp - 4], 0x14
je 0x570cb1
mov edi, str.user_set
push edi
call fcn.0040a79e
pop ecx
push eax
push edi
mov ecx, 0x76d4f4
call fcn.0040a517
push str.default
push esi
call fcn.006389aa
pop ecx
test eax, eax
mov eax, dword [ebp + 0x34]
pop ecx
jne 0x570cd7
cmp dword [ebp + 0x48], 8
jae 0x570cce
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x570d03
cmp dword [ebp + 0x48], 8
jae 0x570ce0
lea eax, [ebp + 0x34]
push eax
push esi
call fcn.006389aa
pop ecx
pop ecx
test eax, eax
je 0x570d03
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x570cf9
lea eax, [ebp + 0x34]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
call fcn.005d6da1
call fcn.005a74c7
push ebx
push ebx
call fcn.0059febb
call fcn.005dee4a
push dword [0x77ddd4]
call fcn.00572912
call fcn.005857cd
push 0
push ebx
lea ecx, [ebp + 0x34]
call fcn.0042386b
jmp 0x570d65
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push fcn.0049c661
push ebx
push dword [ebp + 0x5c]
push dword [ebp + 0x64]
push esi
call fcn.004c7237
push ebx
push ebx
push 0x803c
push dword [0x7a12c8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x168]
call fcn.0043fca6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x50]
pop ebp
ret 0x20