Function at 0x57d6bb
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
sub esp, 0x4c
mov eax, 0x6a509d
call fcn.006375a8
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 0x57d6f4
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.0047ae8a
xor ebx, ebx
inc ebx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], bl
jb 0x57d714
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.00442ccb
push 0
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0040daff
mov edi, dword [ebp + 0x60]
mov eax, str.NULL
mov ecx, edi
test edi, edi
jne 0x57d749
mov ecx, eax
cmp dword [ebp + 0x5c], 0
je 0x57d752
mov eax, dword [ebp + 0x5c]
push ecx
push eax
push esi
push str.LoadKnownFileType_called_with__s___s___s_n
call fcn.0040c884
add esp, 0x10
push 0x6c0634
push esi
call fcn.0047b116
test al, al
je 0x57d9f4
test edi, edi
je 0x57d788
push str.torrent
push edi
call fcn.0047b116
test al, al
jne 0x57d7ba
cmp byte [ebp + 0x4f], 0
je 0x57d86f
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x57d7a7
lea eax, [ebp - 0x138]
push 0x6c4748
push eax
call fcn.0047ab99
test al, al
je 0x57d86f
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 0x57a75d
call fcn.0057d575
push 0x73938c
lea ecx, [ebp + 0x1c]
call fcn.0040d4cf
push str.success
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0040d4cf
push str.http_add_torrent
lea ecx, [ebp]
mov byte [ebp - 4], 6
call fcn.0040d4cf
push str.AddTorrent
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 7
call fcn.0040d4cf
fld dword [0x704e50]
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.0068898a
push esi
push ebx
lea ecx, [ebp + 0x34]
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp]
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040daff
lea ecx, [ebp + 0x1c]
push esi
push ebx
call fcn.0040daff
push esi
push esi
jmp 0x57dc54
test edi, edi
je 0x57d882
push str.btkey
push edi
call fcn.0047b193
test al, al
jne 0x57d8ac
cmp byte [ebp + 0x4f], 0
je 0x57d8ce
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x57d89d
lea eax, [ebp - 0x138]
push str..btkey
push eax
call fcn.0047ab99
test al, al
je 0x57d8ce
xor eax, eax
push eax
push 0xa0
push 4
push eax
push dword [ebp + 0x70]
push dword [ebp + 0x5c]
push esi
push eax
push 0x57a67d
call fcn.0057d575
jmp 0x57dc65
test edi, edi
je 0x57d8e1
push 0x703cb4
push edi
call fcn.0047b193
test al, al
jne 0x57d90f
cmp byte [ebp + 0x4f], 0
je 0x57d987
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x57d900
lea eax, [ebp - 0x138]
push str..btinstall
push eax
call fcn.0047ab99
test al, al
je 0x57d987
push 0x38
call fcn.00637305
pop ecx
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x57d935
push edi
push esi
push dword [ebp + 0x6c]
mov ecx, eax
push dword [ebp + 0x68]
call fcn.00579a61
mov edi, eax
jmp 0x57d937
xor edi, edi
push esi
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.0047ae8a
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x57d951
mov eax, dword [eax]
push 0x57aa2c
push edi
xor edi, edi
push edi
push dword [ebp + 0x5c]
push eax
push edi
call fcn.005ad9e7
push edi
push ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 4
mov esi, eax
call fcn.0040daff
mov ecx, esi
call fcn.0057a917
push esi
push edi
push 0x801d
jmp 0x57dc59
test edi, edi
je 0x57d99a
push 0x6c8c74
push edi
call fcn.0047b193
test al, al
jne 0x57d9c4
cmp byte [ebp + 0x4f], 0
je 0x57d9d2
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x57d9b5
lea eax, [ebp - 0x138]
push str..btapp
push eax
call fcn.0047ab99
test al, al
je 0x57d9d2
push 0
push 0
push 0x8023
jmp 0x57dc59
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.00427922
call fcn.005d5ecc
jmp 0x57dc65
push 0x6b7724
push esi
call fcn.0047b193
test al, al
jne 0x57dc65
push 0x6b77c0
push esi
call fcn.0047b193
test al, al
je 0x57da55
push 0
lea eax, [ebp + 0x5c]
push eax
push esi
call fcn.0046146c
push dword [ebp + 0x5c]
mov esi, eax
mov byte [ebp - 4], 0xe
push esi
mov dword [ebp + 0x64], esi
call fcn.005a3cb0
jmp 0x57da42
push ebx
push esi
mov dword [ebp - 4], 4
call fcn.0045e47c
jmp 0x57dc65
push str.magnet:
push esi
call fcn.0047b116
test al, al
je 0x57db17
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push fcn.004a067f
push eax
push dword [ebp + 0x5c]
mov eax, dword [ebp + 0x64]
or eax, 0x200
push eax
push esi
call fcn.004cba39
push 0x73938c
lea ecx, [ebp + 0x34]
call fcn.0040d4cf
push str.success
lea ecx, [ebp]
mov byte [ebp - 4], 0x10
call fcn.0040d4cf
push str.add_magnetlink
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.0040d4cf
push str.AddTorrent
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0x12
call fcn.0040d4cf
fld dword [0x704e50]
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.0068898a
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp]
call fcn.0040daff
lea ecx, [ebp + 0x34]
jmp 0x57d861
push 0x6b780c
push esi
call fcn.0047b193
test al, al
jne 0x57d9c4
push 0x6b7864
push esi
call fcn.0047b193
test al, al
je 0x57db58
push 0x73938c
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push edi
push dword [ebp + 0x5c]
push esi
push 0
call fcn.0057d3d5
jmp 0x57dc65
test edi, edi
je 0x57db6b
push 0x704170
push edi
call fcn.0047b193
test al, al
jne 0x57db7e
push 0x6b7774
push esi
call fcn.0047b193
test al, al
je 0x57dc36
push str.current.btskin
lea eax, [ebp + 0x34]
push eax
call fcn.00470ce5
test dword [ebp + 0x64], 0x400
mov byte [ebp - 4], 0x14
je 0x57dbb1
mov edi, str.user_set
push edi
call fcn.0040d6de
pop ecx
push eax
push edi
mov ecx, 0x79fe7c
call fcn.0040d457
push str.default
push esi
call fcn.0065cdeb
pop ecx
test eax, eax
mov eax, dword [ebp + 0x34]
pop ecx
jne 0x57dbd7
cmp dword [ebp + 0x48], 8
jae 0x57dbce
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x57dc03
cmp dword [ebp + 0x48], 8
jae 0x57dbe0
lea eax, [ebp + 0x34]
push eax
push esi
call fcn.0065cdeb
pop ecx
pop ecx
test eax, eax
je 0x57dc03
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x57dbf9
lea eax, [ebp + 0x34]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
call fcn.005e4532
call fcn.005b44bb
push ebx
push ebx
call fcn.005aceae
call fcn.005ec4a0
push dword [0x7b0818]
call fcn.0057f812
call fcn.0059286d
push 0
push ebx
lea ecx, [ebp + 0x34]
call fcn.004267c2
jmp 0x57dc65
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push fcn.004a067f
push ebx
push dword [ebp + 0x5c]
push dword [ebp + 0x64]
push esi
call fcn.004cba39
push ebx
push ebx
push 0x803c
push dword [0x7d3ed8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x168]
call fcn.00442e48
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x50]
pop ebp
ret 0x20