Function at 0x1400823b0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x100
mov qword [rax - 0x90], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rdx
mov rsi, rcx
call fcn.140078720
call fcn.140078930
test al, al
je 0x140082446
mov byte [rsp + 0xa0], 0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa1]
call fcn.1400799d0
test eax, eax
jne 0x140082446
cmp byte [rsp + 0xa0], al
je 0x140082446
call fcn.1400793c0
mov ecx, dword [0x1402a7660]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov dword [rdx + rax], 2
call fcn.140078930
test al, al
jne 0x14008245a
call fcn.1400793c0
nop
jmp 0x140082968
lea r15, str.P_a_
mov rcx, qword [str.P_a_]
cmp rcx, r15
je 0x140082492
test dword [rcx + 0x44], 0x800000
je 0x140082492
cmp byte [rcx + 0x41], 5
jb 0x140082492
mov edx, 0x13
lea r8, [0x140213c78]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
nop
mov rcx, rdi
call fcn.140051a60
mov ebx, eax
test eax, eax
je 0x1400824de
mov rcx, qword [str.P_a_]
cmp rcx, r15
je 0x1400824d1
test dword [rcx + 0x44], 0x800000
je 0x1400824d1
cmp byte [rcx + 0x41], 3
jb 0x1400824d1
mov edx, 0x14
lea r8, [0x140213c78]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
nop
call fcn.1400793c0
nop
mov eax, ebx
jmp 0x14008296d
lea rax, [rsp + 0x28]
mov qword [rsp + 0x90], rax
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
xor r8d, r8d
lea rdx, [0x14024315c]
lea rcx, [rsp + 0x28]
call fcn.140006bd0
nop
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdi + r8*2], 0
jne 0x140082532
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140006bd0
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xc0]
call fcn.14003d170
nop
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdx, qword [rsp + 0xc0]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], r14w
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140082594
mov r8, rbx
lea rcx, [rsp + 0x68]
call fcn.140006bd0
lea rcx, [rsp + 0x68]
call fcn.14003da10
test al, al
jne 0x140082644
mov rcx, qword [str.P_a_]
cmp rcx, r15
je 0x1400825f1
test dword [rcx + 0x44], 0x800000
je 0x1400825f1
cmp byte [rcx + 0x41], 5
jb 0x1400825f1
mov edx, 0x15
mov r9, rdi
lea r8, [0x140213c78]
mov rcx, qword [rcx + 0x38]
call fcn.1400328b0
nop
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x140082617
inc r8
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
call fcn.140007b00
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], 7
mov word [rsp + 0xc0], r14w
call fcn.1400793c0
nop
mov eax, 0xd
jmp 0x14008296d
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400826e5
mov rcx, qword [str.P_a_]
cmp rcx, r15
je 0x140082686
test dword [rcx + 0x44], 0x800000
je 0x140082686
cmp byte [rcx + 0x41], 2
jb 0x140082686
lea edx, [rax + 0x16]
mov r9, rdi
lea r8, [0x140213c78]
mov rcx, qword [rcx + 0x38]
call fcn.1400328b0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140051a00
mov ebx, eax
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x1400826bb
inc r8
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
call fcn.140007b00
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], 7
mov word [rsp + 0xc0], r14w
call fcn.1400793c0
nop
mov eax, ebx
jmp 0x14008296d
xor eax, eax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa8]
call fcn.140055800
nop
mov qword [rsp + 0xe0], 1
mov qword [rsp + 0xe8], r14
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0xe0]
call fcn.140072ec0
mov ebx, eax
test eax, eax
je 0x140082832
mov rcx, qword [str.P_a_]
cmp rcx, r15
je 0x140082776
test dword [rcx + 0x44], 0x800000
je 0x140082776
cmp byte [rcx + 0x41], 2
jb 0x140082776
mov edx, 0x17
lea r8, [0x140213c78]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov ecx, ebx
call fcn.140051a00
mov ebx, eax
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1400827e2
movzx r9d, byte [rsp + 0xa1]
lea r8, [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
call fcn.14000a3f0
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xa8]
sub r8, rdx
sar r8, 5
lea rcx, [rsp + 0xa8]
call fcn.140007890
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa8], xmm0
mov qword [rsp + 0xb8], r14
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x140082808
inc r8
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
call fcn.140007b00
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], 7
mov word [rsp + 0xc0], r14w
call fcn.1400793c0
nop
mov eax, ebx
jmp 0x14008296d
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x1400828b2
mov rbx, qword [rsp + 0xe8]
mov ecx, 1
call fcn.140051f00
mov r9, rbx
mov r8, rax
lea rdx, [rsp + 0xa8]
mov rcx, rsi
call fcn.140088190
test eax, eax
je 0x1400828aa
mov rcx, qword [str.P_a_]
cmp rcx, r15
je 0x1400828aa
test dword [rcx + 0x44], 0x800000
je 0x1400828aa
cmp byte [rcx + 0x41], 3
jb 0x1400828aa
mov edx, 0x18
lea r8, [0x140213c78]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14008290d
movzx r9d, byte [rsp + 0xa1]
lea r8, [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
call fcn.14000a3f0
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xa8]
sub r8, rdx
sar r8, 5
lea rcx, [rsp + 0xa8]
call fcn.140007890
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa8], xmm0
mov qword [rsp + 0xb8], r14
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x140082933
inc r8
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
call fcn.140007b00
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], 7
mov word [rsp + 0xc0], r14w
call fcn.1400793c0
nop
xor eax, eax
jmp 0x14008296d
mov eax, 1
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140199a10
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret