Function at 0x4cdff7
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
sub esp, 0x5c
mov eax, 0x69cc0d
call fcn.006375a8
sub esp, 0x40
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x34], ebx
call fcn.00492265
mov eax, dword [0x79fac4]
inc dword [0x79fb84]
push ebx
inc dword [eax]
call fcn.00492906
mov esi, dword [ebp + 0x68]
mov dword [0x79fae8], eax
cmp byte [0x79fb54], bl
jne 0x4ce054
mov eax, dword [0x79fad0]
push ebx
inc dword [eax]
call fcn.00492906
mov dword [0x79fae8], eax
call fcn.00492733
jmp 0x4ce061
mov byte [esi + 0xa5], 1
mov byte [0x79fb54], bl
mov bl, 1
mov byte [ebp + 0x6b], bl
call fcn.00475cf1
mov eax, dword [esi]
mov ecx, esi
and dword [ebp - 4], 0
call dword [eax + 0x34]
push eax
call fcn.0048a277
test eax, eax
je 0x4ce0a5
cmp dword [ebp + 0x74], 0
je 0x4ce5e6
mov esi, str.torrent_already_exists
push esi
call fcn.00426a30
pop ecx
mov ecx, dword [ebp + 0x74]
push eax
push esi
call fcn.004372ba
jmp 0x4ce5e6
test dword [ebp + 0x70], 0x200
mov edi, dword [0x7a4514]
mov dword [ebp + 0x58], edi
je 0x4ce1ab
xor eax, eax
cmp dword [esi + 0x20c], eax
je 0x4ce4de
push eax
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0045ea02
push 0xc4
mov byte [ebp - 4], 2
call fcn.00637305
pop ecx
mov dword [ebp + 0x30], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4ce0f7
mov ecx, eax
call fcn.00464b8a
jmp 0x4ce0f9
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp + 0x5c], eax
test eax, eax
je 0x4ce10d
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp + 0x5c]
lea ecx, [eax + 8]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x34]
cmp ecx, eax
je 0x4ce125
push 0xffffffffffffffff
push 0
push eax
call fcn.0042692e
push 0x4c
call fcn.0045e489
push 0x4c
mov edi, eax
push 0
push edi
call fcn.00651ed0
lea ecx, [edi + 0x18]
add esp, 0xc
lea eax, [ebp - 0x34]
cmp ecx, eax
je 0x4ce14f
push 0xffffffffffffffff
push 0
push eax
call fcn.0042692e
push dword [ebp + 0x6c]
lea eax, [ebp + 0x40]
push eax
call fcn.0047ae8a
push eax
mov ecx, edi
call fcn.0040d122
push 0
push 1
lea ecx, [ebp + 0x40]
call fcn.0040daff
lea ecx, [esi + 0x1fc]
cmp dword [ecx + 0x14], 0x10
jb 0x4ce17d
mov ecx, dword [ecx]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp + 0x5c]
push eax
push 0x4ce75d
push edi
push ecx
call fcn.0046581f
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 5
test eax, eax
je 0x4ce1a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x34]
jmp 0x4ce4ce
mov eax, dword [ebp + 0x70]
and eax, 0x10000
mov dword [ebp + 0x30], eax
test eax, eax
jne 0x4ce4db
call fcn.00489fe0
push eax
call fcn.00489fe6
mov edx, eax
xor ecx, ecx
mov edi, edx
mov dword [ebp + 0x38], edx
lea eax, [edi + 2]
mov dword [ebp + 0x5c], eax
mov ax, word [edi]
add edi, 2
cmp ax, cx
jne 0x4ce1d8
sub edi, dword [ebp + 0x5c]
sar edi, 1
test dword [ebp + 0x70], 0x100
jne 0x4ce21e
push edi
push edx
push dword [ebp + 0x6c]
call fcn.0065cdb1
add esp, 0xc
test eax, eax
jne 0x4ce21c
push dword [ebp + 0x6c]
call fcn.0045e8e7
mov ecx, eax
lea eax, [edi + 1]
sub ecx, dword [ebp + 0x6c]
sar ecx, 1
cmp ecx, eax
jbe 0x4ce4db
xor ecx, ecx
test bl, bl
je 0x4ce22c
mov bl, cl
mov byte [ebp + 0x6b], bl
call fcn.00475d32
push dword [ebp + 0x38]
lea eax, [ebp + 0x40]
mov ecx, esi
push eax
call fcn.004a3f0b
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov byte [ebp - 4], 6
jae 0x4ce24a
lea eax, [ebp + 0x40]
mov edi, dword [ebp + 0x6c]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x4ce40f
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x4ce26b
lea eax, [ebp + 0x40]
push eax
call fcn.00460273
test al, al
je 0x4ce293
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x4ce281
lea eax, [ebp + 0x40]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x4ce40f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x38], eax
test bl, bl
jne 0x4ce2aa
inc bl
mov byte [ebp + 0x6b], bl
call fcn.00475cf1
call fcn.00490bdb
push eax
push 2
lea ecx, [ebp + 0x20]
call fcn.00490637
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov byte [ebp - 4], 8
jae 0x4ce2ca
lea eax, [ebp + 0x40]
push edi
push 0x6d1c54
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x5c], eax
call fcn.00464a5c
push dword [ebp + 0x5c]
mov edi, 0x6d1c58
lea ecx, [ebp + 0x20]
push edi
call fcn.00464a5c
push dword [ebp + 0x38]
lea ecx, [ebp + 0x20]
push 0x6d187c
call fcn.00464a5c
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004905ec
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0xa
call fcn.004906e8
call fcn.00490bdb
push eax
push 0x22
lea ecx, [ebp + 0x10]
call fcn.00490637
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov byte [ebp - 4], 0xb
jae 0x4ce334
lea eax, [ebp + 0x40]
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.00464a5c
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp]
call fcn.004905ec
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xd
call fcn.004906e8
lea eax, [ebp - 0x1c]
push eax
call fcn.0049240b
test bl, bl
je 0x4ce36d
xor bl, bl
mov byte [ebp + 0x6b], bl
call fcn.00475d32
test byte [ebp + 0x70], 4
jne 0x4ce3b0
lea eax, [ebp]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004925b0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xe
jb 0x4ce38c
mov eax, dword [eax]
push eax
push 0x6b6d5c
push 0x35
call fcn.00492573
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4c]
mov edi, eax
push 0
push 1
call fcn.004267c2
jmp 0x4ce3b3
xor edi, edi
inc edi
cmp edi, 2
je 0x4ce3ee
test bl, bl
jne 0x4ce3c6
inc bl
mov byte [ebp + 0x6b], bl
call fcn.00475cf1
lea ecx, [ebp]
call fcn.004906e8
lea ecx, [ebp - 0x1c]
call fcn.004906e8
xor eax, eax
lea ecx, [ebp + 0x40]
push eax
push 1
mov byte [ebp - 4], al
call fcn.004267c2
mov eax, dword [ebp + 0x30]
jmp 0x4ce1b6
lea ecx, [ebp]
call fcn.004906e8
lea ecx, [ebp - 0x1c]
call fcn.004906e8
push 0
push 1
lea ecx, [ebp + 0x40]
call fcn.004267c2
jmp 0x4ce53c
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x4ce41b
lea eax, [ebp + 0x40]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
sub esp, 0x18
lea eax, [ebp + 0x40]
mov ecx, esp
push eax
call fcn.0042615e
mov ecx, esi
call fcn.004b3b73
test dword [ebp + 0x70], 0x4000
je 0x4ce46c
push edi
lea eax, [ebp - 0x4c]
push eax
call fcn.00427922
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 7
push ecx
push eax
mov dword [ebp + 0x34], 1
call fcn.0045ef25
test al, al
jne 0x4ce46c
mov bh, 1
jmp 0x4ce46e
xor bh, bh
test byte [ebp + 0x34], 1
mov dword [ebp - 4], 6
je 0x4ce487
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004267c2
test bh, bh
je 0x4ce4bd
push edi
push str.Deleting_original_torrent_file__s
call fcn.0040c884
add esp, 8
push 0x80
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4ce4bd
push edi
push str.Cant_delete_original_torrent_file__s
call fcn.00479c3c
pop ecx
pop ecx
test bl, bl
jne 0x4ce4cb
inc bl
mov byte [ebp + 0x6b], bl
call fcn.00475cf1
lea ecx, [ebp + 0x40]
xor eax, eax
push eax
push 1
mov byte [ebp - 4], al
call fcn.004267c2
mov edi, dword [ebp + 0x58]
inc dword [0x79fb24]
lea eax, [esi + 0x520]
cmp dword [eax + 0x14], 8
jb 0x4ce4f4
mov ecx, dword [eax]
jmp 0x4ce4f6
mov ecx, eax
test ecx, ecx
je 0x4ce50b
cmp dword [eax + 0x14], 8
jb 0x4ce502
mov eax, dword [eax]
push eax
push esi
push 7
call fcn.004848bf
mov eax, dword [ebp + 0x70]
shr eax, 1
and al, 1
movzx eax, al
push eax
push esi
call fcn.00489c80
test al, al
jne 0x4ce546
cmp dword [ebp + 0x74], 0
je 0x4ce53c
mov esi, str.torrent_already_exists
push esi
call fcn.00426a30
pop ecx
mov ecx, dword [ebp + 0x74]
push eax
push esi
call fcn.004372ba
xor eax, eax
mov dword [ebp + 0x3c], eax
jmp 0x4ce5e6
test edi, edi
jne 0x4ce55f
xor eax, eax
push eax
push eax
push 0x8068
push dword [0x7d3ed8]
call dword [sym.imp.USER32.dll_PostMessageW]
test byte [ebp + 0x70], 0x40
mov ecx, esi
je 0x4ce56e
call fcn.004afb1c
jmp 0x4ce594
mov eax, dword [esi]
push 0xffffffffffffffff
push 0
call dword [eax + 0x50]
cmp dword [0x79f434], 8
mov eax, dword [0x79f420]
jae 0x4ce58a
mov eax, 0x79f420
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.004a185f
test byte [ebp + 0x70], 0x10
je 0x4ce5ac
or dword [esi + 0x158], 0xffffffff
xor eax, eax
push eax
push eax
mov ecx, esi
call fcn.004a0beb
test dword [ebp + 0x70], 0x400
je 0x4ce5bc
or byte [esi + 0x144], 0x10
xor eax, eax
push eax
push eax
push eax
call fcn.0048a3e2
test byte [ebp + 0x70], 4
jne 0x4ce5e2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x184]
test al, al
jne 0x4ce5e2
push esi
push 6
call fcn.0048a60f
mov byte [ebp + 0x3c], 1
mov dword [ebp - 4], 0x11
test bl, bl
je 0x4ce5f6
call fcn.00475d32
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x60]
pop ebp
ret 0x10