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

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x608]
sub rsp, 0x708
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
xor edx, edx
mov qword [rsp + 0x728], rsi
mov r8d, 0x104
lea rcx, [rbp + 0x3d0]
call fcn.140104310
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x104
call fcn.140104310
xor edx, edx
lea rcx, [rbp + 0x4e0]
mov r8d, 0x104
call fcn.140104310
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.140104310
lea rcx, [0x14018012c]
call fcn.1400e9c20
lea rcx, [0x140180144]
mov rsi, rax
call fcn.1400e9c20
mov rdi, rax
test rsi, rsi
je 0x1400ea8e7
test rax, rax
je 0x1400ea8df
mov rcx, rsi
call fcn.1400e96d0
test eax, eax
jne 0x1400ea8df
lea r8, [rsp + 0x30]
mov qword [rsp + 0x720], rbx
lea rdx, str..dv
mov rcx, rdi
call fcn.1400e92f0
mov rbx, rax
test rax, rax
je 0x1400ea8d7
mov qword [rsp + 0x730], r14
lea r14, [0x14017f5f4]
mov qword [rsp + 0x700], r15
lea r15, [0x1402340b0]
nop
lea rax, [rsp + 0x30]
mov r9, rdi
lea r8, str._s_s
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x3d0]
mov ecx, 0x104
call fcn.1400e9920
lea rax, [rsp + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1402340c0]
lea rdx, [rbp + 0x1b0]
mov qword [rsp + 0x20], r15
mov ecx, 0x104
call fcn.1400e9920
lea rax, [rsp + 0x30]
mov r9, rsi
lea r8, str._s_s
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x4e0]
mov ecx, 0x104
call fcn.1400e9920
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400ea760
bt eax, 0xa
jae 0x1400ea760
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400ea750
test al, 0x10
je 0x1400ea750
lea rcx, [rbp + 0x1b0]
call fcn.14012fc74
jmp 0x1400ea75c
lea rcx, [rbp + 0x1b0]
call fcn.140114a3c
test eax, eax
jne 0x1400ea77b
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x1b0]
call fcn.14012f72c
lea rcx, [rbp + 0x1b0]
test eax, eax
je 0x1400ea782
lea rcx, [rbp + 0x3d0]
mov r8b, 1
lea rdx, [rbp + 0x4e0]
call fcn.1400e8960
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x140
call fcn.140104310
xor edx, edx
lea rcx, [rbp + 0x2c0]
mov r8d, 0x104
call fcn.140104310
nop word [rax + rax]
mov rcx, qword [rbx]
lea rdx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
cmp eax, 1
jne 0x1400ea883
lea rax, [rbp + 0x9c]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbx + 8]
lea r8, [0x14017f5f8]
mov qword [rsp + 0x20], r14
lea rdx, [rbp + 0x2c0]
call fcn.1400e9920
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400ea874
bt eax, 0xa
jae 0x1400ea874
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400ea863
bt eax, 0xa
jae 0x1400ea863
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400ea857
test al, 0x10
je 0x1400ea857
lea rcx, [rbp + 0x2c0]
call fcn.14012fc74
jmp 0x1400ea863
lea rcx, [rbp + 0x2c0]
call fcn.140114a3c
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x140
call fcn.140104310
cmp byte [rbp + 0x9c], 0
je 0x1400ea7c0
jmp 0x1400ea887
test eax, eax
je 0x1400ea8a9
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x9c]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1401121b8
jmp 0x1400ea6a0
mov rcx, qword [rbx]
mov r15, qword [rsp + 0x700]
mov r14, qword [rsp + 0x730]
cmp rcx, 0xffffffffffffffff
je 0x1400ea8cf
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rbx], 0xffffffffffffffff
mov rcx, rbx
call fcn.1401120d4
mov rbx, qword [rsp + 0x720]
mov rcx, rsi
call fcn.1401120d4
mov rsi, qword [rsp + 0x728]
test rdi, rdi
je 0x1400ea8fc
mov rcx, rdi
call fcn.1401120d4
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x708
pop rdi
pop rbp
ret