Function at 0x1800076b0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r14, rdx
mov r13, qword [0x1817797d8]
cmp qword [r13 + 0x10], 0
je 0x180007a8e
mov rax, qword [r13 + 8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x180007a81
xor r12d, r12d
lea rcx, [0x180013700]
mov r9d, 0x80000
mov rdi, qword [rbx + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r12
mov dword [rbp - 0x10], 0x21
cmp byte [rdi + 0xd], 0
je 0x180007812
mov rax, qword [rdi]
mov r8, qword [rax + 0x18]
cmp rax, rcx
jne 0x180007abf
mov qword [rdi + 0x28], r12
mov qword [rdi + 0x20], r12
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x18000777f
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rcx + r8], 0
jne 0x180007760
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.msvcrt.dll_free]
mov qword [rdi + 0x10], r12
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x180007792
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [rdi + 0x18], r12
cmp qword [rbp - 0x28], 0
jne 0x1800077d1
cmp dword [rbp - 0x14], 0
jne 0x1800077d1
mov ecx, 0x400
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x14], 0x400
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], r12d
mov ecx, dword [rdi + 8]
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rbp - 0x14]
sub ecx, dword [rbp - 0x18]
cmp ecx, 4
jb 0x1800077f4
mov rcx, qword [rbp - 0x20]
mov dword [rcx], eax
add qword [rbp - 0x20], 4
add dword [rbp - 0x18], 4
mov dword [rbp - 0x10], 9
mov rsi, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rax], rsi
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x18000782d
cmp byte [rdi + 0xc], 0
je 0x180007853
mov rsi, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rax], rsi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r13 + 0x10]
mov edx, 0x18
mov rcx, rbx
call fcn.180010874
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rbx, rsi
jmp 0x180007968
mov rax, qword [rdi]
mov r8, qword [rax + 0x10]
cmp rax, rcx
jne 0x180007ab0
mov rax, qword [0x1817797d0]
cmp dword [rax + 0x10], 0x1c
jle 0x180007887
mov rax, qword [rax + 8]
add rax, 0x1c0
je 0x180007887
cmp word [rax], 2
jne 0x180007887
mov edx, dword [rax + 8]
jmp 0x18000788a
mov edx, r12d
mov r15, qword [rdi + 0x28]
mov ecx, 0x1000
test edx, edx
cmove rcx, r9
mov eax, 0x1000
cmove eax, r9d
cmp r15, rcx
cmovae r15d, eax
lea esi, [r15 + 8]
movsxd rcx, esi
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x14], esi
mov r8d, esi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], r12d
mov ecx, dword [rdi + 8]
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rbp - 0x14]
sub ecx, dword [rbp - 0x18]
cmp ecx, 4
jb 0x1800078f9
mov rcx, qword [rbp - 0x20]
mov dword [rcx], eax
add qword [rbp - 0x20], 4
add dword [rbp - 0x18], 4
mov esi, r15d
mov ecx, r15d
call qword [sym.imp.msvcrt.dll_malloc]
mov r15, rax
mov r9, qword [rdi + 0x18]
mov r8d, esi
mov edx, 1
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fread]
mov rsi, rax
mov ecx, dword [rbp - 0x14]
sub ecx, dword [rbp - 0x18]
cmp rax, rcx
ja 0x180007946
test rax, rax
je 0x180007946
mov r8, rax
mov rdx, r15
mov rcx, qword [rbp - 0x20]
call sub.msvcrt.dll_memcpy
add qword [rbp - 0x20], rsi
add dword [rbp - 0x18], esi
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
sub qword [rdi + 0x28], rsi
mov dword [rbp - 0x10], 8
cmp qword [rdi + 0x28], 0
jne 0x180007965
mov byte [rdi + 0xd], 1
mov rbx, qword [rbx]
test r14, r14
je 0x180007a46
mov r8d, dword [rbp - 0x18]
mov rax, qword [0x1817797d0]
cmp dword [rax + 0x10], 0x1c
jle 0x1800079c1
mov rax, qword [rax + 8]
add rax, 0x1c0
je 0x1800079c1
movzx edx, word [rax]
cmp dx, 2
jne 0x1800079c1
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x1800079c1
test rax, rax
je 0x1800079a8
cmp dx, dx
je 0x1800079ab
mov ecx, r12d
cmp r8d, ecx
jbe 0x1800079c1
lea rdx, [rbp - 0x28]
mov rcx, r14
call fcn.180002c80
jmp 0x180007a46
mov dword [rbp + 0x30], r12d
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x10]
mov rdx, qword [rbp - 0x28]
call fcn.1800022c0
mov r15, rax
mov edi, dword [rbp + 0x30]
test edi, edi
je 0x180007a46
lea rcx, [rdi + 4]
cmp rcx, 0x200000
ja 0x180007a46
mov edx, dword [r14 + 0x30]
add edx, edi
add rdx, 4
cmp rdx, 0x200000
jbe 0x180007a0d
mov rcx, r14
call fcn.180002fa0
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [r14 + 0x30]
mov rcx, qword [r14 + 0x28]
mov dword [rdx + rcx], eax
add dword [r14 + 0x30], 4
mov ecx, dword [r14 + 0x30]
add rcx, qword [r14 + 0x28]
mov r8, rdi
mov rdx, r15
call sub.msvcrt.dll_memcpy
add dword [r14 + 0x30], edi
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180007a6a
mov eax, dword [rbp - 0x14]
test eax, eax
je 0x180007a6a
mov r8d, eax
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, qword [r13 + 8]
lea rcx, [0x180013700]
mov r9d, 0x80000
jne 0x180007710
test r14, r14
je 0x180007a8e
mov rcx, r14
call fcn.180002fa0
mov eax, dword [r13 + 0x10]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, [rbp - 0x28]
mov rcx, rdi
call r8
jmp 0x180007965
lea rdx, [rbp - 0x28]
mov rcx, rdi
call r8
jmp 0x1800077fb