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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf10
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0xf00], rax
mov r14, r8
mov qword [rsp + 0x48], r8
mov r12, rdx
mov rdi, rcx
mov rax, qword [rsp + 0xf78]
mov qword [rsp + 0x90], rax
xor eax, eax
mov qword [rsp + 0x98], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0xc50
lea rcx, [rsp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
nop
mov qword [rsp + 0x70], rdi
lea rsi, [rdi + 0x11b18]
mov qword [rsp + 0x78], rsi
lea rbx, [rdi + 0x11bd0]
mov qword [rsp + 0x80], rbx
test rdi, rdi
je 0x14005de18
test r14, r14
je 0x14005de18
cmp r12, 0xffffffffffffffff
je 0x14005de18
xor edx, edx
mov r8d, 0xa080
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x50], r14
add r14, 0xa080
mov qword [rsp + 0x68], r14
xor edx, edx
mov dword [rsp + 0x98], edx
mov dword [rsp + 0x9c], 0xf4240
mov r15d, edx
mov qword [rsp + 0x58], rdx
mov r13d, 0xa080
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x88], r13
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0xa0], edx
mov eax, edx
mov dword [rsp + 0x40], edx
nop dword [rax]
mov ecx, eax
cmp eax, edx
jae 0x14005d7c8
cmp qword [rsp + rcx*8 + 0xa8], r12
je 0x14005d7c8
inc eax
mov dword [rsp + 0x40], eax
jmp 0x14005d7b0
test eax, eax
jne 0x14005d7e0
cmp edx, 0x40
jae 0x14005d7e0
mov qword [rsp + rcx*8 + 0xa8], r12
inc dword [rsp + 0xa0]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov r14d, eax
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp r14d, 0xffffffff
je 0x14005d987
test r14d, r14d
je 0x14005d95b
cmp r14d, 1
jne 0x14005de18
lea rdx, [rsp + 0xa0]
mov rcx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x14005dae7
xor edx, edx
mov r8d, 0xc50
lea r14, [rsp + 0x2b0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b4], eax
mov dword [rsp + 0x2f0], 3
mov dword [rsp + 0x2bc], 1
mov dword [rsp + 0x2f8], 0x2f8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f8
mov rdx, rsi
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x2f4], eax
mov dword [rsp + 0x2fc], 5
lea rax, [0x1400e9980]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e5ec4]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x300]
call fcn.140001030
mov byte [rsp + 0xcf5], 0
mov dword [rsp + 0xcf8], 0xe90
mov eax, dword [rsi + 0x30]
mov dword [rsp + 0x2cc], eax
inc dword [rsi + 0x30]
mov r9d, 1
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400a51e0
mov dword [rsi + 0x50], eax
test rbx, rbx
je 0x14005d956
mov qword [rbx + 0x10], 1
xor eax, eax
mov dword [rbx + 0xc], eax
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005d956
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [rsi + 0x50], eax
jmp 0x14005de18
cmp r15, 0xa05c
jbe 0x14005d982
movabs rcx, 0x4000000000000000
mov rax, qword [rsp + 0x48]
cmp qword [rax + 8], rcx
jb 0x14005de14
jmp 0x14005de18
jmp 0x14005de18
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
cmp eax, 0x2745
jg 0x14005d9b5
je 0x14005dae7
test eax, eax
je 0x14005dae7
sub ecx, 0x2726
je 0x14005dae7
cmp ecx, 0x10
jmp 0x14005d9cd
sub ecx, 0x2746
je 0x14005dae7
sub ecx, 3
je 0x14005dae7
cmp ecx, 1
je 0x14005dae7
xor edx, edx
mov r8d, 0xc50
lea r14, [rsp + 0x2b0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b4], eax
mov dword [rsp + 0x2f0], 3
mov dword [rsp + 0x2bc], 1
mov dword [rsp + 0x2f8], 0x2e9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2e9
mov rdx, rsi
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x2f4], eax
mov dword [rsp + 0x2fc], 5
lea rax, [0x1400e9a10]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e61c4]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x300]
call fcn.140001030
mov byte [rsp + 0xcf5], 0
mov dword [rsp + 0xcf8], 0xe65
mov eax, dword [rsi + 0x30]
mov dword [rsp + 0x2cc], eax
inc dword [rsi + 0x30]
mov r9d, 1
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400a51e0
mov dword [rsi + 0x50], eax
test rbx, rbx
je 0x14005dae2
mov qword [rbx + 0x10], 1
xor eax, eax
mov dword [rbx + 0xc], eax
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005dae2
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [rsi + 0x50], eax
jmp 0x14005de18
mov r14, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
cmp r14, rax
jae 0x14005db3d
sub rax, r14
cmp rax, r13
jb 0x14005db3d
lfence
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x48]
add r14, r15
mov qword [rsp + 0x50], r14
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, r14
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
jmp 0x14005db42
mov ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x14005ddc9
test r15, r15
jne 0x14005dcb8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
cmp eax, 0x2745
jg 0x14005db84
je 0x14005ddc9
mov edx, eax
test eax, eax
je 0x14005ddc9
sub edx, 0x2726
je 0x14005ddc9
cmp edx, 0x10
jmp 0x14005db9e
mov edx, eax
sub edx, 0x2746
je 0x14005ddc9
sub edx, 3
je 0x14005ddc9
cmp edx, 1
je 0x14005ddc9
xor edx, edx
mov r8d, 0xc50
lea r14, [rsp + 0x2b0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b4], eax
mov dword [rsp + 0x2f0], 3
mov dword [rsp + 0x2bc], 1
mov dword [rsp + 0x2f8], 0x2e9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2e9
mov rdx, rsi
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x2f4], eax
mov dword [rsp + 0x2fc], 5
lea rax, [0x1400e98f0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e5e8c]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x300]
call fcn.140001030
mov byte [rsp + 0xcf5], 0
mov dword [rsp + 0xcf8], 0xf53
mov eax, dword [rsi + 0x30]
mov dword [rsp + 0x2cc], eax
inc dword [rsi + 0x30]
mov r9d, 1
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400a51e0
mov dword [rsi + 0x50], eax
test rbx, rbx
je 0x14005dcb3
mov qword [rbx + 0x10], 1
xor eax, eax
mov dword [rbx + 0xc], eax
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005dcb3
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [rsi + 0x50], eax
jmp 0x14005de18
xor edx, edx
mov r8d, 0xc50
lea r14, [rsp + 0x2b0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b4], eax
mov dword [rsp + 0x2f0], 3
mov dword [rsp + 0x2bc], 1
mov dword [rsp + 0x2f8], 0x2e9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2e9
mov rdx, rsi
mov rcx, rdi
call fcn.1400a5b80
mov dword [rsp + 0x2f4], eax
mov dword [rsp + 0x2fc], 5
lea rax, [0x1400e9880]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e5e2c]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x300]
call fcn.140001030
mov byte [rsp + 0xcf5], 0
mov dword [rsp + 0xcf8], 0xf5f
mov eax, dword [rsi + 0x30]
mov dword [rsp + 0x2cc], eax
inc dword [rsi + 0x30]
mov r9d, 1
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400a51e0
mov dword [rsi + 0x50], eax
test rbx, rbx
je 0x14005ddc7
mov qword [rbx + 0x10], 1
xor eax, eax
mov dword [rbx + 0xc], eax
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x14005ddc7
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400b4c70]
mov dword [rsi + 0x50], eax
jmp 0x14005de18
movsxd rax, ecx
add r15, rax
mov qword [rsp + 0x58], r15
mov r13, qword [rsp + 0x88]
sub r13, r15
mov qword [rsp + 0x60], r13
mov r14, qword [rsp + 0x90]
test r14, r14
je 0x14005ddf9
inc qword [r14 + 8]
add qword [r14 + 0x18], rax
test ecx, ecx
jle 0x14005de14
cmp r15, 0xa080
ja 0x14005de14
test r13, r13
mov edx, 0
jne 0x14005d7a0
xor eax, eax
jmp 0x14005de24
mov eax, 1
jmp 0x14005de24
mov rcx, qword [rsp + 0xf00]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0xf10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret