Function at 0x140006cb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x1d0
mov rax, qword [0x1402eec28]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rsi, rdx
mov rdi, rcx
mov edx, 0x14
lea rcx, [rsp + 0xc0]
call fcn.1401d2ca0
test eax, eax
je 0x140006cf5
xor al, al
jmp 0x140006f34
xor r14d, r14d
mov qword [rsp + 0x48], r14
xor ecx, ecx
call sub.obs.dll_bfree
mov qword [rsp + 0x48], r14
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call sub.obs.dll_os_utf8_to_wcs_ptr
test rax, rax
jne 0x140006d2e
mov rcx, qword [rsp + 0x48]
call sub.obs.dll_bfree
xor al, al
jmp 0x140006f34
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
je 0x140006f58
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
lea r8, [rsp + 0x40]
mov edx, 0x10000
lea rcx, [rsp + 0x50]
call fcn.1400067e0
nop dword [rax]
mov dword [rsp + 0x68], r14d
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
sub r8, rdx
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140006f8d
mov eax, dword [rsp + 0x68]
lea rcx, [rsp + 0xc0]
test eax, eax
jne 0x140006eb2
lea r8d, [rax + 0x14]
mov rdx, rsi
call fcn.1401d2960
nop
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140006e49
test rcx, rcx
je 0x140006e29
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006e77
call fcn.1401d5ad0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
test rbx, rbx
je 0x140006e38
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x48]
call sub.obs.dll_bfree
xor al, al
jmp 0x140006f34
test rcx, rcx
je 0x140006e92
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006e7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d5ad0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
test rbx, rbx
je 0x140006ea1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x48]
call sub.obs.dll_bfree
mov al, 1
jmp 0x140006f34
mov r8, rax
mov rdx, qword [rsp + 0x50]
call fcn.1401d30c0
test eax, eax
je 0x140006d90
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140006f15
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006f01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006f01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d5ad0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
test rbx, rbx
je 0x140006f24
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x48]
call sub.obs.dll_bfree
xor al, al
jmp 0x140006f34
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401d5bf0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1d0
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rdi
lea rdx, str.Failed_to_open_file__s:__lu
lea rcx, [rsp + 0x80]
call fcn.14000c960
lea rdx, [0x1402bc360]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rdi
lea rdx, str.Failed_to_read_file__s:__lu
lea rcx, [rsp + 0xa0]
call fcn.14000c960
lea rdx, [0x1402bc360]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3