Function at 0x14003a660
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 0x14003ac1c
mov rax, qword [rcx]
test rax, rax
je 0x14003ac1c
cmp r12w, word [rax]
je 0x14003ac1c
mov rax, qword [rcx + 8]
test rax, rax
je 0x14003a6bc
cmp r12w, word [rax]
jne 0x14003a6bc
mov qword [rcx + 8], r12
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14003a6cf
cmp r12w, word [rax]
jne 0x14003a6cf
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 0x14003a710
mov rcx, r15
nop dword [rax + rax]
mov rax, rcx
inc rbx
add rcx, 2
cmp r12w, word [rax]
jne 0x14003a700
sub rbx, 1
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], r12
je 0x14003a79b
lea r14, [rbx + 0x800]
and r14, 0xfffffffffffff800
jbe 0x14003a79b
lfence
lea rdx, [r14 + r14]
xor ecx, ecx
call fcn.14004fe7c
mov rsi, rax
test rax, rax
je 0x14003a79b
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.14004f4b0
cmp rbx, 0xffffffffffffffff
jne 0x14003a788
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 0x14003a770
test rcx, rcx
je 0x14003a79b
lea rax, [rbx + 1]
cmp rax, r14
ja 0x14003a79b
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.14004fe7c
mov rsi, rax
test rax, rax
je 0x14003aa90
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 0x14003aa30
mov ecx, 0x10008
call fcn.140049e38
mov rbx, rax
mov rdx, rax
lea rcx, [rbp - 0x79]
call fcn.14003ffc0
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 [0x140098130]
mov r10, rax
cmp rax, 0xffffffffffffffff
jne 0x14003a87f
cmp byte [rbp - 0x79], 0
jne 0x14003a873
lea rax, [0x140040030]
mov rdx, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x69]
cmp rdx, rax
jne 0x14003a86a
call fcn.140042700
mov rax, 0xffffffffffffffff
jmp 0x14003aa2b
mov rax, rdx
call qword [case.0x140017e6f.8]
mov rax, 0xffffffffffffffff
jmp 0x14003aa2b
mov r8, r10
mov rdx, qword [0x140098118]
lea rcx, [rbp - 0x11]
call fcn.140040000
nop
xor r9d, r9d
mov r8d, 0x8004
mov rdx, rbx
mov rcx, r10
call qword [0x140098068]
cmp eax, 0x8004
jb 0x14003a8d8
mov ecx, 0x7a
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp byte [rbp - 0x11], 0
jne 0x14003a83f
mov rcx, qword [rbp - 1]
mov rax, qword [rbp - 9]
call qword [case.0x140017e6f.8]
jmp 0x14003a83f
test eax, eax
jne 0x14003a8f8
cmp byte [rbp - 0x11], al
jne 0x14003a83f
mov rcx, qword [rbp - 1]
mov rax, qword [rbp - 9]
call qword [case.0x140017e6f.8]
jmp 0x14003a83f
lfence
cmp byte [rbp - 0x11], 0
jne 0x14003a90f
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.140057430
test eax, eax
je 0x14003a968
cmp byte [rbp - 0x79], 0
jne 0x14003a95c
lea rax, [0x140040030]
mov rdx, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x69]
cmp rdx, rax
jne 0x14003a953
call fcn.140042700
mov rax, 0xffffffffffffffff
jmp 0x14003aa23
mov rax, rdx
call qword [case.0x140017e6f.8]
mov rax, 0xffffffffffffffff
jmp 0x14003aa23
cmp word [rbx + 0xa], 0x3a
jne 0x14003a9aa
lfence
lea r8, [rbx + 8]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x14003a980
lfence
mov edx, 0x8000
mov rcx, rsi
cmp rax, rdx
jae 0x14003a9a2
call fcn.1400577d8
jmp 0x14003a9f6
mov r9d, 0x7fff
jmp 0x14003a9e9
mov eax, 0x5c
mov word [rsi], ax
lea r8, [rbx + 0xe]
lfence
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x14003a9c0
lfence
mov edx, 0x7fff
lea rcx, [rsi + 2]
cmp rax, rdx
jae 0x14003a9e3
call fcn.1400577d8
jmp 0x14003a9f6
mov r9d, 0x7ffe
call fcn.140059e78
mov word [rsi + 0xfffe], r12w
cmp byte [rbp - 0x79], 0
jne 0x14003aa20
lea rax, [0x140040030]
mov rdx, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x69]
cmp rdx, rax
jne 0x14003aa17
call fcn.140042700
jmp 0x14003aa20
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 0x14003aa53
mov r8d, 0x8000
mov rdx, rsi
mov rcx, qword [rdi]
call qword [0x140098198]
mov eax, eax
dec rax
cmp rax, 0x7fff
jbe 0x14003aa53
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 0x14003aa60
test rcx, rcx
je 0x14003aa98
lea rax, [rbx + 1]
cmp rax, 0x8800
ja 0x14003aa98
mov qword [rbp - 0x49], rbx
xor eax, eax
mov word [rsi + rbx*2], ax
jmp 0x14003aa9c
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 0x14003abb5
mov ecx, eax
call fcn.14003d470
cmp eax, 0xffffffff
je 0x14003abb5
mov ecx, eax
and ecx, 8
test cl, cl
je 0x14003abb1
mov rcx, qword [rbp - 0x21]
mov eax, 0x5c
nop
test rcx, rcx
je 0x14003ab00
cmp ax, word [rsi + rcx*2 - 2]
jne 0x14003ab00
cmp rcx, 1
jbe 0x14003ab00
dec rcx
mov qword [rbp - 0x21], rcx
jmp 0x14003aae0
test rbx, rbx
je 0x14003ab1c
cmp ax, word [r14 + rbx*2 - 2]
jne 0x14003ab1c
cmp rbx, 1
jbe 0x14003ab1c
dec rbx
mov qword [rbp - 0x49], rbx
jmp 0x14003ab00
mov rax, r12
sub rax, rsi
sar rax, 1
inc rax
add rax, rcx
cmp rax, qword [rbp - 0x31]
ja 0x14003ab3c
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 0x14003ab5d
mov qword [rbp - 0x49], rbx
xor eax, eax
mov word [r13 + rbx*2], ax
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x14003ab78
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.140039140
jmp 0x14003abd0
test al, 0x40
je 0x14003abd4
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x14003abd4
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 0x14003abec
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 0x14003ac05
mov rcx, r14
call fcn.14004fe60
nop
mov qword [rbp - 0x39], rbx
test rsi, rsi
je 0x14003ac16
mov rcx, rsi
call fcn.14004fe60
movzx eax, r15b
jmp 0x14003ac1e
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