Function at 0x1800061c0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r12, rdx
mov r13, qword [0x181776738]
mov rax, qword [r13 + 8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1800064ed
xor r15d, r15d
lea rcx, [0x1800114d0]
mov r9d, 0x80000
nop dword [rax]
nop word [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x10], r15d
mov rdi, qword [rbx + 0x10]
mov rax, qword [rdi]
cmp byte [rdi + 0xc], 0
je 0x180006339
mov r8, qword [rax + 0x18]
cmp rax, rcx
jne 0x18000651e
mov qword [rdi + 0x20], 0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x18000628f
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rcx + r8], 0
jne 0x180006270
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.msvcrt.dll_free]
mov qword [rdi + 0x10], r15
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1800062a2
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [rdi + 0x18], r15
cmp qword [rbp - 0x28], 0
jne 0x1800062e1
cmp dword [rbp - 0x14], 0
jne 0x1800062e1
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], r15d
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 0x180006304
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 rdi, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
dec qword [r13 + 0x10]
mov edx, 0x18
mov rcx, rbx
call fcn.18000eba4
mov rbx, rdi
jmp 0x18000644a
mov r8, qword [rax + 0x10]
cmp rax, rcx
jne 0x18000650f
mov rax, qword [0x181776730]
mov rcx, qword [rax + 8]
movups xmm1, xmmword [rcx + 0x1c0]
mov edx, r15d
movdqa xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
movd eax, xmm1
cmp ax, 2
cmove edx, ecx
mov eax, 0x1000
test edx, edx
cmove eax, r9d
mov r14d, dword [rdi + 0x24]
cmp r14d, eax
cmovae r14d, eax
lea esi, [r14 + 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], r15d
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 0x1800063d9
mov rcx, qword [rbp - 0x20]
mov dword [rcx], eax
add qword [rbp - 0x20], 4
add dword [rbp - 0x18], 4
mov ecx, r14d
call qword [sym.imp.msvcrt.dll_malloc]
mov r15, rax
mov r9, qword [rdi + 0x18]
mov r8d, r14d
mov edx, 1
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fread]
mov r14, rax
mov ecx, dword [rbp - 0x14]
sub ecx, dword [rbp - 0x18]
cmp eax, ecx
ja 0x180006426
test r14d, r14d
je 0x180006426
mov esi, r14d
mov r8d, r14d
mov rdx, r15
mov rcx, qword [rbp - 0x20]
call sub.msvcrt.dll_memcpy
add qword [rbp - 0x20], rsi
add dword [rbp - 0x18], r14d
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
sub dword [rdi + 0x24], r14d
mov dword [rbp - 0x10], 8
xor r15d, r15d
cmp dword [rdi + 0x24], r15d
jne 0x180006447
mov byte [rdi + 0xc], 1
mov rbx, qword [rbx]
test r12, r12
je 0x1800064b2
mov rax, qword [0x181776730]
mov rcx, qword [rax + 8]
movups xmm0, xmmword [rcx + 0x1c0]
movups xmmword [rbp - 0x38], xmm0
movd eax, xmm0
cmp ax, 2
jne 0x1800064a2
cmp dword [rbp - 0x30], 0
jbe 0x1800064a2
movups xmm1, xmm0
mov edx, r15d
psrldq xmm0, 8
movd ecx, xmm0
movd eax, xmm1
cmp ax, 2
cmove edx, ecx
cmp dword [rbp - 0x18], edx
jbe 0x1800064a2
lea rdx, [rbp - 0x28]
mov rcx, r12
call fcn.180002ad0
jmp 0x1800064b2
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov rcx, r12
call fcn.180002970
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1800064d6
mov eax, dword [rbp - 0x14]
test eax, eax
je 0x1800064d6
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, [0x1800114d0]
mov r9d, 0x80000
jne 0x180006220
mov eax, dword [r13 + 0x10]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, [rbp - 0x28]
mov rcx, rdi
call r8
jmp 0x180006447
lea rdx, [rbp - 0x28]
mov rcx, rdi
call r8
jmp 0x18000630b