Function at 0x1400042f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x140004355
mov rdx, qword [rdi + 0x50]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140004355
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
movzx eax, byte [rdx]
jmp 0x140004582
cmp qword [rdi + 0x80], 0
jne 0x140004367
or eax, 0xffffffff
jmp 0x140004582
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140004394
mov rdx, qword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov rcx, qword [rdi + 0x80]
cmp qword [rdi + 0x68], 0
jne 0x1400043ce
mov r9, rcx
mov edx, 1
mov r8d, edx
lea rcx, [rbp - 0x2f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
jne 0x1400043c6
movzx esi, byte [rbp - 0x2f]
jmp 0x140004580
or esi, 0xffffffff
jmp 0x140004580
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
and qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
or esi, 0xffffffff
cmp eax, esi
mov edx, eax
je 0x140004542
mov rcx, qword [rbp - 0x18]
cmp rcx, qword [rbp - 0x10]
jae 0x140004423
lea rax, [rcx + 1]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rcx], dl
mov byte [rax + rcx + 1], 0
jmp 0x14000442f
mov r9b, dl
lea rcx, [rbp - 0x28]
call fcn.140006870
mov r10, qword [rdi + 0x68]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
setae dl
cmovae rcx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x18]
add r9, rcx
lea r8, [rbp - 0x28]
test dl, dl
cmovne r8, qword [rbp - 0x28]
mov rax, qword [r10]
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x2f]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + 0x74]
mov rcx, r10
call qword [rax + 0x30]
test eax, eax
je 0x140004490
sub eax, 1
jne 0x1400044ee
lea rax, [rbp - 0x30]
mov rbx, qword [rbp - 0x18]
cmp qword [rbp - 0x38], rax
lea rax, [rbp - 0x28]
jne 0x140004506
cmp qword [rbp - 0x10], 0x10
setae dl
cmovae rax, qword [rbp - 0x28]
mov r9, qword [rbp - 0x40]
sub r9, rax
cmp rbx, r9
cmovb r9, rbx
lea rcx, [rbp - 0x28]
test dl, dl
cmovne rcx, qword [rbp - 0x28]
sub rbx, r9
lea r8, [rbx + 1]
lea rdx, [rcx + r9]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x18], rbx
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
jmp 0x1400043ef
cmp eax, 2
jne 0x140004542
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
movsx esi, byte [rax]
jmp 0x140004542
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x40]
sub rbx, rcx
add rbx, rax
test rbx, rbx
jle 0x14000453e
dec rbx
movsx ecx, byte [rbx + rcx]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ungetc]
test rbx, rbx
jle 0x14000453e
mov rcx, qword [rbp - 0x40]
jmp 0x14000451f
movzx esi, byte [rbp - 0x30]
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140004580
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000457b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000457b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400082f4
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140008290
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret