Function at 0x14017a920
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rdi, rsp
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
cmp qword [rsp + 0x98], 0
jne 0x14017a980
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x90]
call fcn.14017ffb0
xor al, al
jmp 0x14017ac88
mov rcx, qword [rsp + 0x90]
call fcn.1401771e0
mov rax, qword [rsp + 0x90]
add rax, 8
mov rcx, rax
call fcn.14017c5a0
mov dword [rsp + 0x30], 0
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.MSVCR120D.dll_fseek]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.MSVCR120D.dll_ftell]
mov dword [rsp + 0x30], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.MSVCR120D.dll_fseek]
cmp dword [rsp + 0x30], 0
jg 0x14017aa12
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WS2_32.dll_inet_ntoa
mov rcx, qword [rsp + 0x90]
call fcn.14017ffb0
xor al, al
jmp 0x14017ac88
mov eax, dword [rsp + 0x30]
inc eax
cdqe
mov rcx, rax
call sub.MSVCR120D.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
movsxd rax, dword [rsp + 0x30]
mov r9, qword [rsp + 0x98]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120D.dll_fread]
cmp rax, 1
je 0x14017aaa5
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call sub.MSVCR120D.dll_void___cdecl_operator_delete_void____ptr64_
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x90]
call fcn.14017ffb0
xor al, al
jmp 0x14017ac88
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], recv
mov byte [rsp + 0x51], 0xa
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
test eax, eax
je 0x14017abe8
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x40], rax
jb 0x14017ab14
mov r8d, 0x3f6
lea rdx, [0x14024cea0]
lea rcx, str.p____buflength_
call qword [sym.imp.MSVCR120D.dll__wassert]
xor eax, eax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x48], rax
jbe 0x14017ab47
mov r8d, 0x3f7
lea rdx, [0x14024cf00]
lea rcx, str.q____buflength_
call qword [sym.imp.MSVCR120D.dll__wassert]
xor eax, eax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x48], rax
jbe 0x14017ab6f
mov r8d, 0x3f8
lea rdx, [0x14024cfb0]
lea rcx, str.q___p
call qword [sym.imp.MSVCR120D.dll__wassert]
xor eax, eax
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0xd
jne 0x14017abba
mov rax, qword [rsp + 0x48]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0xa
jne 0x14017abb8
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
jmp 0x14017abe3
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
jmp 0x14017aad1
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x48], rax
jbe 0x14017ac1b
mov r8d, 0x405
lea rdx, [0x14024d020]
lea rcx, [0x14024cf88]
call qword [sym.imp.MSVCR120D.dll__wassert]
xor eax, eax
mov rax, qword [rsp + 0x48]
mov byte [rax], 0
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov r9d, dword [rsp + 0xa0]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call sub.MSVCR120D.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x90]
call fcn.14017c6e0
movzx eax, al
test eax, eax
jne 0x14017ac7b
mov dword [rsp + 0x70], 1
jmp 0x14017ac83
mov dword [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
add rsp, 0x80
pop rdi
ret