Function at 0x1400823a0
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 [0x140299ac8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rdx
mov rsi, rcx
call fcn.140078710
call fcn.140078920
test al, al
je 0x140082436
mov byte [rsp + 0xa0], 0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa1]
call fcn.1400799c0
test eax, eax
jne 0x140082436
cmp byte [rsp + 0xa0], al
je 0x140082436
call fcn.1400793b0
mov ecx, dword [0x1402a1530]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov dword [rdx + rax], 2
call fcn.140078920
test al, al
jne 0x14008244a
call fcn.1400793b0
nop
jmp 0x140082958
lea r15, [0x14029a620]
mov rcx, qword [0x14029a620]
cmp rcx, r15
je 0x140082482
test dword [rcx + 0x44], 0x800000
je 0x140082482
cmp byte [rcx + 0x41], 5
jb 0x140082482
mov edx, 0x13
lea r8, [0x14020dc78]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
nop
mov rcx, rdi
call fcn.140051a50
mov ebx, eax
test eax, eax
je 0x1400824ce
mov rcx, qword [0x14029a620]
cmp rcx, r15
je 0x1400824c1
test dword [rcx + 0x44], 0x800000
je 0x1400824c1
cmp byte [rcx + 0x41], 3
jb 0x1400824c1
mov edx, 0x14
lea r8, [0x14020dc78]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
nop
call fcn.1400793b0
nop
mov eax, ebx
jmp 0x14008295d
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, [0x14023cbbc]
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 0x140082522
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.14003d160
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 0x140082584
mov r8, rbx
lea rcx, [rsp + 0x68]
call fcn.140006bd0
lea rcx, [rsp + 0x68]
call fcn.14003da00
test al, al
jne 0x140082634
mov rcx, qword [0x14029a620]
cmp rcx, r15
je 0x1400825e1
test dword [rcx + 0x44], 0x800000
je 0x1400825e1
cmp byte [rcx + 0x41], 5
jb 0x1400825e1
mov edx, 0x15
mov r9, rdi
lea r8, [0x14020dc78]
mov rcx, qword [rcx + 0x38]
call fcn.1400328a0
nop
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x140082607
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.1400793b0
nop
mov eax, 0xd
jmp 0x14008295d
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400826d5
mov rcx, qword [0x14029a620]
cmp rcx, r15
je 0x140082676
test dword [rcx + 0x44], 0x800000
je 0x140082676
cmp byte [rcx + 0x41], 2
jb 0x140082676
lea edx, [rax + 0x16]
mov r9, rdi
lea r8, [0x14020dc78]
mov rcx, qword [rcx + 0x38]
call fcn.1400328a0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1400519f0
mov ebx, eax
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x1400826ab
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.1400793b0
nop
mov eax, ebx
jmp 0x14008295d
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.1400557f0
nop
mov qword [rsp + 0xe0], 1
mov qword [rsp + 0xe8], r14
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0xe0]
call fcn.140072eb0
mov ebx, eax
test eax, eax
je 0x140082822
mov rcx, qword [0x14029a620]
cmp rcx, r15
je 0x140082766
test dword [rcx + 0x44], 0x800000
je 0x140082766
cmp byte [rcx + 0x41], 2
jb 0x140082766
mov edx, 0x17
lea r8, [0x14020dc78]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov ecx, ebx
call fcn.1400519f0
mov ebx, eax
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1400827d2
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 0x1400827f8
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.1400793b0
nop
mov eax, ebx
jmp 0x14008295d
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x1400828a2
mov rbx, qword [rsp + 0xe8]
mov ecx, 1
call fcn.140051ef0
mov r9, rbx
mov r8, rax
lea rdx, [rsp + 0xa8]
mov rcx, rsi
call fcn.140088180
test eax, eax
je 0x14008289a
mov rcx, qword [0x14029a620]
cmp rcx, r15
je 0x14008289a
test dword [rcx + 0x44], 0x800000
je 0x14008289a
cmp byte [rcx + 0x41], 3
jb 0x14008289a
mov edx, 0x18
lea r8, [0x14020dc78]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1400828fd
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 0x140082923
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.1400793b0
nop
xor eax, eax
jmp 0x14008295d
mov eax, 1
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401938e0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret