Function at 0x140008d84
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, [0x14001ce58]
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 0x140008e1b
lea rcx, [rsp + 0x40]
call fcn.140002abc
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 0x140008ecc
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x140008ec6
lea rcx, [rbp - 0x30]
call fcn.140015d60
nop
mov rdx, qword [rsp + 0x28]
lea rcx, [rbp - 0x30]
call fcn.140016150
test eax, eax
je 0x140008e42
lea rcx, [rbp - 0x30]
call fcn.140015f20
jmp 0x140008de4
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140008e82
lea rdi, [0x14001ce60]
mov rcx, rbx
call fcn.140014130
cmp rdi, rax
je 0x140008eec
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 0x140008eec
mov rbx, qword [rbx + 0x50]
test rbx, rbx
jne 0x140008e52
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.140015f20
nop
lea rcx, [rsp + 0x40]
call fcn.140002abc
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 0x140008ecc
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 0x140008e82
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x140008e82
lea r8, [0x14001ce70]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x20]
call fcn.140005d10
or rdi, 0xffffffffffffffff
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140008fce
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x140008fce
test rbx, rbx
je 0x140008fce
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140008fce
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
test rax, rax
je 0x140008fce
test rbx, rbx
je 0x140008f8b
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140008f8b
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
jmp 0x140008f8e
mov rax, r15
mov rcx, rax
call fcn.140014130
test rax, rax
je 0x140008fce
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005e3c
test rax, rax
jne 0x140008fb2
mov ecx, r15d
jmp 0x140008fbf
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140008fb5
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x18]
call fcn.1400020b0
lea r8, [0x14001ce80]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x20]
call fcn.140005d10
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x140009061
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x140009061
test rbx, rbx
je 0x14000901e
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000901e
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
jmp 0x140009021
mov rax, r15
mov rcx, rax
call fcn.140014130
test rax, rax
je 0x140009061
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005e3c
test rax, rax
jne 0x140009045
mov ecx, r15d
jmp 0x140009052
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140009048
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x20]
call fcn.1400020b0
lea r8, [0x14001ce88]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.140005d10
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x1400090f4
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x1400090f4
test rbx, rbx
je 0x1400090f4
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400090f4
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
test rax, rax
je 0x1400090f4
mov rcx, rax
call fcn.140014130
test rax, rax
je 0x1400090f4
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005e3c
test rax, rax
jne 0x1400090d8
mov ecx, r15d
jmp 0x1400090e5
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1400090db
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x28]
call fcn.1400020b0
lea r8, [0x14001ce98]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x20]
call fcn.140005d10
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x140009187
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x140009187
test rbx, rbx
je 0x140009187
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140009187
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
test rax, rax
je 0x140009187
mov rcx, rax
call fcn.140014130
test rax, rax
je 0x140009187
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005e3c
test rax, rax
jne 0x14000916b
mov ecx, r15d
jmp 0x140009178
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14000916e
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x30]
call fcn.1400020b0
lea r8, [0x14001cea8]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.140005d10
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x14000921a
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x14000921a
test rbx, rbx
je 0x14000921a
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000921a
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
test rax, rax
je 0x14000921a
mov rcx, rax
call fcn.140014130
test rax, rax
je 0x14000921a
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005e3c
test rax, rax
jne 0x1400091fe
mov ecx, r15d
jmp 0x14000920b
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140009201
mov r8d, ecx
mov rdx, rax
lea rcx, [r13 + 0x50]
call fcn.1400020b0
mov rcx, qword [r12]
sub rcx, 0x18
call fcn.140001e5c
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 0x1400092a1
sub rax, qword [r12]
sar rax, 1
test eax, eax
js 0x1400092a1
mov r8d, eax
lea rdx, [rbp - 0x48]
mov rcx, r12
call fcn.140004318
nop
mov rdx, rax
lea rcx, [rbp + 0x320]
call fcn.14000482c
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 0x14000929a
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 0x1400092be
lea rcx, [rbx - 0x18]
call fcn.140001e5c
add rax, 0x18
mov qword [rsp + 0x58], rax
jmp 0x140009311
mov rcx, qword [rbx - 0x18]
test rcx, rcx
je 0x1400092d9
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x14001b738]
test rax, rax
jne 0x1400092f1
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.140004c50
mov rax, qword [rsp + 0x58]
movzx ebx, word [rax]
sub ebx, r14d
jne 0x140009323
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 0x140009344
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
test ebx, ebx
je 0x14000936b
lea rdx, [0x14001c48c]
mov rax, rdi
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140009352
mov r8d, eax
lea rcx, [rbp + 0x320]
call fcn.140004e40
lea r8, str.FileList
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140005d10
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400096d4
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x1400096d4
lea r8, str.FileItem
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140005d10
mov rbx, qword [rsp + 0x38]
mov r12d, 1
test rbx, rbx
je 0x140009658
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
test rax, rax
je 0x140009658
test rbx, rbx
je 0x1400093ff
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
jmp 0x140009402
mov rax, r15
lea rdx, str.name
mov rcx, rax
call fcn.1400153c0
mov r15, rax
test rbx, rbx
je 0x14000942b
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
mov rcx, rbx
call qword [0x14001b738]
jmp 0x14000942d
xor eax, eax
lea rdx, str.description
mov rcx, rax
call fcn.1400153c0
mov r14, rax
test rbx, rbx
je 0x140009456
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
mov rcx, rbx
call qword [0x14001b738]
jmp 0x140009458
xor eax, eax
lea rdx, str.optional
mov rcx, rax
call fcn.1400153c0
mov rsi, rax
test r15, r15
je 0x1400095f5
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140005e3c
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400048b0
nop
lea rcx, [rsp + 0x68]
call fcn.140005d80
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.14000482c
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x320]
lea rcx, [rbp - 0x40]
call fcn.140004260
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000482c
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 0x1400094f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
test r14, r14
je 0x14000952d
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140005e3c
test rax, rax
jne 0x140009510
mov ecx, r15d
jmp 0x14000951d
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140009513
mov r8d, ecx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400020b0
mov dword [rbp - 0x80], r15d
test rsi, rsi
je 0x140009556
movzx ecx, byte [rsi]
sub ecx, 0x31
jne 0x140009548
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 0x140009559
mov esi, dword [rbp - 0x7c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400095bf
test al, 0x10
jne 0x1400095bf
lea rcx, [r13 + 0xc0]
lea rdx, [rsp + 0x30]
call fcn.140009f18
mov rbx, rax
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.14000482c
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x70]
call fcn.14000482c
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x78]
call fcn.14000482c
mov dword [rbx + 0x18], r15d
mov dword [rbx + 0x1c], esi
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x78]
call fcn.14000482c
nop
lea rcx, [rsp + 0x68]
call fcn.14000864c
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 0x1400095f0
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 0x14000960c
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001b738]
jmp 0x14000960f
mov rax, r15
mov rbx, qword [rax + 0x50]
test rbx, rbx
je 0x14000964b
lea rsi, str.FileItem
mov rcx, rbx
call fcn.140014130
cmp rax, rsi
je 0x140009642
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 0x14000964e
mov rbx, qword [rbx + 0x50]
test rbx, rbx
jne 0x14000961f
mov rbx, r15
mov qword [rsp + 0x38], rbx
jmp 0x1400093c6
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 0x140009687
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.140015f20
nop
lea rcx, [rsp + 0x40]
call fcn.140002abc
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400096cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
xor eax, eax
jmp 0x140008ed1
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 0x140009709
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
lea rcx, [rbp - 0x30]
call fcn.140015f20
nop
lea rcx, [rsp + 0x40]
call fcn.140002abc
nop
mov rdx, qword [r12]
sub rdx, 0x18
jmp 0x140008dfb