Function at 0x140091810
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 [0x1402dc040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x140091873
mov rdx, qword [rdi + 0x50]
movsxd r9, dword [rdx]
lea rax, [rcx + r9]
cmp rcx, rax
jae 0x140091873
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 0x140091a38
cmp qword [rdi + 0x80], 0
jne 0x140091887
mov eax, 0xffffffff
jmp 0x140091a38
mov r9, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r9], rax
jne 0x1400918b4
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 0x1400918ef
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 0x140091a36
mov ebx, 0xffffffff
jmp 0x140091a36
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 0x140091a28
nop dword [rax]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
cmp rcx, rdx
jae 0x14009194d
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 0x14009195a
movzx r9d, r8b
lea rcx, [rbp - 0x28]
call fcn.140067b40
mov r11, qword [rdi + 0x68]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rdx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova 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 0x1400919bf
sub eax, 1
jne 0x140091a5d
lea rax, [rbp - 0x30]
mov rbx, qword [rbp - 0x18]
cmp qword [rbp - 0x38], rax
lea rax, [rbp - 0x28]
jne 0x140091a75
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
mov r9, qword [rbp - 0x40]
sub r9, rax
cmp rbx, r9
cmovb r9, rbx
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova 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]
mov r8d, eax
cmp eax, 0xffffffff
jne 0x140091920
mov ebx, 0xffffffff
lea rcx, [rbp - 0x28]
call fcn.1400633d0
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14016dfe0
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 0x140091a28
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
movsx ebx, byte [rax]
jmp 0x140091a2d
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 0x140091aaf
nop
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 0x140091aaf
mov rcx, qword [rbp - 0x40]
jmp 0x140091a90
movzx ebx, byte [rbp - 0x30]
jmp 0x140091a2d