Function at 0x140079290
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 [0x1401970d0]
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 0x140079735
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 0x140079345
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x14007935e
inc ecx
cmp ecx, edx
jb 0x140079336
inc edx
mov rcx, rsi
call fcn.140078660
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 0x140079386
nop word [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x140079398
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140079370
xor al, al
test al, al
jne 0x14007939c
cmp qword [rdi + 0x78], 0
jne 0x14007939c
xor r14b, r14b
jmp 0x14007939f
mov al, 1
jmp 0x140079388
mov r14b, 1
lea rdx, [rdi + 0x68]
mov rcx, rsi
call fcn.140078470
mov rbx, qword [rdi + 0x158]
test rbx, rbx
mov eax, 0
cmove rbx, rax
lea rdx, [rdi + 0x38]
test r14b, r14b
jne 0x1400793cd
cmp qword [rdx + 0x78], rax
je 0x1400793d0
mov r14b, 1
add rdx, 0x68
lea rcx, [rdi + 0x160]
call fcn.140078470
mov rax, qword [rdi + 0x170]
cmp rax, rbx
cmova rbx, rax
lea rdx, [rdi + 0x70]
add rdx, 0x68
lea rcx, [rdi + 0x178]
call fcn.140078470
mov rax, qword [rdi + 0x188]
cmp rax, rbx
cmova rbx, rax
lea rdx, [rdi + 0x110]
lea rcx, [rdi + 0x160]
call fcn.140078470
mov rax, qword [rdi + 0x170]
cmp rax, rbx
cmova rbx, rax
lea r14, [rdi + 0x178]
lea rdx, [rdi + 0x110]
mov rcx, r14
call fcn.140078470
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 0x140079486
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 0x140079470
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.14010c950
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 0x140079523
test r12, r12
jne 0x140079523
test rbx, rbx
jne 0x140079523
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.14010c950
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
jmp 0x14007970b
cmp dword [rsp + 0x58], 0
jne 0x140079542
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.14010c950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r13d, r13d
js 0x14007957d
call fcn.14010c950
test r13d, r13d
jle 0x1400796a2
mov rdx, qword [rsi]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400796a2
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x400
call fcn.14010c950
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.14010c950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14007960d
cmp eax, 0x4d2
jne 0x140079612
call fcn.14010c950
test ebx, ebx
jne 0x14007969f
call fcn.14010c950
cmp dword [rsp + 0x50], 0x400
jne 0x14007969f
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.14010c950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x140079687
cmp eax, 0x4d2
jne 0x14007968c
call fcn.14010c950
test ebx, ebx
jne 0x14007969f
call fcn.14010c950
cmp dword [rsp + 0x50], 0x400
je 0x140079630
dec r13d
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
test r13d, r13d
jle 0x14007970b
mov r8, r15
lea rdx, [rdi + 0x110]
mov rcx, r14
call fcn.140078550
mov r8, r15
lea rdx, [rdi + 0x110]
lea rcx, [rdi + 0x160]
call fcn.140078550
mov ebx, 2
lea rsi, [rdi + 0xd8]
nop word [rax + rax]
mov r8, r15
mov rdx, rsi
mov rcx, r14
call fcn.140078550
sub rsi, 0x38
sub r14, 0x18
sub ebx, 1
jns 0x1400796f0
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x140079735
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 0x140079720
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14010a950
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret