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

Disassembly:
mov eax, 0x6eb0e8
call fcn.006899cc
sub esp, 0x264
push ebx
push esi
push edi
push 0x466
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call fcn.0060adf9
xor ebx, ebx
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
mov dword [ebp - 4], ebx
jb 0x628584
mov eax, dword [ebp - 0x24]
push eax
call fcn.0046f5a7
push eax
lea eax, [ebp - 0x3c]
push str._s.torrent
push eax
call fcn.00475719
add esp, 0xc
lea esi, [edi + 0x5c]
mov ecx, esi
push eax
call fcn.00448080
lea ecx, [ebp - 0x3c]
call fcn.0044823e
push 0x1807
push esi
push 0x7d
call fcn.005ba91d
push eax
push 0x82
call fcn.005ba91d
push eax
call fcn.005c8b86
test al, al
je 0x6288ed
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x6285e1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
jne 0x62863e
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
lea eax, [eax*8 + 0x77]
push eax
call fcn.005ba91d
cmp dword [ebp - 0x10], 8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
jb 0x62861f
mov ecx, dword [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005bb77f
add esp, 0xc
mov ecx, edi
push 0x466
call fcn.00628511
jmp 0x6288ed
mov esi, 0x42d
lea eax, [ebp - 0x68]
push esi
push eax
mov ecx, edi
call fcn.0060adf9
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
jb 0x62865f
mov eax, dword [ebp - 0x68]
push eax
call fcn.006c8163
test eax, eax
je 0x6286c2
mov ecx, ebx
sub eax, 1
je 0x628682
sub eax, 1
je 0x62867e
sub eax, 1
jne 0x62868e
push 0x78
jmp 0x628687
push 0x7b
jmp 0x628687
push 0x85
call fcn.005ba91d
mov ecx, eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 1
push eax
mov dword [ebp - 0x40], 0x24
call fcn.005bb77f
pop ecx
pop ecx
cmp eax, 6
je 0x6286b3
push esi
jmp 0x628834
push 0x6f6210
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.005bcff0
test al, al
je 0x62874e
push 0x7ea1e8
call fcn.0047b887
call fcn.004e20ae
movzx eax, ax
mov esi, 0x7ea0e0
push esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 2
push eax
call fcn.005a2059
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
call fcn.005a2120
push 0x7ea1e8
call fcn.0047b9d1
push 0x318
call fcn.0068973d
pop ecx
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x62873f
push 0x20
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.0053e0de
jmp 0x628741
mov eax, ebx
mov ecx, dword [edi + 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.006c7eb3
test byte [ebp - 0x4c], 0x10
je 0x62883d
push 1
push 5
lea eax, [ebp - 0x270]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x6287ab
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x24]
call fcn.00457121
test al, al
je 0x6287ab
push 0x7e
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x124
call fcn.005ba91d
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005bb77f
pop ecx
pop ecx
cmp eax, 6
jne 0x62882f
mov ecx, dword [edi + 0x44]
lea eax, [ebp - 0x24]
push eax
call fcn.006c7f2f
mov ecx, edi
test al, al
jne 0x6287fb
push 0x466
call fcn.00628511
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
jb 0x6287e1
mov eax, dword [ebp - 0x24]
push eax
push 0x7f
call fcn.005ba91d
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005bb77f
add esp, 0xc
jmp 0x6288aa
lea eax, [ebp - 0x3c]
push eax
call fcn.006289e3
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x628810
mov eax, dword [eax]
push eax
push ebx
mov ecx, edi
call fcn.00627fb9
and dword [edi + 0x38], 0
lea ecx, [ebp - 0x3c]
mov bl, al
mov byte [ebp - 4], 1
call fcn.0044823e
test bl, bl
jne 0x62884c
push 0x466
mov ecx, edi
call fcn.00628511
jmp 0x6288aa
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.0062823f
test al, al
jmp 0x62882d
mov ecx, dword [edi + 0x44]
call fcn.006c77ff
or eax, edx
mov ecx, edi
jne 0x628868
push 0x466
call fcn.00628511
push 0x74
jmp 0x62888b
call fcn.006284d0
mov ecx, dword [edi + 0x44]
push eax
call fcn.006c7ec0
mov ecx, edi
test al, al
jne 0x6288ae
push 0x431
call fcn.00628511
push 0x80
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
call fcn.005ba91d
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005bb77f
pop ecx
pop ecx
xor ebx, ebx
jmp 0x6288e5
sub esp, 0x18
mov eax, esp
push 0x466
push eax
call fcn.0060adf9
push 0x7e6044
call fcn.0047e80a
mov eax, dword [edi + 0x44]
mov ecx, edi
push 0x54c
mov esi, dword [eax]
call fcn.005bcff0
mov ecx, dword [edi + 0x44]
movzx eax, al
push eax
call dword [esi + 4]
mov bl, 1
lea ecx, [ebp - 0x68]
call fcn.0044823e
lea ecx, [ebp - 0x24]
call fcn.0044823e
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret