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

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x6d8b2f
call fcn.006899cc
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
mov eax, ebx
push edi
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x54], eax
call fcn.004a6f79
mov eax, dword [0x7e61c8]
inc dword [0x7e6288]
inc dword [0x7e61a8]
push ebx
inc dword [eax]
call fcn.004a76db
mov edi, dword [ebp + 0x6c]
mov dword [0x7e61ec], eax
cmp byte [0x7e6258], bl
jne 0x4e51a2
mov eax, dword [0x7e61d4]
push ebx
inc dword [eax]
call fcn.004a76db
mov dword [0x7e61ec], eax
call fcn.004a7529
jmp 0x4e51af
mov byte [edi + 0xa5], 1
mov byte [0x7e6258], bl
mov byte [ebp + 0x6f], 1
call fcn.00489fdc
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], ebx
call dword [eax + 0x34]
push eax
call fcn.004a006a
test eax, eax
jne 0x4e566e
cmp dword [0x7eac54], eax
mov eax, dword [ebp + 0x74]
sete byte [ebp + 0x5f]
and eax, 0x200
je 0x4e52c0
cmp dword [edi + 0x228], ebx
je 0x4e562e
push ebx
push ebx
lea eax, [ebp + 0x3c]
push eax
call fcn.0046f6b4
push 0xc4
mov byte [ebp - 4], 2
call fcn.0068973d
pop ecx
mov dword [ebp + 0x54], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4e5222
mov ecx, eax
call fcn.00476b67
jmp 0x4e5224
mov eax, ebx
mov byte [ebp - 4], 2
mov dword [ebp + 0x60], eax
test eax, eax
je 0x4e5238
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp + 0x60]
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 4
push ecx
lea ecx, [eax + 8]
call fcn.004480a2
push 0x4c
call fcn.0046f1ab
push 0x4c
mov esi, eax
push ebx
push esi
call fcn.0068ccc0
add esp, 0xc
lea eax, [ebp + 0x3c]
lea ecx, [esi + 0x18]
push eax
call fcn.004480a2
push dword [ebp + 0x70]
lea eax, [ebp - 0x24]
push eax
call fcn.0048fcb1
push eax
mov ecx, esi
call fcn.00415dd0
lea ecx, [ebp - 0x24]
call fcn.0040fad0
lea eax, [edi + 0x218]
cmp dword [eax + 0x14], 0x10
jb 0x4e5293
mov eax, dword [eax]
push ebx
push ebx
push ebx
lea ecx, [ebp + 0x60]
push ecx
push 0x4e5885
push esi
push eax
call fcn.004779e8
mov eax, dword [ebp + 0x60]
mov byte [ebp - 4], 5
test eax, eax
je 0x4e5623
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4e5623
mov eax, dword [ebp + 0x74]
mov esi, dword [ebp + 0x70]
and eax, 0x10000
mov dword [ebp + 0x54], eax
test eax, eax
jne 0x4e562e
call fcn.0049fdc6
push eax
call fcn.0049fdcc
mov edx, eax
mov ecx, edx
mov dword [ebp + 0x38], edx
lea eax, [ecx + 2]
mov dword [ebp + 0x58], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4e52ee
sub ecx, dword [ebp + 0x58]
sar ecx, 1
test dword [ebp + 0x74], 0x100
mov dword [ebp + 0x58], ecx
jne 0x4e5331
push ecx
push edx
push esi
call fcn.00698d0f
add esp, 0xc
test eax, eax
jne 0x4e5331
push esi
call fcn.0046f5a7
mov ecx, eax
mov eax, dword [ebp + 0x58]
sub ecx, esi
sar ecx, 1
inc eax
cmp ecx, eax
jbe 0x4e562e
cmp byte [ebp + 0x6f], 0
je 0x4e533f
mov byte [ebp + 0x6f], bl
call fcn.0048a01d
push dword [ebp + 0x38]
lea eax, [ebp + 0x3c]
mov ecx, edi
push eax
call fcn.004bacac
cmp dword [ebp + 0x50], 8
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 6
jb 0x4e535d
mov eax, dword [ebp + 0x3c]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x4e550e
cmp dword [ebp + 0x50], 8
lea eax, [ebp + 0x3c]
jb 0x4e537a
mov eax, dword [ebp + 0x3c]
push eax
call fcn.00471890
test al, al
je 0x4e53a1
cmp dword [ebp + 0x50], 8
lea eax, [ebp + 0x3c]
jb 0x4e5390
mov eax, dword [ebp + 0x3c]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x4e550e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp byte [ebp + 0x6f], 0
mov dword [ebp + 0x38], eax
jne 0x4e53b9
mov byte [ebp + 0x6f], 1
call fcn.00489fdc
call fcn.004a5ea3
push eax
push 2
lea ecx, [ebp + 0x10]
call fcn.004a5cc2
push esi
push 0x70de4c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 8
call fcn.00476974
cmp dword [ebp + 0x50], 8
lea eax, [ebp + 0x3c]
jb 0x4e53e7
mov eax, dword [ebp + 0x3c]
push eax
push 0x70de50
lea ecx, [ebp + 0x10]
call fcn.00476974
push dword [ebp + 0x38]
lea ecx, [ebp + 0x10]
push 0x70da70
call fcn.00476974
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a5c7a
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xa
call fcn.004a5d2b
call fcn.004a5ea3
push eax
push 0x22
lea ecx, [ebp + 0x28]
call fcn.004a5cc2
cmp dword [ebp + 0x50], 8
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 0xb
jb 0x4e543d
mov eax, dword [ebp + 0x3c]
push eax
push 0x70de50
lea ecx, [ebp + 0x28]
call fcn.00476974
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp]
call fcn.004a5c7a
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0xd
call fcn.004a5d2b
lea eax, [ebp - 0x1c]
push eax
call fcn.004a716d
cmp byte [ebp + 0x6f], 0
je 0x4e547a
mov byte [ebp + 0x6f], bl
call fcn.0048a01d
test byte [ebp + 0x74], 4
jne 0x4e54bf
lea eax, [ebp]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004a7333
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xe
jb 0x4e5499
mov eax, dword [eax]
push eax
push 0x6f60f4
push 0x35
call fcn.004a72f8
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.0044823e
cmp esi, 2
je 0x4e54f1
mov esi, dword [ebp + 0x70]
cmp byte [ebp + 0x6f], 0
jne 0x4e54ce
mov byte [ebp + 0x6f], 1
call fcn.00489fdc
lea ecx, [ebp]
call fcn.004a5d2b
lea ecx, [ebp - 0x1c]
call fcn.004a5d2b
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], bl
call fcn.0044823e
mov eax, dword [ebp + 0x54]
jmp 0x4e52ce
lea ecx, [ebp]
call fcn.004a5d2b
lea ecx, [ebp - 0x1c]
call fcn.004a5d2b
lea ecx, [ebp + 0x3c]
call fcn.0044823e
jmp 0x4e5721
cmp dword [ebp + 0x50], 8
lea eax, [ebp + 0x3c]
jb 0x4e551a
mov eax, dword [ebp + 0x3c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
sub esp, 0x18
lea eax, [ebp + 0x3c]
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00448193
mov ecx, edi
call fcn.004cc2aa
test dword [ebp + 0x74], 0x4000
je 0x4e5591
xor eax, eax
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
test esi, esi
je 0x4e556c
push esi
lea ecx, [ebp + 0x20]
call fcn.004482e2
mov eax, dword [ebp + 0x60]
or eax, 3
mov byte [ebp - 4], 7
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0046fe2f
mov byte [ebp + 0x73], 1
test al, al
je 0x4e5594
mov byte [ebp + 0x73], bl
test byte [ebp + 0x60], 1
mov dword [ebp - 4], 6
je 0x4e55dc
mov eax, dword [ebp + 0x34]
cmp eax, 8
jb 0x4e55dc
mov ecx, dword [ebp + 0x20]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, 0x1000
jb 0x4e55d3
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
cmp byte [ebp + 0x73], 0
je 0x4e5614
push esi
push str.Deleting_original_torrent_file__s
call fcn.0040f570
add esp, 8
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4e5614
push esi
push str.Cant_delete_original_torrent_file__s
call fcn.0048e961
pop ecx
pop ecx
cmp byte [ebp + 0x6f], 0
jne 0x4e5623
mov byte [ebp + 0x6f], 1
call fcn.00489fdc
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], bl
call fcn.0044823e
inc dword [0x7e6228]
lea eax, [edi + 0x57c]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4e5644
mov ecx, dword [eax]
test ecx, ecx
je 0x4e5659
cmp dword [eax + 0x14], 8
jb 0x4e5650
mov eax, dword [eax]
push eax
push edi
push 7
call fcn.0049b9e5
mov eax, dword [ebp + 0x74]
shr eax, 1
and al, 1
movzx eax, al
push eax
push edi
call fcn.0049fa5a
test al, al
jne 0x4e5688
mov ecx, dword [ebp + 0x78]
test ecx, ecx
je 0x4e5721
push str.torrent_already_exists
call fcn.004482e2
jmp 0x4e5721
cmp byte [ebp + 0x5f], 0
je 0x4e56a1
push ebx
push ebx
push 0x8068
push dword [0x81d248]
call dword [sym.imp.USER32.dll_PostMessageW]
test byte [ebp + 0x74], 0x40
mov ecx, edi
je 0x4e56b0
call fcn.004c7be8
jmp 0x4e56d5
mov eax, dword [edi]
push 0xffffffffffffffff
push ebx
call dword [eax + 0x50]
cmp dword [0x7e5b0c], 8
mov eax, 0x7e5af8
jb 0x4e56cb
mov eax, dword [0x7e5af8]
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.004b7e0f
test byte [ebp + 0x74], 0x10
je 0x4e56eb
or dword [edi + 0x16c], 0xffffffff
mov ecx, edi
push ebx
push ebx
call fcn.004b7090
test dword [ebp + 0x74], 0x400
je 0x4e56fb
or byte [edi + 0x158], 0x10
push ebx
push ebx
push ebx
call fcn.004a01d8
test byte [ebp + 0x74], 4
jne 0x4e571f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x184]
test al, al
jne 0x4e571f
push edi
push 6
call fcn.004a03ff
mov bl, 1
cmp byte [ebp + 0x6f], 0
mov dword [ebp - 4], 0x11
je 0x4e5733
call fcn.0048a01d
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x64
leave
ret 0x10