Function at 0x140010470
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.14001be78
mov sil, 1
test eax, eax
jne 0x14001064d
lea rcx, [rsp + 0x3c]
mov edx, 4
mov r8d, 1
mov r9, rbx
call fcn.140020f94
cmp rax, 1
jne 0x14001064d
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rsp + 0x3c], eax
mov rcx, rbx
mov edx, eax
xor r8d, r8d
call fcn.14001be78
test eax, eax
jne 0x14001064d
mov rcx, rbx
mov edx, 4
mov r8d, 1
call fcn.14001be78
test eax, eax
jne 0x14001064d
lea rcx, [rsp + 0x38]
mov edx, 4
mov r8d, 1
mov r9, rbx
call fcn.140020f94
cmp rax, 1
jne 0x14001064d
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov r14d, eax
mov dword [rsp + 0x38], eax
mov edx, 0x10
mov rcx, rbx
xor r8d, r8d
call fcn.14001be80
test eax, eax
jne 0x14001064d
lea rcx, [rsp + 0x34]
mov edx, 4
mov r8d, 1
mov r9, rbx
call fcn.140020f94
cmp rax, 1
jne 0x14001064d
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rsp + 0x34], eax
cmp eax, 8
ja 0x14001064d
mov ebp, eax
test eax, eax
je 0x140010635
lea r15, [rsp + 0x30]
mov r13, qword [sym.imp.WSOCK32.dll_ntohl]
mov rcx, rbx
mov edx, 4
mov r8d, 1
call fcn.14001be78
test eax, eax
jne 0x14001064d
mov edx, 4
mov r8d, 1
mov rcx, r15
mov r9, rbx
call fcn.140020f94
cmp rax, 1
jne 0x14001064d
mov ecx, dword [rsp + 0x30]
call r13
mov dword [rsp + 0x30], eax
mov rcx, rbx
mov edx, eax
mov r8d, 1
call fcn.14001be78
test eax, eax
jne 0x14001064d
add ebp, 0xffffffff
jne 0x1400105de
mov rcx, rbx
call fcn.14001c9a8
cdqe
mov ecx, r14d
cmp rax, rcx
jne 0x140010797
xor esi, esi
mov ebx, 0xffffffff
test sil, sil
jne 0x140010717
test ebp, ebp
je 0x140010717
mov r9, qword [rdi]
lea rcx, [rsp + 0x3c]
mov edx, 4
mov r8d, 1
call fcn.140020f94
cmp rax, 1
jne 0x140010717
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ebp, eax
add ebp, 0xfffffff8
mov dword [rsp + 0x3c], ebp
cmp ebp, 0x60
ja 0x140010717
mov r9, qword [rdi]
lea rcx, [rsp + 0x38]
mov edx, 4
mov r8d, 1
call fcn.140020f94
cmp rax, 1
jne 0x140010717
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rsp + 0x38], eax
mov r9, qword [rdi]
cmp eax, 1
jne 0x140010707
mov edx, ebp
lea rdi, [rsp + 0x40]
mov r8d, 1
mov rcx, rdi
call fcn.140020f94
cmp rax, 1
jne 0x140010717
mov rcx, rdi
call fcn.140021880
mov qword [r12], rdi
cmp eax, 0x40
jl 0x14001073d
mov qword [r12], 0
jmp 0x140010717
mov rcx, r9
mov edx, ebp
mov r8d, 1
call fcn.14001be78
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140023fe0
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.140021880
mov qword [r12 + 8], rdi
cmp eax, 0x20
jl 0x140010776
xorps xmm0, xmm0
movups xmmword [r12], xmm0
jmp 0x140010717
lea rcx, [rsp + 0x40]
call fcn.14001eb30
mov qword [r12], rax
mov rcx, qword [r12 + 8]
call fcn.14001eb30
mov qword [r12 + 8], rax
xor ebx, ebx
jmp 0x140010717
lea rcx, [rsp + 0x2c]
mov edx, 4
mov r8d, 1
mov r9, rbx
call fcn.140020f94
mov ebp, dword [rsp + 0x2c]
cmp rax, 1
jne 0x14001064d
mov ecx, ebp
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ebp, eax
mov dword [rsp + 0x2c], eax
mov rcx, rbx
call fcn.14001c9a8
xor esi, esi
jmp 0x14001064d