Function at 0x140080d90
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 [0x1402b3030]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x140080df3
mov rdx, qword [rdi + 0x50]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140080df3
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 0x140081005
cmp qword [rdi + 0x80], 0
jne 0x140080e07
mov eax, 0xffffffff
jmp 0x140081005
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140080e34
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 0x140080e6f
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 0x140081003
mov ebx, 0xffffffff
jmp 0x140081003
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]
cmp eax, 0xffffffff
mov r8d, eax
je 0x140080ff5
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
cmp rcx, rdx
jae 0x140080ec9
lea rax, [rcx + 1]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rcx], r8b
mov byte [rax + rcx + 1], 0
jmp 0x140080ed6
movzx r9d, r8b
lea rcx, [rbp - 0x28]
call fcn.140063660
mov r11, qword [rdi + 0x68]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
setae r10b
cmovae 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 0x140080f39
sub eax, 1
jne 0x140080f93
lea rax, [rbp - 0x30]
mov rbx, qword [rbp - 0x18]
cmp qword [rbp - 0x38], rax
jne 0x140080fab
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
setae r8b
cmovae 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]
jmp 0x140080e8a
cmp eax, 2
jne 0x140080ff5
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
movsx ebx, byte [rax]
jmp 0x140080ffa
lea rax, [rbp - 0x28]
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 0x140080fef
nop dword [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 0x140080fef
mov rcx, qword [rbp - 0x40]
jmp 0x140080fd0
movzx ebx, byte [rbp - 0x30]
jmp 0x140080ffa
mov ebx, 0xffffffff
lea rcx, [rbp - 0x28]
call fcn.14005ec80
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14014d450
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