Function at 0x514bf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54682d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
xor edi, edi
mov ecx, esp
push edi
push 0x559640
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], 7
call fcn.00408270
mov ecx, dword [esi + 0x154]
call fcn.004e5270
sub esp, 0x18
mov ecx, esp
push edi
push 0x559640
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], 7
call fcn.00408270
mov ecx, dword [esi + 0xb4]
call fcn.004e5270
sub esp, 0x18
mov ecx, esp
push edi
push 0x559640
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], 7
call fcn.00408270
mov ecx, dword [esi + 0xb8]
call fcn.004e5270
mov eax, dword [esi + 0xcc]
push edi
push edi
push 0xf0
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x514fcd
mov ecx, dword [esi + 0xf4]
sub esp, 0x18
push esp
call fcn.004e4890
lea ecx, [ebp - 0x48]
call fcn.00414900
mov ecx, dword [ebp - 0x34]
add esp, 0x18
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jb 0x514d0f
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x514d02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5153fc
push ecx
push edx
call fcn.00517162
mov eax, dword [ebp - 0x2c]
add esp, 8
test eax, eax
jne 0x514d24
mov ecx, dword [esi + 0xf4]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [esi + 0xf4]
mov ecx, dword [esi + 0xf8]
call fcn.004e7fe0
test edi, edi
jne 0x514fcd
test eax, eax
je 0x514d42
cmp eax, 0xffff
jle 0x514d5b
mov ecx, dword [esi + 0xf8]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [esi + 0xf8]
test edi, edi
jne 0x514fcd
mov eax, dword [esi + 0x14c]
push 0
push 0
push 0xf0
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x514e9a
mov eax, dword [esi + 0x14c]
cmp byte [eax + 0x10], 0
je 0x514e9a
mov ecx, dword [esi + 0x118]
sub esp, 0x18
push esp
call fcn.004e4890
lea ecx, [ebp - 0x48]
call fcn.00414900
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x514dae
mov eax, dword [eax]
mov ecx, dword [esi + 0x118]
push eax
push 0
push 0xc
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x514dfc
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x514df2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x515401
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [esi + 0x118]
lea eax, [ebp - 0x48]
push eax
call fcn.004e4890
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jb 0x514e4e
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x514e41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x515406
push ecx
push edx
call fcn.00517162
mov eax, dword [ebp - 0x2c]
add esp, 8
test eax, eax
jne 0x514e63
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [esi + 0x118]
mov ecx, dword [esi + 0x11c]
call fcn.004e7fe0
test edi, edi
jne 0x514fcd
test eax, eax
je 0x514e81
cmp eax, 0xffff
jle 0x514e9a
mov ecx, dword [esi + 0x11c]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [esi + 0x11c]
test edi, edi
jne 0x514fcd
mov eax, dword [esi + 0x150]
push 0
push 0
push 0xf0
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x514fcd
mov eax, dword [esi + 0x150]
cmp byte [eax + 0x10], 0
je 0x514fcd
mov ecx, dword [esi + 0x13c]
sub esp, 0x18
push esp
call fcn.004e4890
lea ecx, [ebp - 0x48]
call fcn.00414900
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x514eed
mov eax, dword [eax]
mov ecx, dword [esi + 0x13c]
push eax
push 0
push 0xc
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x514f3b
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x514f31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51540b
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [esi + 0x13c]
lea eax, [ebp - 0x48]
push eax
call fcn.004e4890
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jb 0x514f8d
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x514f80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x515410
push ecx
push edx
call fcn.00517162
mov eax, dword [ebp - 0x2c]
add esp, 8
test eax, eax
jne 0x514fa2
mov ecx, dword [esi + 0x13c]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [esi + 0x13c]
mov ecx, dword [esi + 0x140]
call fcn.004e7fe0
test edi, edi
jne 0x514fcd
test eax, eax
je 0x514fbc
cmp eax, 0xffff
jle 0x514fcd
mov ecx, dword [esi + 0x140]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [esi + 0x140]
mov ecx, dword [esi + 0xa4]
lea eax, [ebp - 0x28]
push eax
call fcn.004e4890
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00408180
lea ecx, [ebp - 0x48]
call fcn.00414900
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
add esp, 0x18
cmp ecx, eax
je 0x515032
call fcn.00408210
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x51506c
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x515062
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x515415
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, 1
jbe 0x5150d5
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x5150d5
mov eax, bind
sub eax, ecx
cmp eax, 1
jb 0x51541a
push 1
push 0x560568
cmp edx, 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.004097f0
lea ecx, [ebp - 0x28]
call fcn.00408210
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [ebp - 0x18], xmm0
mov edx, dword [ebp - 0x14]
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [esi + 0xa4]
push 0
push 0xc
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x18], 3
jb 0x515344
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x515344
test al, 0x10
je 0x515344
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00408180
call fcn.004e9e40
add esp, 0x18
test al, al
je 0x51514e
sub esp, 0x18
mov ecx, esp
push str.Directory_is_READ_ONLY
call fcn.00409680
jmp 0x515369
mov ecx, dword [esi + 0xa8]
lea eax, [ebp - 0x48]
push eax
call fcn.004e4890
push eax
lea ecx, [ebp - 0x28]
call fcn.00409640
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x5151a0
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x515196
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51541f
push ecx
push edx
call fcn.00517162
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00408180
lea ecx, [ebp - 0x48]
call fcn.00414900
add esp, 0x18
lea ecx, [ebp - 0x28]
push eax
call fcn.00409640
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x5151fc
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x5151f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x515424
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
jbe 0x51526d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x51526d
push 0x560568
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x60]
call fcn.00409730
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.00409640
mov ecx, dword [ebp - 0x4c]
cmp ecx, 8
jb 0x51526d
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x515263
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x515429
push ecx
push edx
call fcn.00517162
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [esi + 0xa8]
push 0
push 0xc
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x18], 3
jne 0x5152bb
sub esp, 0x18
mov ecx, esp
push str.Select_a_Directory
call fcn.00409680
mov ecx, dword [esi + 0xb8]
call fcn.004e5270
mov ecx, dword [esi + 0x64]
push 0
call fcn.004e76f0
jmp 0x5153a4
jb 0x515335
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x515335
test al, 0x10
je 0x515335
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00408180
call fcn.004e9e40
add esp, 0x18
test al, al
je 0x5152fe
sub esp, 0x18
mov ecx, esp
push str.Directory_is_READ_ONLY
jmp 0x51529c
test edi, edi
je 0x51532f
sub esp, 0x18
mov ecx, esp
push str.Please_Correct_Focused_Item.
call fcn.00409680
mov ecx, dword [esi + 0x154]
call fcn.004e5270
mov ecx, dword [esi + 0x64]
push 1
call fcn.004e76f0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
jmp 0x5153a4
mov byte [ebp - 0x2d], 0
jmp 0x5153a8
sub esp, 0x18
mov ecx, esp
push str.Directory_doesnt_exist
jmp 0x51529c
sub esp, 0x18
mov ecx, esp
push 0x17
push str.Directory_doesnt_exist
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00408270
mov ecx, dword [esi + 0xb4]
call fcn.004e5270
mov esi, dword [esi + 0x64]
cmp dword [esi + 0x2c], 0
jbe 0x5153a4
mov ecx, esi
call fcn.004e7860
push 0
push 0
push 0x130c
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.004e77a0
mov dword [esi + 0x3c], 0
mov byte [ebp - 0x2d], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x5153de
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x5153d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51542e
push ecx
push edx
call fcn.00517162
add esp, 8
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
ret
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.00401640
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
int3