Function at 0x1400103a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0xa0], 0
mov rbx, qword [rcx]
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call fcn.14001bd18
mov sil, 1
test eax, eax
jne 0x14001057d
lea rcx, [rsp + 0x30]
mov edx, 4
mov r8d, 1
mov r9, rbx
call fcn.140020e34
cmp rax, 1
jne 0x14001057d
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rsp + 0x30], eax
mov rcx, rbx
mov edx, eax
xor r8d, r8d
call fcn.14001bd18
test eax, eax
jne 0x14001057d
mov rcx, rbx
mov edx, 4
mov r8d, 1
call fcn.14001bd18
test eax, eax
jne 0x14001057d
lea rcx, [rsp + 0x2c]
mov edx, 4
mov r8d, 1
mov r9, rbx
call fcn.140020e34
cmp rax, 1
jne 0x14001057d
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov r14d, eax
mov dword [rsp + 0x2c], eax
mov edx, 0x10
mov rcx, rbx
xor r8d, r8d
call fcn.14001bd20
test eax, eax
jne 0x14001057d
lea rcx, [rsp + 0x3c]
mov edx, 4
mov r8d, 1
mov r9, rbx
call fcn.140020e34
cmp rax, 1
jne 0x14001057d
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rsp + 0x3c], eax
cmp eax, 8
ja 0x14001057d
mov ebp, eax
test eax, eax
je 0x140010565
lea r15, [rsp + 0x38]
mov r13, qword [sym.imp.WSOCK32.dll_ntohl]
mov rcx, rbx
mov edx, 4
mov r8d, 1
call fcn.14001bd18
test eax, eax
jne 0x14001057d
mov edx, 4
mov r8d, 1
mov rcx, r15
mov r9, rbx
call fcn.140020e34
cmp rax, 1
jne 0x14001057d
mov ecx, dword [rsp + 0x38]
call r13
mov dword [rsp + 0x38], eax
mov rcx, rbx
mov edx, eax
mov r8d, 1
call fcn.14001bd18
test eax, eax
jne 0x14001057d
add ebp, 0xffffffff
jne 0x14001050e
mov rcx, rbx
call fcn.14001c848
cdqe
mov ecx, r14d
cmp rax, rcx
jne 0x1400106c7
xor esi, esi
mov ebx, 0xffffffff
test sil, sil
jne 0x140010647
test ebp, ebp
je 0x140010647
mov r9, qword [rdi]
lea rcx, [rsp + 0x30]
mov edx, 4
mov r8d, 1
call fcn.140020e34
cmp rax, 1
jne 0x140010647
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ebp, eax
add ebp, 0xfffffff8
mov dword [rsp + 0x30], ebp
cmp ebp, 0x60
ja 0x140010647
mov r9, qword [rdi]
lea rcx, [rsp + 0x2c]
mov edx, 4
mov r8d, 1
call fcn.140020e34
cmp rax, 1
jne 0x140010647
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rsp + 0x2c], eax
mov r9, qword [rdi]
cmp eax, 1
jne 0x140010637
mov edx, ebp
lea rdi, [rsp + 0x40]
mov r8d, 1
mov rcx, rdi
call fcn.140020e34
cmp rax, 1
jne 0x140010647
mov rcx, rdi
call fcn.140021720
mov qword [r12], rdi
cmp eax, 0x40
jl 0x14001066d
mov qword [r12], 0
jmp 0x140010647
mov rcx, r9
mov edx, ebp
mov r8d, 1
call fcn.14001bd18
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140023e80
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
shl rax, 0x20
movabs rcx, 0x100000000
add rcx, rax
sar rcx, 0x20
lea rdi, [rsp + rcx]
add rdi, 0x40
mov rcx, rdi
call fcn.140021720
mov qword [r12 + 8], rdi
cmp eax, 0x20
jl 0x1400106a6
xorps xmm0, xmm0
movups xmmword [r12], xmm0
jmp 0x140010647
lea rcx, [rsp + 0x40]
call fcn.14001e9d0
mov qword [r12], rax
mov rcx, qword [r12 + 8]
call fcn.14001e9d0
mov qword [r12 + 8], rax
xor ebx, ebx
jmp 0x140010647
lea rcx, [rsp + 0x34]
mov edx, 4
mov r8d, 1
mov r9, rbx
call fcn.140020e34
mov ebp, dword [rsp + 0x34]
cmp rax, 1
jne 0x14001057d
mov ecx, ebp
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ebp, eax
mov dword [rsp + 0x34], eax
mov rcx, rbx
call fcn.14001c848
xor esi, esi
jmp 0x14001057d