Function at 0x140111130
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x40d0
call fcn.14022fc50
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x4108], rbx
mov qword [rsp + 0x4110], rbp
mov qword [rsp + 0x4118], rsi
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x40c0], rax
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x44], 0xf3e58
mov dword [rcx + 0xc8], r15d
cmp dword [reloc.WS2_32.dll_accept], r15d
jg 0x1401111d7
mov ebx, dword [rcx + 0x10]
add rcx, 0x20
call fcn.140110070
mov qword [rsp + 0x30], 0x2008
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
lea r9, str.Thread_id_d__started__mc_d_fs_d
mov r8d, 0xe1
lea rdx, str....._network_serviceThreadIO.cpp
xor ecx, ecx
call fcn.1400045a0
lea rbx, [rsi + 0x60]
mov qword [rsp + 0x48], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp dword [rsi + 0xc8], 0
jne 0x140111458
mov ebp, 0x3e7
nop dword [rax]
mov dword [rsi + 0xcc], 1
lea r8, [rsp + 0x2070]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140110d30
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
lea rcx, [rsi + 0x88]
call fcn.140110940
cmp eax, ebp
cmova eax, ebp
imul eax, eax, 0x3e8
mov dword [rsp + 0x44], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test dil, 2
lea r8, [rsp + 0x2070]
cmove r8, r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rsp + 0x60]
lea ecx, [r9 + 2]
call sub.WS2_32.dll_select
mov edi, eax
mov dword [rsi + 0xcc], r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
jle 0x140111446
mov rcx, qword [rsi + 0x58]
dec ecx
movsxd rbp, ecx
js 0x140111441
nop word [rax + rax]
mov rax, qword [rsi + 0x48]
mov rdi, qword [rax + rbp*8]
mov r13, qword [rdi + 0x48]
mov r12d, dword [rdi + 0x30]
test r12d, r12d
jne 0x14011130f
mov rdx, rdi
lea rcx, [rsi + 0x88]
call fcn.140110880
mov rdx, qword [rsi + 0x58]
cmp rbp, rdx
jae 0x1401112f7
lea rax, [rdx - 1]
cmp rbp, rax
jae 0x1401112f3
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx + rdx*8 - 8]
mov qword [rcx + rbp*8], rax
dec qword [rsi + 0x58]
mov rax, qword [rdi + 0x10]
movsxd rcx, dword [rax + 4]
lea rcx, [rcx + rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1401113f3
cmp dword [rdi + 0x58], 0
je 0x14011135e
lea rdx, [rsp + 0x60]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14011135e
mov dword [rdi + 0x50], r15d
mov ecx, dword [rdi + 0x30]
sub ecx, 1
je 0x140111353
sub ecx, 1
je 0x140111348
cmp ecx, 1
jne 0x14011135e
mov rcx, qword [rdi + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14011135e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x58]
jmp 0x14011135e
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x50]
cmp dword [rdi + 0x5c], 0
je 0x1401113f3
lea rdx, [rsp + 0x2070]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401113f3
mov dword [rdi + 0x54], r15d
cmp r12d, 1
jne 0x1401113bf
mov dword [rdi + 0x50], r12d
mov rcx, qword [rdi + 0x28]
mov eax, dword [rcx + 0xcc]
cmp eax, r12d
jne 0x1401113b2
xor r9d, r9d
mov r8d, r12d
lea rdx, reloc.WS2_32.dll_WSAStartup
mov rcx, qword [rcx + 0xd8]
call sub.WS2_32.dll_send
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x50]
jmp 0x1401113f3
mov ecx, dword [rdi + 0x30]
sub ecx, 1
je 0x1401113e8
sub ecx, 1
je 0x1401113dd
cmp ecx, 1
jne 0x1401113f3
mov rcx, qword [rdi + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x1401113f3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x58]
jmp 0x1401113f3
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi + 0xd0]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140111430
nop dword [rax + rax]
xor r9d, r9d
lea r8d, [r9 + 0x40]
lea rdx, [rsp + 0x4080]
mov rcx, qword [rsi + 0xd0]
call sub.WS2_32.dll_recv
cmp eax, 0x40
je 0x140111410
sub rbp, 1
jns 0x1401112b0
mov ebp, 0x3e7
jmp 0x140111446
mov ebp, 0x3e7
cmp dword [rsi + 0xc8], 0
je 0x140111200
mov rbx, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140110e80
cmp dword [reloc.WS2_32.dll_accept], 0
jg 0x14011148c
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x20], eax
lea r9, str.ThreadIO::thread__u_exit
mov r8d, 0x187
lea rdx, str....._network_serviceThreadIO.cpp
xor ecx, ecx
call fcn.1400045a0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rsp + 0x40c0]
xor rcx, rsp
call fcn.1401e42a0
lea r11, [rsp + 0x40d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret