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

Disassembly:
mov eax, 0x6c4d35
call fcn.00651da4
sub esp, 0x260
push ebx
push esi
push edi
push 0x466
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call fcn.005dd01b
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5f6266
lea eax, [ebp - 0x24]
push eax
call fcn.0045c825
push eax
lea eax, [ebp - 0x3c]
push str._s.torrent
push eax
call fcn.00462014
add esp, 0xc
lea esi, [edi + 0x5c]
mov ecx, esi
push eax
call fcn.004281d1
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004284eb
push 0x1807
push esi
push 0x7b
call fcn.00595698
push eax
push 0x80
call fcn.00595698
push eax
call fcn.005a2fae
test al, al
je 0x5f6318
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5f62c3
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5f6339
cmp dword [ebp - 0x14], 0
je 0x5f62db
push 0x7d
jmp 0x5f62dd
push 0x75
call fcn.00595698
cmp dword [ebp - 0x10], 8
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
jae 0x5f62fe
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.00596761
add esp, 0xc
mov ecx, edi
push 0x466
call fcn.005f61f3
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004284eb
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.005dd01b
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 1
jae 0x5f635a
lea eax, [ebp - 0x64]
push eax
call fcn.006a5f5e
test eax, eax
je 0x5f63bd
xor ecx, ecx
sub eax, 1
je 0x5f637d
sub eax, 1
je 0x5f6379
sub eax, 1
jne 0x5f6389
push 0x76
jmp 0x5f6382
push 0x79
jmp 0x5f6382
push 0x83
call fcn.00595698
mov ecx, eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 1
push eax
mov dword [ebp - 0x40], 0x24
call fcn.00596761
pop ecx
pop ecx
cmp eax, 6
je 0x5f63ae
push esi
jmp 0x5f653e
push 0x6d2128
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], 0
call dword [eax + 0x48]
push 0x6b9
mov ecx, edi
call fcn.00597ff6
test al, al
je 0x5f644a
push 0x7c63c8
call fcn.00467ec4
call fcn.004cb044
movzx eax, ax
mov esi, 0x7c62c0
push esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 2
push eax
call fcn.0057e5be
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
call fcn.0057e686
push 0x7c63c8
call fcn.00468001
push 0x310
call fcn.00651ae6
pop ecx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x5f643b
push 0x20
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.00528bb3
jmp 0x5f643d
xor eax, eax
mov ecx, dword [edi + 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.006a5ca3
test bl, 0x10
je 0x5f652a
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 0x5f64a5
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0043637b
test eax, eax
jne 0x5f64a5
push 0x7c
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x124
call fcn.00595698
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00596761
pop ecx
pop ecx
cmp eax, 6
jne 0x5f6539
mov ecx, dword [edi + 0x44]
lea eax, [ebp - 0x24]
push eax
call fcn.006a5d1f
mov ecx, edi
test al, al
jne 0x5f64f1
push 0x466
call fcn.005f61f3
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x30
jae 0x5f64d7
lea eax, [ebp - 0x24]
push eax
push 0x7d
call fcn.00595698
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00596761
add esp, 0xc
jmp 0x5f65a2
lea eax, [ebp - 0x3c]
push eax
call fcn.005f66cb
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x5f6506
mov eax, dword [eax]
push eax
push 0
mov ecx, edi
call fcn.005f5d07
and dword [edi + 0x38], 0
lea ecx, [ebp - 0x3c]
push 0
push 1
mov bl, al
mov byte [ebp - 4], 1
call fcn.004284eb
test bl, bl
jmp 0x5f6537
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.005f5f2f
test al, al
jne 0x5f6547
push 0x466
mov ecx, edi
call fcn.005f61f3
jmp 0x5f65a2
mov ecx, dword [edi + 0x44]
call fcn.006a563c
or eax, edx
mov ecx, edi
jne 0x5f6563
push 0x466
call fcn.005f61f3
push 0x72
jmp 0x5f6583
call fcn.005f61af
mov ecx, dword [edi + 0x44]
push eax
call fcn.006a5cb0
mov ecx, edi
test al, al
jne 0x5f65a6
push 0x431
call fcn.005f61f3
push 0x7e
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
call fcn.00595698
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00596761
pop ecx
pop ecx
xor bl, bl
jmp 0x5f65dd
sub esp, 0x18
mov eax, esp
push 0x466
push eax
call fcn.005dd01b
push 0x7c225c
call fcn.0046ac49
mov eax, dword [edi + 0x44]
mov ecx, edi
push 0x54c
mov esi, dword [eax]
call fcn.00597ff6
mov ecx, dword [edi + 0x44]
movzx eax, al
push eax
call dword [esi + 4]
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.004284eb
jmp 0x5f631a