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

Disassembly:
mov eax, 0x6b4221
call fcn.00640244
sub esp, 0x260
push ebx
push esi
push edi
push 0x466
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call fcn.005ce1a5
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5e2c69
lea eax, [ebp - 0x24]
push eax
call fcn.0046047f
push eax
lea eax, [ebp - 0x3c]
push str._s.torrent
push eax
call fcn.004654e1
add esp, 0xc
lea esi, [edi + 0x54]
mov ecx, esi
push eax
call fcn.00427c6d
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004281f2
push 0x1807
push esi
push 0x75
call fcn.0058c7b7
push eax
push 0x7a
call fcn.0058c7b7
push eax
call fcn.00598f69
test al, al
je 0x5e2d18
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5e2cc3
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5e2d39
cmp dword [ebp - 0x14], 0
je 0x5e2cdb
push 0x77
jmp 0x5e2cdd
push 0x6f
call fcn.0058c7b7
cmp dword [ebp - 0x10], 8
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
jae 0x5e2cfe
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.0058da56
add esp, 0xc
mov ecx, edi
push 0x466
call fcn.005e2bf6
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004281f2
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.005ce1a5
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 1
jae 0x5e2d5a
lea eax, [ebp - 0x64]
push eax
call fcn.00693ce0
test eax, eax
je 0x5e2dba
xor ecx, ecx
sub eax, 1
je 0x5e2d7d
sub eax, 1
je 0x5e2d79
sub eax, 1
jne 0x5e2d86
push 0x70
jmp 0x5e2d7f
push 0x73
jmp 0x5e2d7f
push 0x7d
call fcn.0058c7b7
mov ecx, eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 1
push eax
mov dword [ebp - 0x40], 0x24
call fcn.0058da56
pop ecx
pop ecx
cmp eax, 6
je 0x5e2dab
push esi
jmp 0x5e2f3b
push 0x6c111c
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.0058f349
test al, al
je 0x5e2e47
push 0x7b0df0
call fcn.0046b312
call fcn.004ce324
movzx eax, ax
mov esi, 0x7b0ce8
push esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 2
push eax
call fcn.00575ca4
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
call fcn.00575d6c
push 0x7b0df0
call fcn.0046b405
push 0x310
call fcn.0063ffa4
pop ecx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x5e2e38
push 0x20
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.0052b0d1
jmp 0x5e2e3a
xor eax, eax
mov ecx, dword [edi + 0x3c]
push eax
mov byte [ebp - 4], 1
call fcn.00693a25
test bl, 0x10
je 0x5e2f27
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 0x5e2ea2
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00438eb2
test eax, eax
jne 0x5e2ea2
push 0x76
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x124
call fcn.0058c7b7
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0058da56
pop ecx
pop ecx
cmp eax, 6
jne 0x5e2f36
mov ecx, dword [edi + 0x3c]
lea eax, [ebp - 0x24]
push eax
call fcn.00693aa1
mov ecx, edi
test al, al
jne 0x5e2eee
push 0x466
call fcn.005e2bf6
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x30
jae 0x5e2ed4
lea eax, [ebp - 0x24]
push eax
push 0x77
call fcn.0058c7b7
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0058da56
add esp, 0xc
jmp 0x5e2f9f
lea eax, [ebp - 0x3c]
push eax
call fcn.005e30c8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x5e2f03
mov eax, dword [eax]
push eax
push 0
mov ecx, edi
call fcn.005e270a
and dword [edi + 0x30], 0
lea ecx, [ebp - 0x3c]
push 0
push 1
mov bl, al
mov byte [ebp - 4], 1
call fcn.004281f2
test bl, bl
jmp 0x5e2f34
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.005e2932
test al, al
jne 0x5e2f44
push 0x466
mov ecx, edi
call fcn.005e2bf6
jmp 0x5e2f9f
mov ecx, dword [edi + 0x3c]
call fcn.006933be
or eax, edx
mov ecx, edi
jne 0x5e2f60
push 0x466
call fcn.005e2bf6
push 0x6c
jmp 0x5e2f80
call fcn.005e2bb2
mov ecx, dword [edi + 0x3c]
push eax
call fcn.00693a32
mov ecx, edi
test al, al
jne 0x5e2fa3
push 0x431
call fcn.005e2bf6
push 0x78
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
call fcn.0058c7b7
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0058da56
pop ecx
pop ecx
xor bl, bl
jmp 0x5e2fda
sub esp, 0x18
mov eax, esp
push 0x466
push eax
call fcn.005ce1a5
push 0x7acc74
call fcn.0046dfe8
mov eax, dword [edi + 0x3c]
mov ecx, edi
push 0x54c
mov esi, dword [eax]
call fcn.0058f349
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.004281f2
jmp 0x5e2d1a