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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x140535ab8]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov qword [rbp - 0x80], r8
mov dword [rsp + 0x50], edx
mov r14, rcx
mov qword [rsp + 0x48], rcx
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x60], rbx
mov qword [rbp - 0x70], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov al, 1
mov byte [rbp - 0x68], al
cmp byte [r14 + 0x198], 0
jne 0x140376c8f
lea rdi, [r14 + 0x148]
mov rax, qword [rdi]
xor r15d, r15d
mov dword [rax], r15d
mov qword [rdi + 0x10], 0xffffffffffffffff
mov rax, qword [r14 + 0x160]
mov dword [rax], r15d
mov qword [r14 + 0x170], 0xffffffffffffffff
mov rax, qword [rbx + 0x148]
mov dword [rax], r15d
mov qword [rbx + 0x158], 0xffffffffffffffff
mov rbx, qword [r14 + 0x58]
mov ecx, r15d
mov r8, qword [rdi]
mov edx, dword [r8]
test edx, edx
je 0x14037667f
nop dword [rax]
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x140376698
inc ecx
cmp ecx, edx
jb 0x140376670
inc edx
mov rcx, rdi
call fcn.140373cc0
mov rcx, qword [rdi]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [rdi]
inc dword [rax]
mov qword [rsp + 0x70], r15
mov rbx, qword [r14 + 0x190]
test rbx, rbx
je 0x1403766ca
nop dword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x1403767d9
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1403766b0
xor sil, sil
lea r12, [r14 + 0x70]
mov r14, rdi
mov qword [rsp + 0x68], 3
nop dword [rax]
test sil, sil
jne 0x1403766ed
cmp qword [r12 + 8], 0
je 0x1403766f0
mov sil, 1
mov rax, qword [r12]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14037679b
lea rdi, [rbx]
mov rbx, qword [rbx]
mov r15, qword [r14]
mov eax, dword [r15]
lea edx, [rax + 1]
mov ecx, dword [r14 + 8]
cmp edx, ecx
jbe 0x14037677e
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r13d, edx
lea rcx, [rdx*8 + 8]
call fcn.14038a538
mov r15, rax
mov rcx, qword [r14]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov r8, qword [r14]
cmp dword [r8], edx
jbe 0x14037676c
nop word [rax + rax]
lea rcx, [rdx*8]
mov rax, qword [r8 + rcx + 8]
mov qword [rcx + r15 + 8], rax
inc edx
mov r8, qword [r14]
cmp edx, dword [r8]
jb 0x140376750
mov rcx, r8
call fcn.140309430
mov qword [r14], r15
mov dword [r14 + 8], r13d
mov eax, dword [r15]
mov rcx, qword [rdi + 0x10]
mov qword [r15 + rax*8 + 8], rcx
mov rax, qword [r14]
inc dword [rax]
cmp rbx, qword [r12]
jne 0x140376700
mov r15, qword [rsp + 0x70]
cmp qword [r14 + 0x10], r15
cmova r15, qword [r14 + 0x10]
mov qword [rsp + 0x70], r15
add r12, 0x38
add r14, 0x18
sub qword [rsp + 0x68], 1
jne 0x1403766e0
test sil, sil
mov rsi, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x48]
jne 0x1403767e1
cmp qword [rdi + 0x120], 0
jne 0x1403767e1
xor bl, bl
jmp 0x1403767e3
mov sil, 1
jmp 0x1403766cd
mov bl, 1
lea r13, [rdi + 0x160]
lea r12, [rdi + 0x110]
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.14037b5e0
mov rax, qword [rdi + 0x170]
cmp rax, r15
cmova r15, rax
lea r14, [rdi + 0x178]
mov qword [rsp + 0x68], r14
mov r8, rsi
mov rdx, r12
mov rcx, r14
call fcn.14037b5e0
mov rdi, qword [rdi + 0x188]
cmp rdi, r15
cmovbe rdi, r15
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jne 0x140376845
test bl, bl
je 0x140376cc6
mov qword [rsp + 0x58], 0
mov r15, qword [rsp + 0x48]
test ecx, ecx
je 0x1403768a7
mov eax, 0x11e1a300
cmp ecx, eax
cmova ecx, eax
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x140376886
nop dword [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 0x140376870
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, [r15 + 0x30]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor al, al
mov byte [rsp + 0x40], al
mov byte [rbp - 0x68], al
mov r9, qword [r14]
mov r8, qword [r13]
mov rdx, qword [r15 + 0x148]
test rdx, rdx
jne 0x1403769da
test r8, r8
jne 0x1403769da
test r9, r9
jne 0x1403769da
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 r15d, 1
cmove ecx, r15d
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor ebx, ebx
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov r14b, 1
mov byte [rsp + 0x40], r14b
mov byte [rbp - 0x68], r14b
test ebx, ebx
jle 0x140376c59
mov r8, rsi
mov rdx, r12
mov rcx, qword [rsp + 0x68]
call fcn.14036b640
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.14036b640
mov r13d, 2
lea r14, [rdi + 0xe0]
mov r12, qword [rsp + 0x68]
nop word [rax + rax]
xor r15d, r15d
mov rcx, qword [r12]
cmp dword [rcx], r15d
jbe 0x140376c47
mov r8, qword [rcx + r15*8 + 8]
mov rcx, qword [r14 + 0x28]
test rcx, rcx
je 0x140376c37
xor edx, edx
mov rax, r8
div rcx
add rdx, rdx
mov rax, qword [r14 + 0x20]
mov rbx, qword [rax + rdx*8]
cmp rbx, qword [r14]
je 0x140376c37
mov rax, qword [rax + rdx*8 + 8]
mov rcx, qword [rax]
cmp rbx, rcx
je 0x140376c37
nop
cmp qword [rbx + 0x10], r8
je 0x140376bc7
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rcx
jne 0x1403769c0
jmp 0x140376c37
cmp dword [rsp + 0x58], 0
jne 0x1403769fb
mov ecx, dword [rsp + 0x5c]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x5c], ecx
lea ecx, [rdi + 1]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov r14d, eax
mov ebx, eax
test eax, eax
jns 0x140376a27
call fcn.1401692c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140376912
test r14d, r14d
jle 0x140376912
mov rdi, qword [rsp + 0x48]
mov rdx, qword [rdi + 0x148]
mov rcx, qword [rdi + 0x58]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140376917
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x60], 0x400
mov r15d, 1
nop dword [rax]
nop word [rax + rax]
xor eax, eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, r15d
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x80], xmm0
cmp eax, 0x40
jne 0x140376ae4
call fcn.1401692c0
mov dword [rbp - 0x40], 0x2746
mov qword [rbp - 0x38], rax
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x80], xmm0
jmp 0x140376b14
cmp eax, 0x4d2
jne 0x140376b06
call fcn.1401692c0
mov dword [rbp - 0x30], 0x274d
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x80], xmm0
jmp 0x140376b14
cmp eax, 0x2738
je 0x140376b18
cmp eax, 0xea
je 0x140376b18
test edi, edi
jne 0x140376b2f
xor ebx, ebx
mov eax, dword [rsp + 0x50]
cmp eax, 0x400
jne 0x140376b34
mov rdi, qword [rsp + 0x48]
jmp 0x140376a70
mov ebx, dword [rbp - 0x80]
jmp 0x140376b3a
test eax, eax
jg 0x140376bae
je 0x140376b6c
call fcn.1401692c0
mov rdi, qword [rbp - 0x78]
mov rax, qword [rax + 8]
cmp qword [rdi + 8], rax
jne 0x140376b55
cmp ebx, 0x2733
je 0x140376bae
call fcn.1401692c0
mov rdx, qword [rax + 8]
cmp qword [rdi + 8], rdx
jne 0x140376b6c
cmp ebx, 0x4d5
je 0x140376bae
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov byte [rbp - 0x68], r15b
mov rdi, qword [rsp + 0x48]
mov byte [rdi + 0x198], r15b
mov rcx, qword [rdi + 0x28]
lock inc dword [rcx + 0x30]
lea rdx, [rdi + 0x1a8]
call fcn.14036c3c0
movzx ebx, byte [rbp - 0x68]
mov byte [rsp + 0x40], bl
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x60], rax
jmp 0x140376bb3
mov rdi, qword [rsp + 0x48]
lea ebx, [r14 - 1]
cmp byte [rsp + 0x40], 0
jne 0x14037692e
jmp 0x140376917
cmp rbx, qword [r14]
je 0x140376c37
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x140376c2b
mov rax, qword [rdi + 0x58]
mov rcx, rdi
call rax
test eax, eax
je 0x140376c37
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140376c04
mov rax, qword [rcx + 0x20]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x140376bfc
mov qword [rbx + 0x20], rax
mov qword [rcx + 0x20], 0
mov qword [rdi + 0x20], 0
mov rax, qword [rsi + 8]
test rax, rax
je 0x140376c1b
mov qword [rax + 0x20], rdi
jmp 0x140376c1e
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rdi, qword [rbx + 0x18]
test rdi, rdi
jne 0x140376bd5
lea rcx, [r14 - 8]
mov rdx, rbx
call fcn.140351ef0
inc r15d
mov rcx, qword [r12]
cmp r15d, dword [rcx]
jb 0x140376980
sub r12, 0x18
sub r14, 0x38
sub r13, 1
jns 0x140376970
mov r15, qword [rsp + 0x48]
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x140376c85
nop word [rax + rax]
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140376c70
movzx eax, byte [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
test al, al
je 0x140376c9c
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14038a8e0
mov rbx, qword [rsp + 0x548]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov al, 1
jmp 0x140376c8a