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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rdi, rcx
xor r12d, r12d
test rcx, rcx
je 0x1400383ac
mov rax, qword [rcx]
test rax, rax
je 0x1400383ac
cmp r12w, word [rax]
je 0x1400383ac
mov rax, qword [rcx + 8]
test rax, rax
je 0x140037e4c
cmp r12w, word [rax]
jne 0x140037e4c
mov qword [rcx + 8], r12
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140037e5f
cmp r12w, word [rax]
jne 0x140037e5f
mov qword [rcx + 0x10], r12
lea r13, vtable.CBufferTemplate_wchar_t_.0
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], r12
mov r15, qword [rcx]
mov rbx, r12
test r15, r15
je 0x140037ea0
mov rcx, r15
nop dword [rax + rax]
mov rax, rcx
inc rbx
add rcx, 2
cmp r12w, word [rax]
jne 0x140037e90
sub rbx, 1
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], r12
je 0x140037f2b
lea r14, [rbx + 0x800]
and r14, 0xfffffffffffff800
jbe 0x140037f2b
lfence
lea rdx, [r14 + r14]
xor ecx, ecx
call fcn.14004e0ec
mov rsi, rax
test rax, rax
je 0x140037f2b
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x19], rax
lea r8, [rbx + rbx]
mov rdx, r15
mov rcx, rax
call fcn.14004d720
cmp rbx, 0xffffffffffffffff
jne 0x140037f18
mov rcx, r12
mov rdx, rsi
nop dword [rax + rax]
mov rbx, rcx
mov rax, rdx
inc rcx
add rdx, 2
cmp r12w, word [rax]
jne 0x140037f00
test rcx, rcx
je 0x140037f2b
lea rax, [rbx + 1]
cmp rax, r14
ja 0x140037f2b
mov qword [rbp - 0x21], rbx
xor eax, eax
mov word [rsi + rbx*2], ax
mov dword [rdi + 0x58], 0xffffffff
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], r12
lfence
mov edx, 0x11000
xor ecx, ecx
call fcn.14004e0ec
mov rsi, rax
test rax, rax
je 0x140038220
mov r14, rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x59], 0x8800
mov r13, rax
mov qword [rbp - 0x41], rax
mov r15, qword [rdi]
test r15, r15
je 0x1400381c0
mov ecx, 0x10008
call fcn.1400480a8
mov rbx, rax
mov rdx, rax
lea rcx, [rbp - 0x79]
call fcn.14003d110
nop
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80
mov rcx, r15
call qword [0x140096148]
mov r10, rax
cmp rax, 0xffffffffffffffff
jne 0x14003800f
cmp byte [rbp - 0x79], 0
jne 0x140038003
lea rax, [0x14003d180]
mov rdx, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x69]
cmp rdx, rax
jne 0x140037ffa
call fcn.14003f710
mov rax, 0xffffffffffffffff
jmp 0x1400381bb
mov rax, rdx
call qword [case.0x140017e6f.8]
mov rax, 0xffffffffffffffff
jmp 0x1400381bb
mov r8, r10
mov rdx, qword [0x140096008]
lea rcx, [rbp - 0x11]
call fcn.14003d150
nop
xor r9d, r9d
mov r8d, 0x8004
mov rdx, rbx
mov rcx, r10
call qword [0x1400961a8]
cmp eax, 0x8004
jb 0x140038068
mov ecx, 0x7a
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp byte [rbp - 0x11], 0
jne 0x140037fcf
mov rcx, qword [rbp - 1]
mov rax, qword [rbp - 9]
call qword [case.0x140017e6f.8]
jmp 0x140037fcf
test eax, eax
jne 0x140038088
cmp byte [rbp - 0x11], al
jne 0x140037fcf
mov rcx, qword [rbp - 1]
mov rax, qword [rbp - 9]
call qword [case.0x140017e6f.8]
jmp 0x140037fcf
lfence
cmp byte [rbp - 0x11], 0
jne 0x14003809f
mov rcx, qword [rbp - 1]
mov rax, qword [rbp - 9]
call qword [case.0x140017e6f.8]
mov r8d, 4
lea rdx, str.__
mov rcx, rbx
call fcn.1400556a0
test eax, eax
je 0x1400380f8
cmp byte [rbp - 0x79], 0
jne 0x1400380ec
lea rax, [0x14003d180]
mov rdx, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x69]
cmp rdx, rax
jne 0x1400380e3
call fcn.14003f710
mov rax, 0xffffffffffffffff
jmp 0x1400381b3
mov rax, rdx
call qword [case.0x140017e6f.8]
mov rax, 0xffffffffffffffff
jmp 0x1400381b3
cmp word [rbx + 0xa], 0x3a
jne 0x14003813a
lfence
lea r8, [rbx + 8]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x140038110
lfence
mov edx, 0x8000
mov rcx, rsi
cmp rax, rdx
jae 0x140038132
call fcn.140055a48
jmp 0x140038186
mov r9d, 0x7fff
jmp 0x140038179
mov eax, 0x5c
mov word [rsi], ax
lea r8, [rbx + 0xe]
lfence
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x140038150
lfence
mov edx, 0x7fff
lea rcx, [rsi + 2]
cmp rax, rdx
jae 0x140038173
call fcn.140055a48
jmp 0x140038186
mov r9d, 0x7ffe
call fcn.1400580e8
mov word [rsi + 0xfffe], r12w
cmp byte [rbp - 0x79], 0
jne 0x1400381b0
lea rax, [0x14003d180]
mov rdx, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x69]
cmp rdx, rax
jne 0x1400381a7
call fcn.14003f710
jmp 0x1400381b0
mov rax, rdx
call qword [case.0x140017e6f.8]
mov eax, r12d
mov r14, qword [rbp - 0x51]
mov r13, qword [rbp - 0x41]
cmp eax, 0xffffffff
jne 0x1400381e3
mov r8d, 0x8000
mov rdx, rsi
mov rcx, qword [rdi]
call qword [0x140096160]
mov eax, eax
dec rax
cmp rax, 0x7fff
jbe 0x1400381e3
mov word [rsi], r12w
mov rcx, r12
mov rdx, rsi
nop dword [rax]
mov rbx, rcx
mov rax, rdx
inc rcx
add rdx, 2
cmp r12w, word [rax]
jne 0x1400381f0
test rcx, rcx
je 0x140038228
lea rax, [rbx + 1]
cmp rax, 0x8800
ja 0x140038228
mov qword [rbp - 0x49], rbx
xor eax, eax
mov word [rsi + rbx*2], ax
jmp 0x14003822c
mov r13, qword [rbp - 0x41]
mov r14, qword [rbp - 0x51]
mov rbx, qword [rbp - 0x49]
xor r15b, r15b
mov r12, qword [rbp - 0x19]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rsi, qword [rbp - 0x29]
cmp eax, 0xffffffff
je 0x140038345
mov ecx, eax
call fcn.14003a880
cmp eax, 0xffffffff
je 0x140038345
mov ecx, eax
and ecx, 8
test cl, cl
je 0x140038341
mov rcx, qword [rbp - 0x21]
mov eax, 0x5c
nop
test rcx, rcx
je 0x140038290
cmp ax, word [rsi + rcx*2 - 2]
jne 0x140038290
cmp rcx, 1
jbe 0x140038290
dec rcx
mov qword [rbp - 0x21], rcx
jmp 0x140038270
test rbx, rbx
je 0x1400382ac
cmp ax, word [r14 + rbx*2 - 2]
jne 0x1400382ac
cmp rbx, 1
jbe 0x1400382ac
dec rbx
mov qword [rbp - 0x49], rbx
jmp 0x140038290
mov rax, r12
sub rax, rsi
sar rax, 1
inc rax
add rax, rcx
cmp rax, qword [rbp - 0x31]
ja 0x1400382cc
mov qword [rbp - 0x21], rcx
xor eax, eax
mov word [r12 + rcx*2], ax
mov rax, r13
sub rax, r14
sar rax, 1
inc rax
add rax, rbx
cmp rax, qword [rbp - 0x59]
ja 0x1400382ed
mov qword [rbp - 0x49], rbx
xor eax, eax
mov word [r13 + rbx*2], ax
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x140038308
mov r9b, 1
mov r8, r12
mov rdx, r13
mov rcx, rdi
call qword [case.0x140017e6f.8]
xor ecx, ecx
mov dword [rbp + 0xf], ecx
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x1f], rcx
mov qword [rbp + 0x27], rcx
lea rax, [rbp + 0xf]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x5f5e100
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8, r13
mov rdx, r12
mov rcx, rdi
call fcn.1400367c0
jmp 0x140038360
test al, 0x40
je 0x140038364
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x140038364
mov rdx, qword [rdi]
xor r9d, r9d
mov r8, rdx
mov rcx, rdi
call qword [case.0x140017e6f.8]
movzx r15d, al
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x14003837c
mov edx, 0xffffffff
mov rcx, rdi
call qword [case.0x140017e6f.8]
nop
lea rbx, vtable.CBufferTemplate_wchar_t_.0
mov qword [rbp - 0x61], rbx
test r14, r14
je 0x140038395
mov rcx, r14
call fcn.14004e0d0
nop
mov qword [rbp - 0x39], rbx
test rsi, rsi
je 0x1400383a6
mov rcx, rsi
call fcn.14004e0d0
movzx eax, r15b
jmp 0x1400383ae
xor al, al
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret