Function at 0x140074010
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r15, r8
mov rdi, rcx
lea rax, [rcx + 0x30]
mov qword [rsp + 0x40], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
cmp byte [rdi + 0x198], 0
jne 0x1400744b5
lea rsi, [rdi + 0x148]
mov rax, qword [rsi]
xor ecx, ecx
mov dword [rax], ecx
mov qword [rsi + 0x10], 0xffffffffffffffff
mov rax, qword [rdi + 0x160]
mov dword [rax], ecx
mov qword [rdi + 0x170], 0xffffffffffffffff
mov rax, qword [rdi + 0x178]
mov dword [rax], ecx
mov qword [rdi + 0x188], 0xffffffffffffffff
mov rbx, qword [rdi + 0x58]
mov r8, qword [rsi]
mov edx, dword [r8]
test edx, edx
je 0x1400740c5
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x1400740de
inc ecx
cmp ecx, edx
jb 0x1400740b6
inc edx
mov rcx, rsi
call fcn.1400733e0
mov rcx, qword [rsi]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [rsi]
inc dword [rax]
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x140074106
nop word [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x140074118
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400740f0
xor al, al
test al, al
jne 0x14007411c
cmp qword [rdi + 0x78], 0
jne 0x14007411c
xor r14b, r14b
jmp 0x14007411f
mov al, 1
jmp 0x140074108
mov r14b, 1
lea rdx, [rdi + 0x68]
mov rcx, rsi
call fcn.1400731f0
mov rbx, qword [rdi + 0x158]
test rbx, rbx
mov eax, 0
cmove rbx, rax
lea rdx, [rdi + 0x38]
test r14b, r14b
jne 0x14007414d
cmp qword [rdx + 0x78], rax
je 0x140074150
mov r14b, 1
add rdx, 0x68
lea rcx, [rdi + 0x160]
call fcn.1400731f0
mov rax, qword [rdi + 0x170]
cmp rax, rbx
cmova rbx, rax
lea rdx, [rdi + 0x70]
add rdx, 0x68
lea rcx, [rdi + 0x178]
call fcn.1400731f0
mov rax, qword [rdi + 0x188]
cmp rax, rbx
cmova rbx, rax
lea rdx, [rdi + 0x110]
lea rcx, [rdi + 0x160]
call fcn.1400731f0
mov rax, qword [rdi + 0x170]
cmp rax, rbx
cmova rbx, rax
lea r14, [rdi + 0x178]
lea rdx, [rdi + 0x110]
mov rcx, r14
call fcn.1400731f0
mov rax, qword [rdi + 0x188]
cmp rax, rbx
cmovbe rax, rbx
mov qword [rsp + 0x60], rax
mov ecx, 1
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x140074206
nop dword [rax + rax]
mov rax, qword [rbx]
mov edx, ecx
mov rcx, rbx
call qword [rax + 0x18]
mov ecx, eax
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400741f0
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x58], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x5c], ecx
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x48], 0
call fcn.140107820
mov rbx, qword [r14]
mov r12, qword [rdi + 0x160]
mov r13, qword [rsi]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test r13, r13
jne 0x1400742a3
test r12, r12
jne 0x1400742a3
test rbx, rbx
jne 0x1400742a3
mov eax, 0x10624dd3
imul dword [rsp + 0x5c]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x58], 0x3e8
add ecx, eax
mov eax, 1
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140107820
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
jmp 0x14007448b
cmp dword [rsp + 0x58], 0
jne 0x1400742c2
mov ecx, dword [rsp + 0x5c]
lea eax, [rcx - 1]
mov edx, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, edx
mov dword [rsp + 0x5c], ecx
mov rcx, qword [rsp + 0x60]
inc ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r12
mov rdx, r13
call qword [sym.imp.WS2_32.dll_select]
mov r13d, eax
call fcn.140107820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r13d, r13d
js 0x1400742fd
call fcn.140107820
test r13d, r13d
jle 0x140074422
mov rdx, qword [rsi]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140074422
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x400
call fcn.140107820
mov rbx, qword [rdi + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor esi, esi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r12d, 1
mov r8d, r12d
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.140107820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14007438d
cmp eax, 0x4d2
jne 0x140074392
call fcn.140107820
test ebx, ebx
jne 0x14007441f
call fcn.140107820
cmp dword [rsp + 0x50], 0x400
jne 0x14007441f
nop dword [rax]
mov rbx, qword [rdi + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, r12d
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.140107820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x140074407
cmp eax, 0x4d2
jne 0x14007440c
call fcn.140107820
test ebx, ebx
jne 0x14007441f
call fcn.140107820
cmp dword [rsp + 0x50], 0x400
je 0x1400743b0
dec r13d
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
test r13d, r13d
jle 0x14007448b
mov r8, r15
lea rdx, [rdi + 0x110]
mov rcx, r14
call fcn.1400732d0
mov r8, r15
lea rdx, [rdi + 0x110]
lea rcx, [rdi + 0x160]
call fcn.1400732d0
mov ebx, 2
lea rsi, [rdi + 0xd8]
nop word [rax + rax]
mov r8, r15
mov rdx, rsi
mov rcx, r14
call fcn.1400732d0
sub rsi, 0x38
sub r14, 0x18
sub ebx, 1
jns 0x140074470
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x1400744b5
nop word [rax + rax]
mov rax, qword [rbx]
mov rdx, r15
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400744a0
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140105820
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret