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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1401750a0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, r8
mov rbx, rdx
mov qword [rsp + 0x30], rcx
xor edi, edi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
lea r8d, [rdi + 1]
lea rdx, [0x1401360cc]
lea rcx, [rsp + 0x50]
call fcn.140003d30
nop
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], di
lea r8d, [rdi + 1]
lea rdx, [0x14013c910]
lea rcx, [rbp - 0x70]
call fcn.140003d30
nop
mov r14, qword [rbp - 0x60]
test r14, r14
je 0x140009773
mov r15, qword [rbp - 0x58]
mov r12, qword [rbp - 0x70]
mov rsi, qword [rsp + 0x60]
nop dword [rax]
nop word [rax + rax]
lea r9, [rbp - 0x70]
cmp r15, 8
cmovae r9, r12
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140009729
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r14
mov r8, rdi
mov rdx, qword [rbx + 0x10]
call fcn.140009f50
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140009771
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r9, qword [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov r8, r14
mov rdx, rax
mov rcx, rbx
call fcn.140009cb0
mov rsi, qword [rsp + 0x60]
add rdi, rsi
jmp 0x140009710
xor edi, edi
lea rcx, [rbp - 0x70]
call fcn.140003cc0
nop
lea rcx, [rsp + 0x50]
call fcn.140003cc0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0x28
lea rcx, [rbp - 0x30]
call fcn.1400105e0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140147cc0]
movdqu xmmword [rbp - 0x40], xmm1
mov word [rbp - 0x50], di
mov rdx, qword [rbp - 0x20]
inc rdx
lea rcx, [rbp - 0x50]
call fcn.14000a3c0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
lea rcx, [rbp - 0x50]
call fcn.140007160
mov r8d, 1
lea rdx, [0x1401360cc]
lea rcx, [rbp - 0x50]
call fcn.140007160
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140009802
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x50]
call fcn.140007160
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x70], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rbp - 0x80], xmm7
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea rcx, [rbp - 0x50]
call fcn.140003cc0
nop
lea rcx, [rsp + 0x70]
movq rdx, xmm6
mov qword [rsp + 0x70], rdx
psrldq xmm7, 8
movq rax, xmm7
mov qword [rbp - 0x78], rax
cmp rax, 8
cmovae rcx, rdx
call fcn.140017e20
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140008010
nop
mov rcx, qword [rsp + 0x30]
add rcx, 8
call fcn.140002e40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400098a3
xor sil, sil
jmp 0x1400098cc
lea rax, [rsp + 0x70]
cmp r13, rax
je 0x1400098c9
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rcx, r13
call fcn.140003d30
mov sil, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000990a
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14000990a
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14000990a
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x70]
call fcn.140003cc0
nop
lea rcx, [rbp - 0x30]
call fcn.140003cc0
nop
movzx eax, sil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400dd420
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret