Function at 0x140008ee0
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, [0x14001ce68]
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 0x140008f77
lea rcx, [rsp + 0x40]
call fcn.140002bfc
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 0x140009028
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x140009022
lea rcx, [rbp - 0x30]
call fcn.140015f40
nop
mov rdx, qword [rsp + 0x28]
lea rcx, [rbp - 0x30]
call fcn.140016330
test eax, eax
je 0x140008f9e
lea rcx, [rbp - 0x30]
call fcn.140016100
jmp 0x140008f40
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140008fde
lea rdi, [0x14001ce70]
mov rcx, rbx
call fcn.140014310
cmp rdi, rax
je 0x140009048
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 0x140009048
mov rbx, qword [rbx + 0x50]
test rbx, rbx
jne 0x140008fae
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.140016100
nop
lea rcx, [rsp + 0x40]
call fcn.140002bfc
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 0x140009028
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x14001b738]
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 0x140008fde
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x140008fde
lea r8, [0x14001ce80]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x20]
call fcn.140005d90
or rdi, 0xffffffffffffffff
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x14000912a
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x14000912a
test rbx, rbx
je 0x14000912a
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000912a
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
test rax, rax
je 0x14000912a
test rbx, rbx
je 0x1400090e7
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400090e7
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
jmp 0x1400090ea
mov rax, r15
mov rcx, rax
call fcn.140014310
test rax, rax
je 0x14000912a
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005ebc
test rax, rax
jne 0x14000910e
mov ecx, r15d
jmp 0x14000911b
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140009111
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x18]
call fcn.1400021f0
lea r8, [0x14001ce90]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x20]
call fcn.140005d90
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x1400091bd
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x1400091bd
test rbx, rbx
je 0x14000917a
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000917a
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
jmp 0x14000917d
mov rax, r15
mov rcx, rax
call fcn.140014310
test rax, rax
je 0x1400091bd
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005ebc
test rax, rax
jne 0x1400091a1
mov ecx, r15d
jmp 0x1400091ae
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1400091a4
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x20]
call fcn.1400021f0
lea r8, [0x14001ce98]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.140005d90
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x140009250
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x140009250
test rbx, rbx
je 0x140009250
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140009250
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
test rax, rax
je 0x140009250
mov rcx, rax
call fcn.140014310
test rax, rax
je 0x140009250
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005ebc
test rax, rax
jne 0x140009234
mov ecx, r15d
jmp 0x140009241
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140009237
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x28]
call fcn.1400021f0
lea r8, [0x14001cea8]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x20]
call fcn.140005d90
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x1400092e3
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x1400092e3
test rbx, rbx
je 0x1400092e3
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400092e3
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
test rax, rax
je 0x1400092e3
mov rcx, rax
call fcn.140014310
test rax, rax
je 0x1400092e3
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005ebc
test rax, rax
jne 0x1400092c7
mov ecx, r15d
jmp 0x1400092d4
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1400092ca
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x30]
call fcn.1400021f0
lea r8, [0x14001ceb8]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.140005d90
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140009376
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x140009376
test rbx, rbx
je 0x140009376
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140009376
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
test rax, rax
je 0x140009376
mov rcx, rax
call fcn.140014310
test rax, rax
je 0x140009376
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005ebc
test rax, rax
jne 0x14000935a
mov ecx, r15d
jmp 0x140009367
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14000935d
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x50]
call fcn.1400021f0
mov rcx, qword [r12]
sub rcx, 0x18
call fcn.140001f9c
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 0x1400093fd
sub rax, qword [r12]
sar rax, 1
test eax, eax
js 0x1400093fd
mov r8d, eax
lea rdx, [rbp - 0x48]
mov rcx, r12
call fcn.140004458
nop
mov rdx, rax
lea rcx, [rbp + 0x320]
call fcn.1400048ac
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 0x1400093f6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
mov rbx, qword [rbp + 0x320]
movsxd rsi, dword [rbx - 0x10]
cmp esi, 1
jg 0x14000941a
lea rcx, [rbx - 0x18]
call fcn.140001f9c
add rax, 0x18
mov qword [rsp + 0x58], rax
jmp 0x14000946d
mov rcx, qword [rbx - 0x18]
test rcx, rcx
je 0x140009435
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x14001b738]
test rax, rax
jne 0x14000944d
call fcn.140001690
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [0x14001b738]
lea rcx, [rsi - 1]
lea rdx, [rbx + rcx*2]
mov r9, rax
mov r8d, 1
lea rcx, [rsp + 0x58]
call fcn.140004cd0
mov rax, qword [rsp + 0x58]
movzx ebx, word [rax]
sub ebx, r14d
jne 0x14000947f
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 0x1400094a0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
test ebx, ebx
je 0x1400094c7
lea rdx, [0x14001c49c]
mov rax, rdi
inc rax
cmp word [rdx + rax*2], r15w
jne 0x1400094ae
mov r8d, eax
lea rcx, [rbp + 0x320]
call fcn.140004ec0
lea r8, str.FileList
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140005d90
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140009830
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x140009830
lea r8, str.FileItem
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140005d90
mov rbx, qword [rsp + 0x38]
mov r12d, 1
test rbx, rbx
je 0x1400097b4
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x1400097b4
test rbx, rbx
je 0x14000955b
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
jmp 0x14000955e
mov rax, r15
lea rdx, str.name
mov rcx, rax
call fcn.1400155a0
mov r15, rax
test rbx, rbx
je 0x140009587
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
mov rcx, rbx
call qword [0x14001b738]
jmp 0x140009589
xor eax, eax
lea rdx, str.description
mov rcx, rax
call fcn.1400155a0
mov r14, rax
test rbx, rbx
je 0x1400095b2
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
mov rcx, rbx
call qword [0x14001b738]
jmp 0x1400095b4
xor eax, eax
lea rdx, str.optional
mov rcx, rax
call fcn.1400155a0
mov rsi, rax
test r15, r15
je 0x140009751
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140005ebc
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140004930
nop
lea rcx, [rsp + 0x68]
call fcn.140005e00
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1400048ac
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x320]
lea rcx, [rbp - 0x40]
call fcn.1400043a0
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400048ac
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 0x140009650
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
test r14, r14
je 0x140009689
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140005ebc
test rax, rax
jne 0x14000966c
mov ecx, r15d
jmp 0x140009679
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14000966f
mov r8d, ecx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400021f0
mov dword [rbp - 0x80], r15d
test rsi, rsi
je 0x1400096b2
movzx ecx, byte [rsi]
sub ecx, 0x31
jne 0x1400096a4
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 0x1400096b5
mov esi, dword [rbp - 0x7c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000971b
test al, 0x10
jne 0x14000971b
lea rcx, [r13 + 0xc0]
lea rdx, [rsp + 0x30]
call fcn.14000a074
mov rbx, rax
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1400048ac
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x70]
call fcn.1400048ac
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x78]
call fcn.1400048ac
mov dword [rbx + 0x18], r15d
mov dword [rbx + 0x1c], esi
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x78]
call fcn.1400048ac
nop
lea rcx, [rsp + 0x68]
call fcn.1400087a8
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 0x14000974c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140009768
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
jmp 0x14000976b
mov rax, r15
mov rbx, qword [rax + 0x50]
test rbx, rbx
je 0x1400097a7
lea rsi, str.FileItem
mov rcx, rbx
call fcn.140014310
cmp rax, rsi
je 0x14000979e
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 0x1400097aa
mov rbx, qword [rbx + 0x50]
test rbx, rbx
jne 0x14000977b
mov rbx, r15
mov qword [rsp + 0x38], rbx
jmp 0x140009522
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 0x1400097e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
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.140016100
nop
lea rcx, [rsp + 0x40]
call fcn.140002bfc
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140009829
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
xor eax, eax
jmp 0x14000902d
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 0x140009865
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
lea rcx, [rbp - 0x30]
call fcn.140016100
nop
lea rcx, [rsp + 0x40]
call fcn.140002bfc
nop
mov rdx, qword [r12]
sub rdx, 0x18
jmp 0x140008f57