Function at 0x1400142e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, r9
lea rbx, [0x140050dd0]
mov esi, r8d
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov r12, rbx
mov rbp, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop dword [rax + rax]
mov r13d, eax
cmp esi, 0x1fff
jb 0x140014333
mov esi, 0x1fff
lea rcx, [0x14005b420]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
nop dword [rax + rax]
xor r15d, r15d
mov r9, r14
mov r8d, esi
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
lea rcx, [0x14005b420]
mov edi, eax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
test edi, edi
je 0x140014472
mov edi, dword [r14]
test edi, edi
je 0x140014472
mov r10d, dword [0x1400449b8]
mov ecx, edi
mov dword [rsp + 0x80], ecx
mov edx, edi
cmp r10d, 0xfde9
je 0x14002702a
test edi, edi
jle 0x14001441f
lea r8, [0x14005b320]
cmp edx, 3
jl 0x1400143cc
movzx eax, byte [rbx]
cmp al, 0xa
je 0x14002708f
cmp al, 0xd
je 0x1400143ed
movzx eax, byte [rbx]
cmp byte [rax + r8], r15b
jne 0x14002709e
inc rbx
dec ecx
mov dword [rsp + 0x80], ecx
mov edx, ecx
test ecx, ecx
jg 0x1400143b8
jmp 0x14001441f
cmp byte [rbx + 1], 0xa
jne 0x1400143cc
mov edi, ebx
mov byte [rbx + 2], r15b
sub edi, r12d
xor r9d, r9d
add edi, 2
xor r8d, r8d
mov rcx, rbp
lea edx, [rdi + r13]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop dword [rax + rax]
mov r10d, dword [0x1400449b8]
mov r13d, 1
mov ecx, r10d
call fcn.140014564
test eax, eax
mov dword [rsp + 0x28], esi
mov rax, qword [rsp + 0x78]
mov r9d, edi
cmovne r15d, r13d
mov qword [rsp + 0x20], rax
mov edx, r15d
mov r8, r12
mov ecx, r10d
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
nop dword [rax + rax]
mov dword [r14], eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x14001445c
test r13d, r13d
jne 0x1400143ad
cmp esi, 3
jbe 0x1400143ad
movzx r8d, word [0x140050dd0]
movzx eax, word [0x1400385a0]
sub r8d, eax
jne 0x140027062
movzx r8d, byte [0x140050dd2]
movzx eax, byte [0x1400385a2]
sub r8d, eax
test r8d, r8d
jne 0x1400143ad
add edi, 0xfffffffd
lea rbx, [0x140050dd3]
mov ecx, edi
mov dword [r14], edi
mov dword [rsp + 0x80], ecx
lea r13d, [r8 + 3]
mov r12, rbx
mov edx, edi
jmp 0x1400143ad
cmp byte [rbx + 1], 0xd
je 0x1400143f3
jmp 0x1400143cc
cmp ecx, 1
je 0x1400270af
add rbx, 2
add ecx, 0xfffffffe
jmp 0x1400143de
lea rcx, [0x14005b420]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
nop dword [rax + rax]
mov r13d, 1
mov qword [rsp + 0x20], r15
mov r8d, r13d
lea rdx, [rbx + 1]
lea r9, [rsp + 0x80]
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
lea rcx, [0x14005b420]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
test ebx, ebx
je 0x14002711c
cmp dword [rsp + 0x80], r15d
je 0x14002711c
mov r10d, dword [0x1400449b8]
inc edi
jmp 0x140014425
mov dword [r14], r15d
jmp 0x140014472