Function at 0x140042e30
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x140375828]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x58], r12d
lea r13, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r12
mov byte [rsp + 0x50], r12b
mov qword [rbp - 0x51], 0xf
mov qword [rbp - 0x59], r12
mov byte [rbp - 0x69], r12b
xor r8d, r8d
lea rdx, [0x1402b3878]
lea rcx, [rbp - 0x69]
call fcn.140003a80
nop
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x40]
call fcn.140008310
nop
mov r8, qword [rbp - 0x51]
cmp r8, 0x10
jb 0x140042ed7
inc r8
mov rdx, qword [rbp - 0x69]
lea rcx, [rbp - 0x69]
call fcn.140003fe0
mov qword [rbp - 0x51], 0xf
mov qword [rbp - 0x59], r12
mov byte [rbp - 0x69], 0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x79]
call fcn.14005c2f0
nop
mov rbx, qword [rax]
test rbx, rbx
je 0x140042f12
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [r15]
mov qword [r15], rbx
test rdx, rdx
je 0x140042f33
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rdx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x140042f52
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140042f7d
cmp byte [rsp + 0x50], 0
je 0x140042f7d
call qword [sym.imp.libcef.dll_cef_string_utf16_clear]
mov edx, 0x18
mov rcx, qword [rsp + 0x48]
call fcn.1401dd1a8
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, rcx
sar rax, 3
cmp rax, 2
jne 0x140043388
mov rcx, qword [rcx]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
je 0x140043388
mov rcx, qword [rdi]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
je 0x140043388
mov rax, qword [rdi]
mov rcx, qword [rax]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x98]
nop
lea rdx, [rbp - 0x49]
mov rcx, rax
call fcn.140044570
nop
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140043012
cmp byte [rsp + 0x50], 0
je 0x140043008
call qword [sym.imp.libcef.dll_cef_string_utf16_clear]
mov edx, 0x18
mov rcx, qword [rsp + 0x48]
call fcn.1401dd1a8
mov qword [rsp + 0x48], r12
mov byte [rsp + 0x50], 0
lea rcx, [rbp - 0x49]
call fcn.140045a30
mov rcx, rax
call fcn.140045af0
lea rcx, [rbp - 0x49]
cmp rcx, rax
je 0x14004303f
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.140026920
cmp qword [rbp - 0x39], 0
jne 0x140043050
mov ebx, 2
jmp 0x14004336a
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
call qword [rax + 0x98]
nop
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.140044570
nop
mov qword [rbp - 0x29], r13
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400430a1
cmp byte [rbp - 0x19], 0
je 0x140043099
call qword [sym.imp.libcef.dll_cef_string_utf16_clear]
mov edx, 0x18
mov rcx, qword [rbp - 0x21]
call fcn.1401dd1a8
mov qword [rbp - 0x21], r12
mov byte [rbp - 0x19], 0
lea rcx, [rbp - 9]
call fcn.14001b650
test al, al
jne 0x1400430b8
mov ebx, 5
jmp 0x14004333f
lea rcx, [rbp - 0x49]
mov r9, qword [rbp - 0x49]
mov r10, qword [rbp - 0x31]
cmp r10, 8
cmovae rcx, r9
mov rax, qword [rbp - 0x39]
lea rax, [rcx + rax*2]
lea rcx, [rbp - 0x49]
cmovae rcx, r9
mov rdx, r12
mov r8, rax
sub r8, rcx
inc r8
shr r8, 1
cmp rcx, rax
cmova r8, r12
test r8, r8
je 0x14004311d
mov eax, 0x5c
nop dword [rax]
cmp word [rcx], 0x2f
jne 0x140043109
mov word [rcx], ax
add rcx, 2
inc rdx
cmp rdx, r8
jne 0x140043100
mov r10, qword [rbp - 0x31]
mov r9, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
cmp r10, 8
cmovae rcx, r9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140043183
test al, 0x10
je 0x140043142
mov ebx, 4
jmp 0x14004333f
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov ebx, r12d
cmp rax, 0xffffffffffffffff
jne 0x140043199
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dl, 1
call fcn.14003f8a0
mov ebx, eax
jmp 0x14004333f
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140043322
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x58]
mov r8d, r14d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004330f
mov r8d, dword [rsp + 0x58]
mov qword [rbp - 0x51], 0xf
mov qword [rbp - 0x59], r12
mov byte [rbp - 0x69], bl
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.140003a80
nop
lea rcx, [rbp - 9]
call fcn.14001b5d0
cmp eax, 1
jne 0x14004326f
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.14001b400
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.140007b00
mov r8, qword [rbp - 0x11]
cmp r8, 0x10
jb 0x14004323e
inc r8
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x29]
call fcn.140003fe0
mov rax, qword [rbp - 0x59]
lea rcx, [rax - 1]
cmp rax, rcx
jae 0x140043259
lea rcx, str.invalid_string_position
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
mov qword [rbp - 0x59], rcx
lea rax, [rbp - 0x69]
cmp qword [rbp - 0x51], 0x10
cmovae rax, qword [rbp - 0x69]
mov byte [rcx + rax], 0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r12
mov byte [rsp + 0x50], 0
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x40]
call fcn.140008310
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x79]
call fcn.14005c2f0
nop
mov rdx, rax
mov rcx, r15
call fcn.14000a2e0
nop
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x1400432c7
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400432f3
cmp byte [rsp + 0x50], 0
je 0x1400432f3
call qword [sym.imp.libcef.dll_cef_string_utf16_clear]
mov edx, 0x18
mov rcx, qword [rsp + 0x48]
call fcn.1401dd1a8
nop
mov r8, qword [rbp - 0x51]
cmp r8, 0x10
jb 0x140043327
inc r8
mov rdx, qword [rbp - 0x69]
lea rcx, [rbp - 0x69]
call fcn.140003fe0
jmp 0x140043327
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dl, 1
call fcn.14003f8a0
mov ebx, eax
jmp 0x140043327
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14004333f
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x140043359
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400271e0
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r12
mov word [rbp - 9], r12w
mov r8, qword [rbp - 0x31]
cmp r8, 8
jb 0x140043384
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.1400271e0
mov eax, ebx
jmp 0x14004338d
mov eax, 2
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401dd140
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret