Function at 0x18000f3ad
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x2068
call fcn.1800023c0
sub rsp, rax
mov rsi, rdx
mov r12, rcx
mov rax, qword [rcx]
mov rax, qword [rax + rdx*8]
movsxd r14, dword [rax]
mov r8, qword [rax + 0x40]
test r8, r8
je 0x18000f4a8
sub r8d, dword [rax + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, r14
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [r12]
mov rdx, qword [rcx + rsi*8]
cmp dword [rdx + 0x10], 1
je 0x18000f6bd
test eax, eax
js 0x18000f4eb
je 0x18000f4ff
mov edi, eax
mov rcx, qword [rdx + 0x48]
add rcx, qword [rdx + 0x50]
lea rdx, [rsp + 0x60]
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [r12]
mov rax, qword [rax + rsi*8]
add rdi, qword [rax + 0x50]
mov qword [rax + 0x50], rdi
cmp rdi, qword [rax + 0x40]
ja 0x18000f6ed
jne 0x18000f6ab
mov r8, qword [rax + 0x48]
mov rcx, qword [rax + 0x60]
or word [rsp + 0x28], 0xffff
mov qword [rsp + 0x30], rcx
and qword [rsp + 0x20], 0
mov rcx, r12
mov edx, r14d
mov r9, rdi
call qword [rax + 0x20]
mov rcx, r12
mov edx, r14d
mov r8d, eax
call fcn.18000f72c
mov rax, qword [r12]
mov rax, qword [rax + rsi*8]
mov rcx, qword [rax + 0x48]
mov r8, qword [rax + 0x50]
xor edx, edx
call fcn.180011428
mov rax, qword [r12]
mov rax, qword [rax + rsi*8]
and qword [rax + 0x50], 0
jmp 0x18000f6ab
mov ecx, dword [rax + 0x10]
cmp ecx, 3
je 0x18000f4b4
test ecx, ecx
jne 0x18000f51d
cmp ecx, 3
je 0x18000f5bd
mov bl, 1
test ecx, ecx
jne 0x18000f5ea
lea rdx, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x2000
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd r9, eax
mov qword [rsp + 0x40], r9
jmp 0x18000f5ea
mov rdi, qword [rdx + 0x30]
test rdi, rdi
je 0x18000f6a0
mov ecx, dword [rdx]
jmp 0x18000f64b
mov rax, qword [rdx + 0x38]
test rax, rax
je 0x18000f6a0
mov r8, qword [rdx + 0x60]
mov rcx, r12
mov edx, r14d
call rax
jmp 0x18000f667
lea rax, [rsp + 0x5c]
mov dword [rax], 0x10
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x2000
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
js 0x18000f638
mov rcx, qword [r12]
mov rcx, qword [rcx + rsi*8]
je 0x18000f68e
mov rbx, qword [rcx + 0x20]
test rbx, rbx
je 0x18000f6ab
movsxd r15, eax
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdi, rax
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [r12]
mov rcx, qword [rcx + rsi*8]
mov rcx, qword [rcx + 0x60]
mov qword [rsp + 0x30], rcx
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x60]
mov rcx, r12
mov edx, r14d
mov r9, r15
jmp 0x18000f634
mov rcx, qword [rax + 8]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x60]
lea rdi, [rsp + 0x40]
mov r8d, 0x2000
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9, qword [rdi]
test eax, eax
setne bl
jmp 0x18000f5ea
test r9, r9
setns al
mov ecx, ebx
xor cl, al
jne 0x18000f638
or bl, al
je 0x18000f638
mov rax, qword [r12]
mov rax, qword [rax + rsi*8]
test r9, r9
je 0x18000f677
mov rbx, qword [rax + 0x20]
test rbx, rbx
je 0x18000f6ab
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x30], rax
or word [rsp + 0x28], 0xffff
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
mov rcx, r12
mov edx, r14d
call rbx
jmp 0x18000f667
mov rax, qword [r12]
mov rax, qword [rax + rsi*8]
mov rdi, qword [rax + 0x30]
test rdi, rdi
je 0x18000f6a0
mov ecx, dword [rax]
call fcn.18000f78f
mov rcx, qword [r12]
mov rcx, qword [rcx + rsi*8]
mov r9, qword [rcx + 0x60]
mov rcx, r12
mov edx, r14d
mov r8d, eax
call rdi
mov rcx, r12
mov edx, r14d
mov r8d, eax
call fcn.18000f72c
jmp 0x18000f6ab
mov rbx, qword [rax + 0x38]
test rbx, rbx
je 0x18000f6a0
mov r8, qword [rax + 0x60]
mov rcx, r12
mov edx, r14d
call rbx
jmp 0x18000f667
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x18000f6a0
mov r8, qword [rcx + 0x60]
jmp 0x18000f510
mov rcx, r12
mov edx, r14d
call fcn.18000ef80
nop
add rsp, 0x2068
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 2
call qword [fcn.180002070]
lea rcx, str.Tried_to_treat_a_DATAGRAM_socket_like_a_stream.
mov qword [rsp + 0x20], rcx
lea rdx, str.Unrecoverable_error_in__s__d_:__s_n_n
lea r8, str.libs_select_group.c
mov rcx, rax
mov r9d, 0x134
jmp 0x18000f71b
mov ecx, 2
call qword [fcn.180002070]
lea rcx, str.Something_caused_data_corruption__overflow__
mov qword [rsp + 0x20], rcx
lea rdx, str.Unrecoverable_error_in__s__d_:__s_n_n
lea r8, str.libs_select_group.c
mov rcx, rax
mov r9d, 0x14f
call fcn.18000ee24
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitThread]