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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x350
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rdi, rcx
or r15, 0xffffffffffffffff
mov rcx, r15
mov qword [rbp - 0x70], rcx
xor r14d, r14d
lea ebx, [r15 + 2]
cmp qword [rdi + 0x88], r14
je 0x140039905
mov r8b, bl
lea rcx, [rbp + 0x1f0]
call fcn.14001ba70
lea r12d, [r15 + 8]
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r14
mov word [rsp + 0x70], r14w
lea rsi, [rdi + 0x78]
lea rax, [rsp + 0x70]
cmp rax, rsi
je 0x14003969f
mov r9, r15
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140004dbc
cmp word [rbp + 0x1f0], r14w
jne 0x1400396ae
mov r8, r14
jmp 0x1400396c2
lea rax, [rbp + 0x1f0]
mov r8, r15
inc r8
cmp word [rax + r8*2], r14w
jne 0x1400396b8
lea rdx, [rbp + 0x1f0]
lea rcx, [rsp + 0x70]
call fcn.14000254c
mov r8d, 4
lea rdx, [0x140077980]
lea rcx, [rsp + 0x70]
call fcn.14000254c
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140039713
mov bl, r14b
jmp 0x1400398db
cmp word [rbp + 0x1f0], r14w
jne 0x140039722
mov r8, r14
jmp 0x140039736
lea rax, [rbp + 0x1f0]
mov r8, r15
inc r8
cmp word [rax + r8*2], r14w
jne 0x14003972c
lea rdx, [rbp + 0x1f0]
lea rcx, [rsp + 0x70]
call fcn.140004eb0
mov r8d, 4
lea rdx, [0x140077980]
lea rcx, [rsp + 0x70]
call fcn.14000254c
lea rcx, [rdi + 0x98]
lea rdx, [rsp + 0x70]
call fcn.140036664
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
mov r9, r15
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140004dbc
nop
mov r8d, 6
lea rdx, [0x140077728]
lea rcx, [rsp + 0x50]
call fcn.14000254c
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140043404
test al, al
jne 0x1400397db
xor edx, edx
lea rcx, str.Cannot_find_formatting_information_in_the_PDB_file._nTrace_messages_are_not_formatted.
call fcn.14002e3b4
jmp 0x140039895
cmp word [rbp - 0x3c], r14w
je 0x140039879
lea rax, [rsp + 0x50]
cmp rax, rsi
je 0x140039803
mov r9, r15
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140004dbc
mov r8d, 0x5c
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140002394
cmp word [rbp - 0x3c], r14w
jne 0x140039822
mov r8, r14
jmp 0x140039833
lea rax, [rbp - 0x3c]
mov r8, r15
inc r8
cmp word [rax + r8*2], r14w
jne 0x140039829
lea rdx, [rbp - 0x3c]
lea rcx, [rsp + 0x50]
call fcn.14000254c
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400387f0
lea rdx, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400397db
mov rax, qword [rdi + 0x68]
sub rax, qword [rdi + 0x60]
cmp rax, 0x20
jae 0x1400398b2
xor edx, edx
lea rcx, str.Cannot_find_formatting_information_in_the_PDB_file._nTrace_messages_are_not_formatted.
call fcn.14002e3b4
nop
cmp qword [rsp + 0x68], 8
jb 0x1400398cb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rbp - 0x78], 8
jb 0x1400398f3
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r14
mov word [rsp + 0x70], r14w
mov rcx, qword [rbp - 0x70]
cmp rcx, r15
je 0x140039916
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140062a30
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret