Function at 0x1400a91b0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movzx r14d, word [0x140455b60]
mov r8, qword [0x140458000]
mov rcx, r8
mov rdi, qword [0x140457ff8]
sub rcx, rdi
movabs rax, 0xf83e0f83e0f83e1
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400a9532
cmp rdi, r8
je 0x1400a9532
xor r15d, r15d
nop
cmp dword [0x140455b64], 0
jne 0x1400a9532
mov qword [rbp + 0x37], 7
mov qword [rbp + 0x2f], r15
mov word [rbp + 0x1f], r15w
lea rdx, [rdi + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x1f]
call fcn.14004e170
nop
lea rax, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rax, qword [rbp + 0x1f]
mov word [rax], r14w
lea rcx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rcx, qword [rbp + 0x1f]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a9504
lea rcx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rcx, qword [rbp + 0x1f]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x1400a9504
lea rbx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rbx, qword [rbp + 0x1f]
lea edx, [rax + 1]
lea r8d, [rax + 3]
mov rcx, rbx
call fcn.140052070
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a92f2
lea r9, [rdi + 0x74]
mov r8, rbx
lea rdx, [0x1400a9020]
mov rcx, rax
call fcn.140052330
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rdi + 0x7c], 0
jbe 0x1400a9504
cmp qword [rdi + 0x38], 0
je 0x1400a940d
mov rax, qword [rdi + 0x74]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400a940d
nop dword [rax + rax]
cmp dword [0x140455b64], 0
jne 0x1400a940d
lea rdx, [rbx + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x1400a933b
mov rdx, qword [rdx]
mov qword [rbp + 7], 7
mov qword [rbp - 1], r15
mov word [rbp - 0x11], r15w
cmp word [rdx], 0
jne 0x1400a9357
mov r8, r15
jmp 0x1400a936b
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400a9360
lea rcx, [rbp - 0x11]
call fcn.14004db90
lea rcx, [rbp - 0x11]
call fcn.14007d390
cmp qword [rdi + 0x40], 8
jb 0x1400a938a
mov rdx, qword [rdi + 0x28]
jmp 0x1400a938e
lea rdx, [rdi + 0x28]
mov rcx, qword [rbx + 0x40]
add rcx, 0x68
xor r8d, r8d
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a93f0
cmp byte [rbx + 0x19], al
jne 0x1400a9403
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400a93ce
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400a9403
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400a93c0
jmp 0x1400a9403
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400a93eb
cmp rbx, qword [rax + 0x10]
jne 0x1400a93eb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400a93d8
mov rbx, rax
jmp 0x1400a9403
mov r8, rbx
lea rdx, [rbp + 0x17]
lea rcx, [rdi + 0x74]
call fcn.1400678a0
mov rbx, qword [rax]
cmp rbx, qword [rdi + 0x74]
jne 0x1400a9320
cmp qword [rdi + 0x7c], 0
jbe 0x1400a9504
mov rax, qword [rdi + 0x74]
mov rcx, qword [rax]
cmp rcx, rax
je 0x1400a9494
cmp dword [0x140455b64], 0
jne 0x1400a9494
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax + 0x28]
add qword [rdi + 0x68], rdx
cmp byte [rcx + 0x19], 0
jne 0x1400a948e
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400a946e
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400a948e
nop word [rax + rax]
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400a9460
jmp 0x1400a948e
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400a948b
cmp rcx, qword [rax + 0x10]
jne 0x1400a948b
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400a9478
mov rcx, rax
cmp rcx, qword [rdi + 0x74]
jne 0x1400a9424
cmp qword [rdi + 0x68], 0
jbe 0x1400a9504
call fcn.14007e7c0
mov rbx, rax
mov ecx, dword [rdi + 0x70]
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov rcx, qword [rdi + 0x68]
mov qword [rax + 0x48], rcx
lea rcx, [rax + 8]
lea rdx, [rdi + 0x48]
cmp rcx, rdx
je 0x1400a94cf
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.14004e170
lea rcx, [rbx + 0x28]
lea rax, [rbp + 0x1f]
cmp rcx, rax
je 0x1400a94ec
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x1f]
call fcn.14004e170
lea rcx, [rbx + 0x50]
lea rdx, [rdi + 0x74]
call fcn.140067dd0
mov dl, reloc.WLDAP32.dll_Ordinal_14
mov rcx, rbx
call fcn.14007e4c0
nop
mov r8, qword [rbp + 0x37]
cmp r8, 8
jb 0x1400a951e
inc r8
mov rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x1f]
call fcn.14004e100
add rdi, 0x84
cmp rdi, qword [0x140458000]
jne 0x1400a9230
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret