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

Disassembly:
mov eax, 0x6c2a5a
call fcn.00664608
sub esp, 0x264
push ebx
push esi
push edi
push 0x466
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call fcn.005e92a6
xor ebx, ebx
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
mov dword [ebp - 4], ebx
jb 0x60528e
mov eax, dword [ebp - 0x24]
push eax
call fcn.004517b0
push eax
lea eax, [ebp - 0x3c]
push str._s.torrent
push eax
call fcn.004577f2
add esp, 0xc
lea esi, [edi + 0x5c]
mov ecx, esi
push eax
call fcn.00427924
lea ecx, [ebp - 0x3c]
call fcn.00427afc
push 0x1807
push esi
push 0x7c
call fcn.00599084
push eax
push 0x81
call fcn.00599084
push eax
call fcn.005a7227
test al, al
je 0x6055f4
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x6052eb
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
jne 0x605348
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
lea eax, [eax*8 + 0x76]
push eax
call fcn.00599084
cmp dword [ebp - 0x10], 8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
jb 0x605329
mov ecx, dword [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00599ee6
add esp, 0xc
mov ecx, edi
push 0x466
call fcn.0060521b
jmp 0x6055f4
mov esi, 0x42d
lea eax, [ebp - 0x68]
push esi
push eax
mov ecx, edi
call fcn.005e92a6
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
jb 0x605369
mov eax, dword [ebp - 0x68]
push eax
call fcn.006a24b3
test eax, eax
je 0x6053cc
mov ecx, ebx
sub eax, 1
je 0x60538c
sub eax, 1
je 0x605388
sub eax, 1
jne 0x605398
push 0x77
jmp 0x605391
push 0x7a
jmp 0x605391
push 0x84
call fcn.00599084
mov ecx, eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 1
push eax
mov dword [ebp - 0x40], 0x24
call fcn.00599ee6
pop ecx
pop ecx
cmp eax, 6
je 0x6053bd
push esi
jmp 0x60553e
push 0x6ce190
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 + 0x58], bl
call dword [eax + 0x48]
push 0x6b9
mov ecx, edi
call fcn.0059b757
test al, al
je 0x605458
push 0x7ba7c8
call fcn.0045d7af
call fcn.004c2812
movzx eax, ax
mov esi, 0x7ba6c0
push esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 2
push eax
call fcn.00580979
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
call fcn.00580a40
push 0x7ba7c8
call fcn.0045d8ec
push 0x318
call fcn.00664379
pop ecx
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x605449
push 0x20
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.0051c4d7
jmp 0x60544b
mov eax, ebx
mov ecx, dword [edi + 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.006a2203
test byte [ebp - 0x4c], 0x10
je 0x605547
push 1
push 5
lea eax, [ebp - 0x270]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x6054b5
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x24]
call fcn.00436e07
test al, al
je 0x6054b5
push 0x7d
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x124
call fcn.00599084
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00599ee6
pop ecx
pop ecx
cmp eax, 6
jne 0x605539
mov ecx, dword [edi + 0x44]
lea eax, [ebp - 0x24]
push eax
call fcn.006a227f
mov ecx, edi
test al, al
jne 0x605505
push 0x466
call fcn.0060521b
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
jb 0x6054eb
mov eax, dword [ebp - 0x24]
push eax
push 0x7e
call fcn.00599084
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00599ee6
add esp, 0xc
jmp 0x6055b1
lea eax, [ebp - 0x3c]
push eax
call fcn.006056ea
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x60551a
mov eax, dword [eax]
push eax
push ebx
mov ecx, edi
call fcn.00604cc3
and dword [edi + 0x38], 0
lea ecx, [ebp - 0x3c]
mov bl, al
mov byte [ebp - 4], 1
call fcn.00427afc
test bl, bl
jne 0x605556
push 0x466
mov ecx, edi
call fcn.0060521b
jmp 0x6055b1
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00604f49
test al, al
jmp 0x605537
mov ecx, dword [edi + 0x44]
call fcn.006a1b37
or eax, edx
mov ecx, edi
jne 0x605572
push 0x466
call fcn.0060521b
push 0x73
jmp 0x605592
call fcn.006051da
mov ecx, dword [edi + 0x44]
push eax
call fcn.006a2210
mov ecx, edi
test al, al
jne 0x6055b5
push 0x431
call fcn.0060521b
push 0x7f
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
call fcn.00599084
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00599ee6
pop ecx
pop ecx
xor ebx, ebx
jmp 0x6055ec
sub esp, 0x18
mov eax, esp
push 0x466
push eax
call fcn.005e92a6
push 0x7b6620
call fcn.004606ca
mov eax, dword [edi + 0x44]
mov ecx, edi
push 0x54c
mov esi, dword [eax]
call fcn.0059b757
mov ecx, dword [edi + 0x44]
movzx eax, al
push eax
call dword [esi + 4]
mov bl, 1
lea ecx, [ebp - 0x68]
call fcn.00427afc
lea ecx, [ebp - 0x24]
call fcn.00427afc
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret