Function at 0x14008e460
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
xor ebx, ebx
test dl, 1
mov r12d, 3
mov edi, ebx
mov rbp, r9
mov r15, r8
cmovne edi, r12d
mov esi, edx
mov r14, rcx
mov dword [rsp + 0x178], ebx
test dl, 2
je 0x14008e502
cmp byte [0x1401148b0], bl
je 0x14008e4eb
call fcn.14003e110
cmp eax, r12d
jg 0x14008e4eb
test edi, edi
je 0x14008e4eb
lea r8d, [r12 + 0x13]
lea rdx, str..platform_file_win.cc
lea rcx, [rsp + 0x40]
mov r9d, r12d
lea ebx, [r12 - 2]
call fcn.1400403f0
lea rdx, str.Check_failed:__disposition.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 1
je 0x14008e4fd
lea rcx, [rsp + 0x40]
and ebx, 0xfffffffe
call fcn.14003feb0
mov edi, 1
mov r13d, esi
and r13d, 4
je 0x14008e566
cmp byte [0x1401148b0], 0
je 0x14008e54f
call fcn.14003e110
cmp eax, r12d
jg 0x14008e54f
test edi, edi
je 0x14008e54f
lea rdx, str..platform_file_win.cc
lea rcx, [rsp + 0x40]
mov r9d, r12d
mov r8d, 0x1b
or ebx, 2
call fcn.1400403f0
lea rdx, str.Check_failed:__disposition.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 2
je 0x14008e561
lea rcx, [rsp + 0x40]
and ebx, 0xfffffffd
call fcn.14003feb0
mov edi, 4
mov r12d, esi
and r12d, 8
je 0x14008e5cb
cmp byte [0x1401148b0], 0
je 0x14008e5b4
call fcn.14003e110
cmp eax, 3
jg 0x14008e5b4
test edi, edi
je 0x14008e5b4
mov r9d, 3
lea rdx, str..platform_file_win.cc
lea rcx, [rsp + 0x40]
lea r8d, [r9 + 0x1d]
or ebx, 4
call fcn.1400403f0
lea rdx, str.Check_failed:__disposition.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 4
je 0x14008e5c6
lea rcx, [rsp + 0x40]
and ebx, 0xfffffffb
call fcn.14003feb0
mov edi, 2
bt esi, 0xc
jae 0x14008e6f2
cmp byte [0x1401148b0], 0
je 0x14008e61a
call fcn.14003e110
cmp eax, 3
jg 0x14008e61a
test edi, edi
je 0x14008e61a
mov r9d, 3
lea rdx, str..platform_file_win.cc
lea rcx, [rsp + 0x40]
lea r8d, [r9 + 0x22]
or ebx, 8
call fcn.1400403f0
lea rdx, str.Check_failed:__disposition.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 8
je 0x14008e62c
lea rcx, [rsp + 0x40]
and ebx, 0xfffffff7
call fcn.14003feb0
cmp byte [0x1401148b0], 0
je 0x14008e673
call fcn.14003e110
cmp eax, 3
jg 0x14008e673
test sil, 0x20
jne 0x14008e673
mov r9d, 3
lea rdx, str..platform_file_win.cc
lea rcx, [rsp + 0x40]
lea r8d, [r9 + 0x23]
or ebx, 0x10
call fcn.1400403f0
lea rdx, str.Check_failed:_flags__PLATFORM_FILE_WRITE.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 0x10
je 0x14008e682
lea rcx, [rsp + 0x40]
call fcn.14003feb0
mov edi, 5
mov edx, esi
and edx, 0xfffffff0
shl edx, 0x1b
test sil, 0x20
je 0x14008e699
bts edx, 0x1e
bt esi, 0xd
jae 0x14008e6a3
bts edx, 8
mov r8d, esi
shr r8d, 6
not r8d
and r8d, 1
test sil, sil
js 0x14008e6ba
or r8d, 2
xor eax, eax
bt esi, 8
mov ecx, 0x40000000
cmovb eax, ecx
bt esi, 9
jae 0x14008e6d2
bts eax, 8
bt esi, 0xa
jae 0x14008e6db
or eax, 2
bt esi, 0xb
jae 0x14008e6e5
bts eax, 0x1a
cmp qword [r14 + 0x20], 8
jb 0x14008e74b
mov rcx, qword [r14 + 8]
jmp 0x14008e74f
test edi, edi
jne 0x14008e687
cmp byte [0x1401148b0], dil
je 0x14008e735
call fcn.14003e110
cmp eax, 3
jg 0x14008e735
lea r9d, [rdi + 3]
lea r8d, [rdi + 0x2b]
lea rdx, str..platform_file_win.cc
lea rcx, [rsp + 0x40]
or ebx, 0x20
call fcn.1400403f0
lea rdx, str.Check_failed:_false.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 0x20
je 0x14008e744
lea rcx, [rsp + 0x40]
call fcn.14003feb0
xor eax, eax
jmp 0x14008e7f0
lea rcx, [r14 + 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test r15, r15
je 0x14008e798
cmp rax, 0xffffffffffffffff
je 0x14008e798
test r13d, r13d
je 0x14008e78f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne cl
mov byte [r15], cl
jmp 0x14008e798
test r12d, r12d
je 0x14008e798
mov byte [r15], 1
test rbp, rbp
je 0x14008e7ed
cmp rbx, 0xffffffffffffffff
je 0x14008e7ac
mov dword [rbp], 0
jmp 0x14008e7ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14008e7e6
cmp eax, 5
je 0x14008e7dd
cmp eax, 0x20
je 0x14008e7d4
or edx, 0xffffffff
mov ecx, 0xfffffffd
cmp eax, 0x50
cmovne ecx, edx
mov dword [rbp], ecx
jmp 0x14008e7ed
mov dword [rbp], 0xfffffffe
jmp 0x14008e7ed
mov dword [rbp], 0xfffffffb
jmp 0x14008e7ed
mov dword [rbp], 0xfffffffc
mov rax, rbx
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret