Function at 0x14008fc70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1402d9040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x14008fcd3
mov rdx, qword [rdi + 0x50]
movsxd r9, dword [rdx]
lea rax, [rcx + r9]
cmp rcx, rax
jae 0x14008fcd3
lea eax, [r9 - 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 0x14008fe9c
cmp qword [rdi + 0x80], 0
jne 0x14008fce7
mov eax, 0xffffffff
jmp 0x14008fe9c
mov r9, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r9], rax
jne 0x14008fd14
mov rdx, qword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
mov qword [r9], 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 0x14008fd4f
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
movzx ebx, byte [rbp - 0x2f]
je 0x14008fe9a
mov ebx, 0xffffffff
jmp 0x14008fe9a
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
mov r8d, eax
cmp eax, 0xffffffff
je 0x14008fe8c
nop dword [rax]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
cmp rcx, rdx
jae 0x14008fdad
lea rax, [rcx + 1]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x28]
mov byte [rax + rcx], r8b
mov byte [rax + rcx + 1], 0
jmp 0x14008fdba
movzx r9d, r8b
lea rcx, [rbp - 0x28]
call fcn.140065fd0
mov r11, qword [rdi + 0x68]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
seta r10b
cmova rdx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea r8, [rbp - 0x28]
test r10b, r10b
cmovne r8, qword [rbp - 0x28]
mov rax, qword [r11]
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, r11
call qword [rax + 0x30]
test eax, eax
je 0x14008fe21
sub eax, 1
jne 0x14008fec1
lea rax, [rbp - 0x30]
mov rbx, qword [rbp - 0x18]
cmp qword [rbp - 0x38], rax
jne 0x14008fed9
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
seta r8b
cmova rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x40]
sub rax, rcx
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rbp - 0x28]
test r8b, r8b
cmovne rcx, qword [rbp - 0x28]
sub rbx, rax
lea r8, [rbx + 1]
lea rdx, [rcx + rax]
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]
mov r8d, eax
cmp eax, 0xffffffff
jne 0x14008fd80
mov ebx, 0xffffffff
lea rcx, [rbp - 0x28]
call fcn.1400614c0
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14016b380
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp eax, 2
jne 0x14008fe8c
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
movsx ebx, byte [rax]
jmp 0x14008fe91
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x40]
sub rbx, rcx
add rbx, rax
test rbx, rbx
jle 0x14008ff1f
nop word [rax + rax]
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 0x14008ff1f
mov rcx, qword [rbp - 0x40]
jmp 0x14008ff00
movzx ebx, byte [rbp - 0x30]
jmp 0x14008fe91