Function at 0x1400ad150
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 + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movzx r14d, word [0x14045e53c]
mov rcx, qword [0x140460208]
mov rax, rcx
mov rdi, qword [0x140460200]
sub rax, rdi
sar rax, 7
test rax, rax
je 0x1400ad4b9
cmp rdi, rcx
je 0x1400ad4b9
xor r15d, r15d
nop word [rax + rax]
cmp dword [0x14045e968], 0
jne 0x1400ad4b9
mov qword [rbp + 0x37], 7
mov qword [rbp + 0x2f], r15
mov word [rbp + 0x1f], r15w
lea rdx, [rdi + 4]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x1f]
call fcn.14004e350
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 0x1400ad48e
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 0x1400ad48e
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.1400526c0
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400ad282
lea r9, [rdi + 0x70]
mov r8, rbx
lea rdx, [0x1400acfc0]
mov rcx, rax
call fcn.140052980
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rdi + 0x78], 0
jbe 0x1400ad48e
cmp qword [rdi + 0x34], 0
je 0x1400ad39d
mov rax, qword [rdi + 0x70]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400ad39d
nop dword [rax + rax]
cmp dword [0x14045e968], 0
jne 0x1400ad39d
lea rdx, [rbx + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x1400ad2cb
mov rdx, qword [rdx]
mov qword [rbp - 1], 7
mov qword [rbp - 9], r15
mov word [rbp - 0x19], r15w
cmp word [rdx], 0
jne 0x1400ad2e7
mov r8, r15
jmp 0x1400ad2fb
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400ad2f0
lea rcx, [rbp - 0x19]
call fcn.14004dd70
lea rcx, [rbp - 0x19]
call fcn.140082440
cmp qword [rdi + 0x3c], 8
jb 0x1400ad31a
mov rdx, qword [rdi + 0x24]
jmp 0x1400ad31e
lea rdx, [rdi + 0x24]
mov rcx, qword [rbx + 0x40]
add rcx, 0x68
xor r8d, r8d
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400ad380
cmp byte [rbx + 0x19], al
jne 0x1400ad393
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400ad35e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400ad393
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400ad350
jmp 0x1400ad393
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400ad37b
cmp rbx, qword [rax + 0x10]
jne 0x1400ad37b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400ad368
mov rbx, rax
jmp 0x1400ad393
mov r8, rbx
lea rdx, [rbp + 0x17]
lea rcx, [rdi + 0x70]
call fcn.140067ef0
mov rbx, qword [rax]
cmp rbx, qword [rdi + 0x70]
jne 0x1400ad2b0
cmp qword [rdi + 0x78], 0
jbe 0x1400ad48e
mov rax, qword [rdi + 0x70]
mov rcx, qword [rax]
cmp rcx, rax
je 0x1400ad424
cmp dword [0x14045e968], 0
jne 0x1400ad424
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax + 0x28]
add qword [rdi + 0x64], rdx
cmp byte [rcx + 0x19], 0
jne 0x1400ad41e
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400ad3fe
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400ad41e
nop word [rax + rax]
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400ad3f0
jmp 0x1400ad41e
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400ad41b
cmp rcx, qword [rax + 0x10]
jne 0x1400ad41b
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400ad408
mov rcx, rax
cmp rcx, qword [rdi + 0x70]
jne 0x1400ad3b4
cmp qword [rdi + 0x64], 0
jbe 0x1400ad48e
call fcn.1400836a0
mov rbx, rax
mov ecx, dword [rdi + 0x6c]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x64]
mov qword [rax + 0x44], rcx
lea rcx, [rax + 4]
lea rdx, [rdi + 0x44]
cmp rcx, rdx
je 0x1400ad459
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.14004e350
lea rcx, [rbx + 0x24]
lea rax, [rbp + 0x1f]
cmp rcx, rax
je 0x1400ad476
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x1f]
call fcn.14004e350
lea rcx, [rbx + 0x4c]
lea rdx, [rdi + 0x70]
call fcn.140068420
mov dl, reloc.WLDAP32.dll_Ordinal_14
mov rcx, rbx
call fcn.1400833a0
nop
mov r8, qword [rbp + 0x37]
cmp r8, 8
jb 0x1400ad4a8
inc r8
mov rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x1f]
call fcn.14004e2e0
sub rdi, 0xffffffffffffff80
cmp rdi, qword [0x140460208]
jne 0x1400ad1c0
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14012a2b0
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