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

Disassembly:
push ebp
sub esp, 0x5c
mov eax, 0x6b45dd
call fcn.00651da4
sub esp, 0x40
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x34], ebx
call fcn.004918d0
mov eax, dword [0x7c23e0]
inc dword [0x7c24a0]
inc dword [0x7c23c0]
push ebx
inc dword [eax]
call fcn.00491f86
mov esi, dword [ebp + 0x68]
mov dword [0x7c2404], eax
cmp byte [0x7c2470], bl
jne 0x4cdfee
mov eax, dword [0x7c23ec]
push ebx
inc dword [eax]
call fcn.00491f86
mov dword [0x7c2404], eax
call fcn.00491db3
jmp 0x4cdffb
mov byte [esi + 0xa5], 1
mov byte [0x7c2470], bl
mov bl, 1
mov byte [ebp + 0x6b], bl
call fcn.00475363
mov eax, dword [esi]
mov ecx, esi
and dword [ebp - 4], 0
call dword [eax + 0x34]
push eax
call fcn.00489d3d
test eax, eax
je 0x4ce03f
cmp dword [ebp + 0x74], 0
je 0x4ce580
mov esi, str.torrent_already_exists
push esi
call fcn.004287c6
pop ecx
mov ecx, dword [ebp + 0x74]
push eax
push esi
call fcn.004286de
jmp 0x4ce580
test dword [ebp + 0x70], 0x200
mov edi, dword [0x7c6e70]
mov dword [ebp + 0x58], edi
je 0x4ce145
xor eax, eax
cmp dword [esi + 0x20c], eax
je 0x4ce478
push eax
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0045c940
push 0xc4
mov byte [ebp - 4], 2
call fcn.00651ae6
pop ecx
mov dword [ebp + 0x30], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4ce091
mov ecx, eax
call fcn.00463684
jmp 0x4ce093
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp + 0x5c], eax
test eax, eax
je 0x4ce0a7
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 0x4ce0bf
push 0xffffffffffffffff
push 0
push eax
call fcn.00428657
push 0x4c
call fcn.0045c47c
push 0x4c
mov edi, eax
push 0
push edi
call fcn.0066c620
lea ecx, [edi + 0x18]
add esp, 0xc
lea eax, [ebp - 0x34]
cmp ecx, eax
je 0x4ce0e9
push 0xffffffffffffffff
push 0
push eax
call fcn.00428657
push dword [ebp + 0x6c]
lea eax, [ebp + 0x40]
push eax
call fcn.0047abab
push eax
mov ecx, edi
call fcn.0040f0f2
push 0
push 1
lea ecx, [ebp + 0x40]
call fcn.0040facf
lea ecx, [esi + 0x1fc]
cmp dword [ecx + 0x14], 0x10
jb 0x4ce117
mov ecx, dword [ecx]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp + 0x5c]
push eax
push 0x4ce6f7
push edi
push ecx
call fcn.00464423
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 5
test eax, eax
je 0x4ce13d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x34]
jmp 0x4ce468
mov eax, dword [ebp + 0x70]
and eax, 0x10000
mov dword [ebp + 0x30], eax
test eax, eax
jne 0x4ce475
call fcn.00489aa6
push eax
call fcn.00489aac
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 0x4ce172
sub edi, dword [ebp + 0x5c]
sar edi, 1
test dword [ebp + 0x70], 0x100
jne 0x4ce1b8
push edi
push edx
push dword [ebp + 0x6c]
call fcn.00677580
add esp, 0xc
test eax, eax
jne 0x4ce1b6
push dword [ebp + 0x6c]
call fcn.0045c825
mov ecx, eax
lea eax, [edi + 1]
sub ecx, dword [ebp + 0x6c]
sar ecx, 1
cmp ecx, eax
jbe 0x4ce475
xor ecx, ecx
test bl, bl
je 0x4ce1c6
mov bl, cl
mov byte [ebp + 0x6b], bl
call fcn.004753a4
push dword [ebp + 0x38]
lea eax, [ebp + 0x40]
mov ecx, esi
push eax
call fcn.004a3cbc
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov byte [ebp - 4], 6
jae 0x4ce1e4
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 0x4ce3a9
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x4ce205
lea eax, [ebp + 0x40]
push eax
call fcn.0045e721
test al, al
je 0x4ce22d
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x4ce21b
lea eax, [ebp + 0x40]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x4ce3a9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x38], eax
test bl, bl
jne 0x4ce244
inc bl
mov byte [ebp + 0x6b], bl
call fcn.00475363
call fcn.0049052c
push eax
push 2
lea ecx, [ebp + 0x20]
call fcn.0048ffa4
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov byte [ebp - 4], 8
jae 0x4ce264
lea eax, [ebp + 0x40]
push edi
push 0x6ec0ec
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x5c], eax
call fcn.00463556
push dword [ebp + 0x5c]
mov edi, 0x6ec0f0
lea ecx, [ebp + 0x20]
push edi
call fcn.00463556
push dword [ebp + 0x38]
lea ecx, [ebp + 0x20]
push 0x6ebd14
call fcn.00463556
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0048ff59
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0xa
call fcn.00490055
call fcn.0049052c
push eax
push 0x22
lea ecx, [ebp + 0x10]
call fcn.0048ffa4
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov byte [ebp - 4], 0xb
jae 0x4ce2ce
lea eax, [ebp + 0x40]
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.00463556
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp]
call fcn.0048ff59
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xd
call fcn.00490055
lea eax, [ebp - 0x1c]
push eax
call fcn.00491a76
test bl, bl
je 0x4ce307
xor bl, bl
mov byte [ebp + 0x6b], bl
call fcn.004753a4
test byte [ebp + 0x70], 4
jne 0x4ce34a
lea eax, [ebp]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00491c2d
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xe
jb 0x4ce326
mov eax, dword [eax]
push eax
push 0x6d201c
push 0x35
call fcn.00491bf0
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4c]
mov edi, eax
push 0
push 1
call fcn.004284eb
jmp 0x4ce34d
xor edi, edi
inc edi
cmp edi, 2
je 0x4ce388
test bl, bl
jne 0x4ce360
inc bl
mov byte [ebp + 0x6b], bl
call fcn.00475363
lea ecx, [ebp]
call fcn.00490055
lea ecx, [ebp - 0x1c]
call fcn.00490055
xor eax, eax
lea ecx, [ebp + 0x40]
push eax
push 1
mov byte [ebp - 4], al
call fcn.004284eb
mov eax, dword [ebp + 0x30]
jmp 0x4ce150
lea ecx, [ebp]
call fcn.00490055
lea ecx, [ebp - 0x1c]
call fcn.00490055
push 0
push 1
lea ecx, [ebp + 0x40]
call fcn.004284eb
jmp 0x4ce4d6
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x4ce3b5
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.0042812e
mov ecx, esi
call fcn.004b3a05
test dword [ebp + 0x70], 0x4000
je 0x4ce406
push edi
lea eax, [ebp - 0x4c]
push eax
call fcn.004295d6
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 7
push ecx
push eax
mov dword [ebp + 0x34], 1
call fcn.0045ce8e
test al, al
jne 0x4ce406
mov bh, 1
jmp 0x4ce408
xor bh, bh
test byte [ebp + 0x34], 1
mov dword [ebp - 4], 6
je 0x4ce421
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004284eb
test bh, bh
je 0x4ce457
push edi
push str.Deleting_original_torrent_file__s
call fcn.0040e854
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 0x4ce457
push edi
push str.Cant_delete_original_torrent_file__s
call fcn.0047995d
pop ecx
pop ecx
test bl, bl
jne 0x4ce465
inc bl
mov byte [ebp + 0x6b], bl
call fcn.00475363
lea ecx, [ebp + 0x40]
xor eax, eax
push eax
push 1
mov byte [ebp - 4], al
call fcn.004284eb
mov edi, dword [ebp + 0x58]
inc dword [0x7c2440]
lea eax, [esi + 0x528]
cmp dword [eax + 0x14], 8
jb 0x4ce48e
mov ecx, dword [eax]
jmp 0x4ce490
mov ecx, eax
test ecx, ecx
je 0x4ce4a5
cmp dword [eax + 0x14], 8
jb 0x4ce49c
mov eax, dword [eax]
push eax
push esi
push 7
call fcn.004845bc
mov eax, dword [ebp + 0x70]
shr eax, 1
and al, 1
movzx eax, al
push eax
push esi
call fcn.00489746
test al, al
jne 0x4ce4e0
cmp dword [ebp + 0x74], 0
je 0x4ce4d6
mov esi, str.torrent_already_exists
push esi
call fcn.004287c6
pop ecx
mov ecx, dword [ebp + 0x74]
push eax
push esi
call fcn.004286de
xor eax, eax
mov dword [ebp + 0x3c], eax
jmp 0x4ce580
test edi, edi
jne 0x4ce4f9
xor eax, eax
push eax
push eax
push 0x8068
push dword [0x7f9cc8]
call dword [sym.imp.USER32.dll_PostMessageW]
test byte [ebp + 0x70], 0x40
mov ecx, esi
je 0x4ce508
call fcn.004af97d
jmp 0x4ce52e
mov eax, dword [esi]
push 0xffffffffffffffff
push 0
call dword [eax + 0x50]
cmp dword [0x7c1d44], 8
mov eax, dword [0x7c1d30]
jae 0x4ce524
mov eax, 0x7c1d30
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.004a1609
test byte [ebp + 0x70], 0x10
je 0x4ce546
or dword [esi + 0x158], 0xffffffff
xor eax, eax
push eax
push eax
mov ecx, esi
call fcn.004a0995
test dword [ebp + 0x70], 0x400
je 0x4ce556
or byte [esi + 0x144], 0x10
xor eax, eax
push eax
push eax
push eax
call fcn.00489ea8
test byte [ebp + 0x70], 4
jne 0x4ce57c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x184]
test al, al
jne 0x4ce57c
push esi
push 6
call fcn.0048a0d5
mov byte [ebp + 0x3c], 1
mov dword [ebp - 4], 0x11
test bl, bl
je 0x4ce590
call fcn.004753a4
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