Function at 0x14003bc70
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12d, r8d
mov dword [rbp - 0x3c], r8d
mov rbx, rdx
mov r15, rcx
mov qword [rbp - 0x38], rcx
test rdx, rdx
jne 0x14003bcbf
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 2]
call fcn.14003f8c0
xor al, al
jmp 0x14003bfa1
call fcn.14003ac80
mov qword [r15 + 8], 0xffffffffffffffff
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test esi, esi
jg 0x14003bd1a
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xd]
mov rcx, r15
call fcn.14003f8c0
xor al, al
jmp 0x14003bfa1
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
mov rdi, rsi
cmp esi, 0xf
jbe 0x14003bd56
movzx r8d, byte [rbp - 0x40]
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.14003a1b0
mov qword [rbp - 0x18], 0
lea rcx, [rsi + 1]
call fcn.1400be9a0
mov rsi, rax
mov qword [rbp - 0x30], rax
mov byte [rax], 0
mov r9, rbx
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
je 0x14003bdad
mov rcx, rsi
call fcn.1400be46c
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, r15
call fcn.14003f8c0
xor bl, bl
jmp 0x14003bf60
mov rdx, rsi
mov r14, rsi
mov byte [rdi + rsi], 0
movzx eax, byte [rsi]
test al, al
je 0x14003bf1d
movzx edi, byte [rbp - 0x40]
movzx ebx, byte [rbp - 0x40]
movzx esi, byte [rbp - 0x40]
nop
cmp al, 0xa
jne 0x14003be46
mov r12, r14
sub r12, rdx
inc r12
mov rcx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x10]
mov rax, r8
sub rax, rcx
cmp r12, rax
ja 0x14003be23
lea rax, [r12 + rcx]
mov qword [rbp - 0x18], rax
lea r15, [rbp - 0x28]
cmp r8, 0xf
cmova r15, qword [rbp - 0x28]
add r15, rcx
mov r8, r12
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
mov byte [r15 + r12], 0
inc r14
mov rdx, r14
jmp 0x14003bf05
mov qword [rsp + 0x20], r12
mov r9, rdx
movzx r8d, dil
mov rdx, r12
lea rcx, [rbp - 0x28]
call fcn.140011960
inc r14
mov rdx, r14
jmp 0x14003bf05
cmp al, 0xd
jne 0x14003bf02
mov r12, r14
sub r12, rdx
test r12, r12
jle 0x14003beae
mov rcx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x10]
mov rax, r8
sub rax, rcx
cmp r12, rax
ja 0x14003be96
lea rax, [rcx + r12]
mov qword [rbp - 0x18], rax
lea r15, [rbp - 0x28]
cmp r8, 0xf
cmova r15, qword [rbp - 0x28]
add r15, rcx
mov r8, r12
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
mov byte [r12 + r15], 0
jmp 0x14003beae
mov qword [rsp + 0x20], r12
mov r9, rdx
movzx r8d, sil
mov rdx, r12
lea rcx, [rbp - 0x28]
call fcn.140011960
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
cmp rcx, rdx
jae 0x14003bed8
lea rax, [rcx + 1]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x28]
mov word [rax + rcx], 0xa
jmp 0x14003beed
mov r9b, 0xa
movzx r8d, bl
mov edx, 1
lea rcx, [rbp - 0x28]
call fcn.140037a30
xor eax, eax
cmp byte [r14 + 1], 0xa
sete al
inc rax
add r14, rax
mov rdx, r14
jmp 0x14003bf05
inc r14
movzx eax, byte [r14]
test al, al
jne 0x14003bdd0
mov r15, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov r12d, dword [rbp - 0x3c]
sub r14, rdx
je 0x14003bf2e
mov r8, r14
lea rcx, [rbp - 0x28]
call fcn.14001c040
mov rcx, rsi
call fcn.1400be46c
mov rax, qword [r15]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rdx, qword [rbp - 0x28]
mov r9d, r12d
xor r8d, r8d
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_recv]
cmp byte [r15 + 0x68], 0
je 0x14003bf5e
xor bl, bl
jmp 0x14003bf60
mov bl, 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x14003bf9e
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bf99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003bf99
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400be46c
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400be7c0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret