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

Disassembly:
mov eax, 0x6aa8ce
call fcn.006375a8
sub esp, 0x260
push ebx
push esi
push edi
push 0x466
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call fcn.005c75ef
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5db061
lea eax, [ebp - 0x24]
push eax
call fcn.0045e8e7
push eax
lea eax, [ebp - 0x3c]
push str._s.torrent
push eax
call fcn.004638e7
add esp, 0xc
lea esi, [edi + 0x54]
mov ecx, esi
push eax
call fcn.0042623d
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004267c2
push 0x1807
push esi
push 0x75
call fcn.00588778
push eax
push 0x7a
call fcn.00588778
push eax
call fcn.00594b58
test al, al
je 0x5db110
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5db0bb
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5db131
cmp dword [ebp - 0x14], 0
je 0x5db0d3
push 0x77
jmp 0x5db0d5
push 0x6f
call fcn.00588778
cmp dword [ebp - 0x10], 8
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
jae 0x5db0f6
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.00589668
add esp, 0xc
mov ecx, edi
push 0x466
call fcn.005dafee
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004267c2
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.005c75ef
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 1
jae 0x5db152
lea eax, [ebp - 0x64]
push eax
call fcn.0068aec6
test eax, eax
je 0x5db1b2
xor ecx, ecx
sub eax, 1
je 0x5db175
sub eax, 1
je 0x5db171
sub eax, 1
jne 0x5db17e
push 0x70
jmp 0x5db177
push 0x73
jmp 0x5db177
push 0x7d
call fcn.00588778
mov ecx, eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 1
push eax
mov dword [ebp - 0x40], 0x24
call fcn.00589668
pop ecx
pop ecx
cmp eax, 6
je 0x5db1a3
push esi
jmp 0x5db333
push 0x6b6e68
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.0058af31
test al, al
je 0x5db23f
push 0x7a39a4
call fcn.00469175
call fcn.004cb0ec
movzx eax, ax
mov esi, 0x7a39c0
push esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 2
push eax
call fcn.00571dff
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
call fcn.00571ec7
push 0x7a39a4
call fcn.00469268
push 0x310
call fcn.00637305
pop ecx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x5db230
push 0x20
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.00527d8b
jmp 0x5db232
xor eax, eax
mov ecx, dword [edi + 0x3c]
push eax
mov byte [ebp - 4], 1
call fcn.0068ac0b
test bl, 0x10
je 0x5db31f
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 0x5db29a
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00437471
test eax, eax
jne 0x5db29a
push 0x76
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x124
call fcn.00588778
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00589668
pop ecx
pop ecx
cmp eax, 6
jne 0x5db32e
mov ecx, dword [edi + 0x3c]
lea eax, [ebp - 0x24]
push eax
call fcn.0068ac87
mov ecx, edi
test al, al
jne 0x5db2e6
push 0x466
call fcn.005dafee
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x30
jae 0x5db2cc
lea eax, [ebp - 0x24]
push eax
push 0x77
call fcn.00588778
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00589668
add esp, 0xc
jmp 0x5db397
lea eax, [ebp - 0x3c]
push eax
call fcn.005db4c0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x5db2fb
mov eax, dword [eax]
push eax
push 0
mov ecx, edi
call fcn.005dab02
and dword [edi + 0x30], 0
lea ecx, [ebp - 0x3c]
push 0
push 1
mov bl, al
mov byte [ebp - 4], 1
call fcn.004267c2
test bl, bl
jmp 0x5db32c
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.005dad2a
test al, al
jne 0x5db33c
push 0x466
mov ecx, edi
call fcn.005dafee
jmp 0x5db397
mov ecx, dword [edi + 0x3c]
call fcn.0068a5a4
or eax, edx
mov ecx, edi
jne 0x5db358
push 0x466
call fcn.005dafee
push 0x6c
jmp 0x5db378
call fcn.005dafaa
mov ecx, dword [edi + 0x3c]
push eax
call fcn.0068ac18
mov ecx, edi
test al, al
jne 0x5db39b
push 0x431
call fcn.005dafee
push 0x78
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
call fcn.00588778
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00589668
pop ecx
pop ecx
xor bl, bl
jmp 0x5db3d2
sub esp, 0x18
mov eax, esp
push 0x466
push eax
call fcn.005c75ef
push 0x79f948
call fcn.0046bd2c
mov eax, dword [edi + 0x3c]
mov ecx, edi
push 0x54c
mov esi, dword [eax]
call fcn.0058af31
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.004267c2
jmp 0x5db112