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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x318]
sub rsp, 0x3e0
mov r13, r9
mov r12, rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x28], r15
lea r8, [0x14001bd78]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
cmp qword [rsp + 0x28], r15
jne 0x14000867f
lea rcx, [rsp + 0x40]
call fcn.140002a48
nop
mov rdx, qword [r12]
sub rdx, 0x18
or rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140008730
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x14000872a
lea rcx, [rbp - 0x30]
call fcn.140015520
nop
mov rdx, qword [rsp + 0x28]
lea rcx, [rbp - 0x30]
call fcn.140015910
test eax, eax
je 0x1400086a6
lea rcx, [rbp - 0x30]
call fcn.1400156e0
jmp 0x140008648
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x1400086e6
lea rdi, [0x14001bd80]
mov rcx, rbx
call fcn.1400138f0
cmp rdi, rax
je 0x140008750
mov r8d, 0x7fffffff
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140008750
mov rbx, qword [rbx + 0x50]
test rbx, rbx
jne 0x1400086b6
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
lea rcx, [rbp - 0x30]
call fcn.1400156e0
nop
lea rcx, [rsp + 0x40]
call fcn.140002a48
nop
mov rdx, qword [r12]
sub rdx, 0x18
or rdi, 0xffffffffffffffff
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140008730
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x14001a700]
mov eax, 1
mov rbx, qword [rsp + 0x430]
add rsp, 0x3e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x1400086e6
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001a700]
test rax, rax
je 0x1400086e6
lea r8, [0x14001bd90]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x20]
call fcn.140005610
or rdi, 0xffffffffffffffff
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140008832
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001a700]
test rax, rax
je 0x140008832
test rbx, rbx
je 0x140008832
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140008832
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001a700]
test rax, rax
je 0x140008832
test rbx, rbx
je 0x1400087ef
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400087ef
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001a700]
jmp 0x1400087f2
mov rax, r15
mov rcx, rax
call fcn.1400138f0
test rax, rax
je 0x140008832
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000573c
test rax, rax
jne 0x140008816
mov ecx, r15d
jmp 0x140008823
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140008819
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x18]
call fcn.1400020a0
lea r8, [0x14001bda0]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x20]
call fcn.140005610
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x1400088c5
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001a700]
test rax, rax
je 0x1400088c5
test rbx, rbx
je 0x140008882
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140008882
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001a700]
jmp 0x140008885
mov rax, r15
mov rcx, rax
call fcn.1400138f0
test rax, rax
je 0x1400088c5
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000573c
test rax, rax
jne 0x1400088a9
mov ecx, r15d
jmp 0x1400088b6
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1400088ac
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x20]
call fcn.1400020a0
lea r8, [0x14001bda8]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.140005610
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x140008958
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001a700]
test rax, rax
je 0x140008958
test rbx, rbx
je 0x140008958
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140008958
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001a700]
test rax, rax
je 0x140008958
mov rcx, rax
call fcn.1400138f0
test rax, rax
je 0x140008958
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000573c
test rax, rax
jne 0x14000893c
mov ecx, r15d
jmp 0x140008949
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14000893f
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x28]
call fcn.1400020a0
lea r8, [0x14001bdb8]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x20]
call fcn.140005610
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x1400089eb
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001a700]
test rax, rax
je 0x1400089eb
test rbx, rbx
je 0x1400089eb
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400089eb
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001a700]
test rax, rax
je 0x1400089eb
mov rcx, rax
call fcn.1400138f0
test rax, rax
je 0x1400089eb
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000573c
test rax, rax
jne 0x1400089cf
mov ecx, r15d
jmp 0x1400089dc
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1400089d2
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x30]
call fcn.1400020a0
lea r8, [0x14001bdc8]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.140005610
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140008a7e
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001a700]
test rax, rax
je 0x140008a7e
test rbx, rbx
je 0x140008a7e
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140008a7e
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001a700]
test rax, rax
je 0x140008a7e
mov rcx, rax
call fcn.1400138f0
test rax, rax
je 0x140008a7e
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000573c
test rax, rax
jne 0x140008a62
mov ecx, r15d
jmp 0x140008a6f
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140008a65
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x50]
call fcn.1400020a0
mov rcx, qword [r12]
sub rcx, 0x18
call fcn.140001e4c
lea rbx, [rax + 0x18]
mov qword [rbp + 0x320], rbx
mov r14d, 0x5c
mov edx, r14d
mov rcx, qword [r12]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140008b05
sub rax, qword [r12]
sar rax, 1
test eax, eax
js 0x140008b05
mov r8d, eax
lea rdx, [rbp - 0x48]
mov rcx, r12
call fcn.140003cc4
nop
mov rdx, rax
lea rcx, [rbp + 0x320]
call fcn.1400041d8
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140008afe
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
mov rbx, qword [rbp + 0x320]
movsxd rsi, dword [rbx - 0x10]
cmp esi, 1
jg 0x140008b22
lea rcx, [rbx - 0x18]
call fcn.140001e4c
add rax, 0x18
mov qword [rsp + 0x58], rax
jmp 0x140008b75
mov rcx, qword [rbx - 0x18]
test rcx, rcx
je 0x140008b3d
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x14001a700]
test rax, rax
jne 0x140008b55
call fcn.140001680
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [0x14001a700]
lea rcx, [rsi - 1]
lea rdx, [rbx + rcx*2]
mov r9, rax
mov r8d, 1
lea rcx, [rsp + 0x58]
call fcn.140004550
mov rax, qword [rsp + 0x58]
movzx ebx, word [rax]
sub ebx, r14d
jne 0x140008b87
movzx ebx, word [rax + 2]
movzx ecx, r15w
sub ebx, ecx
lea rdx, [rax - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140008ba8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
test ebx, ebx
je 0x140008bcf
lea rdx, [0x14001b41c]
mov rax, rdi
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140008bb6
mov r8d, eax
lea rcx, [rbp + 0x320]
call fcn.140004740
lea r8, str.FileList
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140005610
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008f38
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
test rax, rax
je 0x140008f38
lea r8, str.FileItem
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140005610
mov rbx, qword [rsp + 0x38]
mov r12d, 1
test rbx, rbx
je 0x140008ebc
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001a700]
test rax, rax
je 0x140008ebc
test rbx, rbx
je 0x140008c63
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001a700]
jmp 0x140008c66
mov rax, r15
lea rdx, str.name
mov rcx, rax
call fcn.140014b80
mov r15, rax
test rbx, rbx
je 0x140008c8f
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
mov rcx, rbx
call qword [0x14001a700]
jmp 0x140008c91
xor eax, eax
lea rdx, str.description
mov rcx, rax
call fcn.140014b80
mov r14, rax
test rbx, rbx
je 0x140008cba
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
mov rcx, rbx
call qword [0x14001a700]
jmp 0x140008cbc
xor eax, eax
lea rdx, str.optional
mov rcx, rax
call fcn.140014b80
mov rsi, rax
test r15, r15
je 0x140008e59
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.14000573c
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000425c
nop
lea rcx, [rsp + 0x68]
call fcn.140005680
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1400041d8
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x320]
lea rcx, [rbp - 0x40]
call fcn.14000988c
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400041d8
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
xor r15d, r15d
test eax, eax
jg 0x140008d58
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
test r14, r14
je 0x140008d91
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14000573c
test rax, rax
jne 0x140008d74
mov ecx, r15d
jmp 0x140008d81
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140008d77
mov r8d, ecx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400020a0
mov dword [rbp - 0x80], r15d
test rsi, rsi
je 0x140008dba
movzx ecx, byte [rsi]
sub ecx, 0x31
jne 0x140008dac
movzx ecx, byte [rsi + 1]
movzx eax, r15b
sub ecx, eax
mov esi, dword [rbp - 0x7c]
test ecx, ecx
cmove esi, r12d
mov dword [rbp - 0x7c], esi
jmp 0x140008dbd
mov esi, dword [rbp - 0x7c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140008e23
test al, 0x10
jne 0x140008e23
lea rcx, [r13 + 0xc0]
lea rdx, [rsp + 0x30]
call fcn.14000977c
mov rbx, rax
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1400041d8
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x70]
call fcn.1400041d8
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x78]
call fcn.1400041d8
mov dword [rbx + 0x18], r15d
mov dword [rbx + 0x1c], esi
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x78]
call fcn.1400041d8
nop
lea rcx, [rsp + 0x68]
call fcn.140007ef4
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140008e54
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140008e70
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001a700]
jmp 0x140008e73
mov rax, r15
mov rbx, qword [rax + 0x50]
test rbx, rbx
je 0x140008eaf
lea rsi, str.FileItem
mov rcx, rbx
call fcn.1400138f0
cmp rax, rsi
je 0x140008ea6
mov r8d, 0x7fffffff
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140008eb2
mov rbx, qword [rbx + 0x50]
test rbx, rbx
jne 0x140008e83
mov rbx, r15
mov qword [rsp + 0x38], rbx
jmp 0x140008c2a
mov rdx, qword [rbp + 0x320]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
mov r12, qword [rbp + 0x328]
jg 0x140008eeb
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
lea rcx, [rbp - 0x30]
call fcn.1400156e0
nop
lea rcx, [rsp + 0x40]
call fcn.140002a48
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140008f31
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
xor eax, eax
jmp 0x140008735
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rdx, qword [rbp + 0x320]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140008f6d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
nop
lea rcx, [rbp - 0x30]
call fcn.1400156e0
nop
lea rcx, [rsp + 0x40]
call fcn.140002a48
nop
mov rdx, qword [r12]
sub rdx, 0x18
jmp 0x14000865f