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

Disassembly:
mov eax, 0x6b67b2
call fcn.006426c4
sub esp, 0x260
push ebx
push esi
push edi
push 0x466
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call fcn.005d07af
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5e4ce7
lea eax, [ebp - 0x24]
push eax
call fcn.00460cab
push eax
lea eax, [ebp - 0x3c]
push str._s.torrent
push eax
call fcn.00465d7f
add esp, 0xc
lea esi, [edi + 0x58]
mov ecx, esi
push eax
call fcn.00428071
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004285f6
push 0x1807
push esi
push 0x75
call fcn.0058dfbe
push eax
push 0x7a
call fcn.0058dfbe
push eax
call fcn.0059a4ae
test al, al
je 0x5e4d96
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5e4d41
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5e4db7
cmp dword [ebp - 0x14], 0
je 0x5e4d59
push 0x77
jmp 0x5e4d5b
push 0x6f
call fcn.0058dfbe
cmp dword [ebp - 0x10], 8
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
jae 0x5e4d7c
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.0058eef2
add esp, 0xc
mov ecx, edi
push 0x466
call fcn.005e4c74
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004285f6
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.005d07af
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 1
jae 0x5e4dd8
lea eax, [ebp - 0x64]
push eax
call fcn.00695f80
test eax, eax
je 0x5e4e38
xor ecx, ecx
sub eax, 1
je 0x5e4dfb
sub eax, 1
je 0x5e4df7
sub eax, 1
jne 0x5e4e04
push 0x70
jmp 0x5e4dfd
push 0x73
jmp 0x5e4dfd
push 0x7d
call fcn.0058dfbe
mov ecx, eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 1
push eax
mov dword [ebp - 0x40], 0x24
call fcn.0058eef2
pop ecx
pop ecx
cmp eax, 6
je 0x5e4e29
push esi
jmp 0x5e4fb9
push 0x6c4198
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 + 0x54], 0
call dword [eax + 0x48]
push 0x6b9
mov ecx, edi
call fcn.005907b3
test al, al
je 0x5e4ec5
push 0x7b5008
call fcn.0046ba5f
call fcn.004cecbe
movzx eax, ax
mov esi, 0x7b4f00
push esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 2
push eax
call fcn.00577140
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
call fcn.00577208
push 0x7b5008
call fcn.0046bb9c
push 0x310
call fcn.00642424
pop ecx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x5e4eb6
push 0x20
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.0052c324
jmp 0x5e4eb8
xor eax, eax
mov ecx, dword [edi + 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.00695cc5
test bl, 0x10
je 0x5e4fa5
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 0x5e4f20
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004392ec
test eax, eax
jne 0x5e4f20
push 0x76
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x124
call fcn.0058dfbe
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0058eef2
pop ecx
pop ecx
cmp eax, 6
jne 0x5e4fb4
mov ecx, dword [edi + 0x40]
lea eax, [ebp - 0x24]
push eax
call fcn.00695d41
mov ecx, edi
test al, al
jne 0x5e4f6c
push 0x466
call fcn.005e4c74
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x30
jae 0x5e4f52
lea eax, [ebp - 0x24]
push eax
push 0x77
call fcn.0058dfbe
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0058eef2
add esp, 0xc
jmp 0x5e501d
lea eax, [ebp - 0x3c]
push eax
call fcn.005e5146
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x5e4f81
mov eax, dword [eax]
push eax
push 0
mov ecx, edi
call fcn.005e4788
and dword [edi + 0x34], 0
lea ecx, [ebp - 0x3c]
push 0
push 1
mov bl, al
mov byte [ebp - 4], 1
call fcn.004285f6
test bl, bl
jmp 0x5e4fb2
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.005e49b0
test al, al
jne 0x5e4fc2
push 0x466
mov ecx, edi
call fcn.005e4c74
jmp 0x5e501d
mov ecx, dword [edi + 0x40]
call fcn.0069565e
or eax, edx
mov ecx, edi
jne 0x5e4fde
push 0x466
call fcn.005e4c74
push 0x6c
jmp 0x5e4ffe
call fcn.005e4c30
mov ecx, dword [edi + 0x40]
push eax
call fcn.00695cd2
mov ecx, edi
test al, al
jne 0x5e5021
push 0x431
call fcn.005e4c74
push 0x78
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
call fcn.0058dfbe
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0058eef2
pop ecx
pop ecx
xor bl, bl
jmp 0x5e5058
sub esp, 0x18
mov eax, esp
push 0x466
push eax
call fcn.005d07af
push 0x7b0e94
call fcn.0046e962
mov eax, dword [edi + 0x40]
mov ecx, edi
push 0x54c
mov esi, dword [eax]
call fcn.005907b3
mov ecx, dword [edi + 0x40]
movzx eax, al
push eax
call dword [esi + 4]
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.004285f6
jmp 0x5e4d98