Function at 0x41e824
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
inc dword [0x54b9d4]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], esi
call fcn.0046e5c1
mov ecx, esi
call fcn.004908d5
test eax, eax
je 0x41e868
call fcn.0046e5dd
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41e861
push str.torrent_already_exists
call fcn.0048ea75
xor al, al
jmp 0x41eb52
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [0x549c08], edi
sete byte [ebp + 0xf]
and eax, 0x200
mov dword [ebp - 0x10], eax
je 0x41e900
cmp dword [esi + 0x2b4], edi
je 0x41e900
xor edx, edx
xor ecx, ecx
call fcn.00472785
lea ecx, [ebp - 0x38]
mov ebx, eax
call fcn.004015b4
push 0x10
pop ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
call fcn.0046b3f1
mov ecx, dword [ebp - 8]
mov esi, eax
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi + 4], ebx
call fcn.0048c271
mov ecx, eax
call fcn.00422400
mov dword [esi], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040917f
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2b4]
push 0x41e47e
mov edx, esi
call fcn.00449eb5
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41e8fd
call fcn.00407ac5
mov esi, dword [ebp - 4]
cmp dword [ebp - 0x10], 0
jne 0x41ea73
test byte [esi + 0x1cb], 0x80
jne 0x41ea73
call fcn.00490034
mov ecx, eax
call fcn.0048ff8b
mov edi, eax
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41e928
sub eax, edx
sar eax, 1
test dword [ebp + 8], 0x100
mov ebx, eax
jne 0x41e968
push ebx
push edi
push dword [ebp - 8]
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x41e968
mov ecx, dword [ebp - 8]
call fcn.004a21a0
sub eax, dword [ebp - 8]
sar eax, 1
inc ebx
cmp eax, ebx
jbe 0x41ea73
push edi
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0040a1cf
push 0
lea ecx, [ebp - 4]
call fcn.0048ea50
mov ebx, dword [sym.imp.KERNEL32.DLL_CopyFileW]
push eax
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x41ea47
lea ecx, [ebp - 4]
call fcn.0048ea50
mov ecx, eax
call fcn.004a4bf3
test al, al
je 0x41e9bd
push 0
lea ecx, [ebp - 4]
call fcn.0048ea50
push eax
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x41ea47
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call fcn.0046e5dd
mov ebx, dword [0x551518]
mov ecx, edi
call fcn.0046e693
push eax
push edi
lea ecx, [ebp - 4]
call fcn.0048ea50
push eax
push dword [ebp - 8]
push ebx
call fcn.0041ffc1
add esp, 0x14
test byte [ebp + 8], 4
jne 0x41ea20
mov edi, dword [0x551514]
lea ecx, [ebp - 4]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x35
call fcn.0048ea50
push eax
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0046960b
add esp, 0xc
jmp 0x41ea23
push 2
pop eax
cmp eax, 2
je 0x41ea3a
call fcn.0046e5c1
lea ecx, [ebp - 4]
call fcn.0048e75f
jmp 0x41e90a
lea ecx, [ebp - 4]
call fcn.0048e75f
jmp 0x41e861
push 0x80
lea ecx, [ebp - 4]
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea ecx, [ebp - 4]
call fcn.0048ea50
push eax
mov ecx, esi
call fcn.00408876
lea ecx, [ebp - 4]
call fcn.0048e75f
inc dword [0x54b998]
mov ebx, dword [esi + 0x46c]
xor edi, edi
cmp ebx, edi
je 0x41eac2
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x549bcc
call fcn.00404618
mov ecx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0xc]
push eax
call fcn.00403c7a
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.00403954
push 7
mov edx, esi
pop ecx
call fcn.0048ba63
mov ecx, dword [ebp - 0xc]
cmp ecx, edi
je 0x41eac2
call fcn.004022e4
mov edx, dword [ebp + 8]
shr edx, 1
and dl, 1
mov ecx, esi
call fcn.0049063d
cmp byte [ebp + 0xf], 0
je 0x41eaea
push edi
push edi
push 0x805f
push dword [0x54bccc]
call dword [sym.imp.USER32.dll_PostMessageW]
test byte [ebp + 8], 0x40
je 0x41eaf9
mov ecx, esi
call fcn.0041a8b0
jmp 0x41eb1b
test byte [esi + 0x1cb], 0x80
jne 0x41eb0c
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.00415584
push 0xffffffffffffffff
push dword [0x54b174]
mov ecx, esi
call fcn.0040f793
test byte [ebp + 8], 0x10
je 0x41eb31
or dword [esi + 0x1d8], 0xffffffff
push edi
push edi
mov ecx, esi
call fcn.00409d0f
test dword [ebp + 8], 0x400
je 0x41eb41
or byte [esi + 0x1cc], 8
push edi
xor edx, edx
xor ecx, ecx
call fcn.0049173e
call fcn.0046e5dd
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8