Function at 0x5cda89
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x6841d7
call fcn.0062921c
sub esp, 0x260
push ebx
push esi
push edi
push 0x466
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call fcn.005ba77a
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5cdabc
lea eax, [ebp - 0x24]
push eax
call fcn.0045b811
push eax
lea eax, [ebp - 0x3c]
push str._s.torrent
push eax
call fcn.004607f4
add esp, 0xc
lea esi, [edi + 0x54]
mov ecx, esi
push eax
call fcn.004232e6
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.0042386b
push 0x1807
push esi
push 0x75
call fcn.0057b788
push eax
push 0x7a
call fcn.0057b788
push eax
call fcn.00587bac
test al, al
je 0x5cdb6b
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5cdb16
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5cdb8c
cmp dword [ebp - 0x14], 0
je 0x5cdb2e
push 0x77
jmp 0x5cdb30
push 0x6f
call fcn.0057b788
cmp dword [ebp - 0x10], 8
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
jae 0x5cdb51
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.0057c60a
add esp, 0xc
mov ecx, edi
push 0x466
call fcn.005cda49
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.0042386b
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x42d
lea eax, [ebp - 0x64]
push esi
push eax
mov ecx, edi
call fcn.005ba77a
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 1
jae 0x5cdbad
lea eax, [ebp - 0x64]
push eax
call fcn.00666467
test eax, eax
je 0x5cdc0d
xor ecx, ecx
sub eax, 1
je 0x5cdbd0
sub eax, 1
je 0x5cdbcc
sub eax, 1
jne 0x5cdbd9
push 0x70
jmp 0x5cdbd2
push 0x73
jmp 0x5cdbd2
push 0x7d
call fcn.0057b788
mov ecx, eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 1
push eax
mov dword [ebp - 0x40], 0x24
call fcn.0057c60a
pop ecx
pop ecx
cmp eax, 6
je 0x5cdbfe
push esi
jmp 0x5cdd8e
push 0x68eb70
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [edi]
mov ecx, edi
push 1
mov byte [edi + 0x50], 0
call dword [eax + 0x48]
push 0x6b9
mov ecx, edi
call fcn.0057def2
test al, al
je 0x5cdc9a
push 0x77101c
call fcn.00465e86
call fcn.004c68c9
movzx eax, ax
mov esi, 0x771038
push esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 2
push eax
call fcn.005650ec
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
call fcn.005651b4
push 0x77101c
call fcn.00465f79
push 0x310
call fcn.006291e1
pop ecx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x5cdc8b
push 0x20
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.0051b35c
jmp 0x5cdc8d
xor eax, eax
mov ecx, dword [edi + 0x3c]
push eax
mov byte [ebp - 4], 1
call fcn.006661ac
test bl, 0x10
je 0x5cdd7a
xor ebx, ebx
lea eax, [ebp - 0x26c]
inc ebx
push ebx
push 5
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x5cdcf5
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0043429b
test eax, eax
jne 0x5cdcf5
push 0x76
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x124
call fcn.0057b788
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0057c60a
pop ecx
pop ecx
cmp eax, 6
jne 0x5cdd89
mov ecx, dword [edi + 0x3c]
lea eax, [ebp - 0x24]
push eax
call fcn.00666228
mov ecx, edi
test al, al
jne 0x5cdd41
push 0x466
call fcn.005cda49
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x30
jae 0x5cdd27
lea eax, [ebp - 0x24]
push eax
push 0x77
call fcn.0057b788
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0057c60a
add esp, 0xc
jmp 0x5cddf2
lea eax, [ebp - 0x3c]
push eax
call fcn.005cdf1b
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x5cdd56
mov eax, dword [eax]
push eax
push 0
mov ecx, edi
call fcn.005cd55d
and dword [edi + 0x30], 0
lea ecx, [ebp - 0x3c]
push 0
push 1
mov bl, al
mov byte [ebp - 4], 1
call fcn.0042386b
test bl, bl
jmp 0x5cdd87
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.005cd785
test al, al
jne 0x5cdd97
push 0x466
mov ecx, edi
call fcn.005cda49
jmp 0x5cddf2
mov ecx, dword [edi + 0x3c]
call fcn.00665b45
or eax, edx
mov ecx, edi
jne 0x5cddb3
push 0x466
call fcn.005cda49
push 0x6c
jmp 0x5cddd3
call fcn.005cda05
mov ecx, dword [edi + 0x3c]
push eax
call fcn.006661b9
mov ecx, edi
test al, al
jne 0x5cddf6
push 0x431
call fcn.005cda49
push 0x78
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
call fcn.0057b788
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0057c60a
pop ecx
pop ecx
xor bl, bl
jmp 0x5cde2d
sub esp, 0x18
mov eax, esp
push 0x466
push eax
call fcn.005ba77a
push 0x76cfe0
call fcn.00468a45
mov eax, dword [edi + 0x3c]
mov ecx, edi
push 0x54c
mov esi, dword [eax]
call fcn.0057def2
mov ecx, dword [edi + 0x3c]
movzx eax, al
push eax
call dword [esi + 4]
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.0042386b
jmp 0x5cdb6d