Function at 0x1800099d0
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 - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r12, r8
mov rdi, rcx
lea r13, [rcx + 0x30]
mov qword [rsp + 0x78], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r15b, 1
mov byte [rbp - 0x80], r15b
cmp byte [rdi + 0x198], 0
jne 0x180009d4a
lea rsi, [rdi + 0x148]
mov rax, qword [rsi]
xor r15d, r15d
mov dword [rax], r15d
mov qword [rsi + 0x10], 0xffffffffffffffff
mov rax, qword [rdi + 0x160]
mov dword [rax], r15d
mov qword [rdi + 0x170], 0xffffffffffffffff
mov rax, qword [r13 + 0x148]
mov dword [rax], r15d
mov qword [r13 + 0x158], 0xffffffffffffffff
mov r14, qword [rdi + 0x58]
mov ecx, r15d
mov rbx, qword [rsi]
mov edx, dword [rbx]
test edx, edx
je 0x180009a93
nop
mov eax, ecx
cmp qword [rbx + rax*8 + 8], r14
je 0x180009b0c
inc ecx
cmp ecx, edx
jb 0x180009a80
inc edx
mov ecx, dword [rsi + 8]
cmp edx, ecx
jbe 0x180009b00
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r15d, edx
lea rcx, [rdx*8 + 8]
call fcn.1800506b0
mov rbx, rax
mov rcx, qword [rsi]
mov edx, dword [rcx]
mov dword [rax], edx
xor eax, eax
mov edx, eax
mov r8, qword [rsi]
cmp dword [r8], eax
jbe 0x180009aee
nop dword [rax]
mov eax, edx
lea rcx, [rax*8]
mov rax, qword [rcx + r8 + 8]
mov qword [rcx + rbx + 8], rax
inc edx
mov r8, qword [rsi]
cmp edx, dword [r8]
jb 0x180009ad0
mov rcx, r8
call fcn.180050b68
mov qword [rsi], rbx
mov dword [rsi + 8], r15d
xor r15d, r15d
mov eax, dword [rbx]
mov qword [rbx + rax*8 + 8], r14
mov rax, qword [rsi]
inc dword [rax]
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x180009b40
nop dword [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x180009b40
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180009b20
nop word [rax + rax]
lea rdx, [rdi + 0x68]
mov rcx, rsi
call fcn.1800089e0
mov r14, qword [rdi + 0x158]
test r14, r14
cmove r14, r15
lea rdx, [rdi + 0xa0]
lea rcx, [rdi + 0x160]
call fcn.1800089e0
mov rax, qword [rdi + 0x170]
cmp rax, r14
cmova r14, rax
lea rcx, [rdi + 0x178]
lea rdx, [rdi + 0xd8]
call fcn.1800089e0
mov rax, qword [rdi + 0x188]
cmp rax, r14
cmova r14, rax
lea rcx, [rdi + 0x160]
lea rdx, [rdi + 0x110]
call fcn.1800089e0
mov rax, qword [rdi + 0x170]
cmp rax, r14
cmova r14, rax
lea rcx, [rdi + 0x178]
lea rdx, [rdi + 0x110]
call fcn.1800089e0
mov rsi, qword [rdi + 0x188]
cmp rsi, r14
ja 0x180009bdf
mov rsi, r14
mov r14d, 1
mov ecx, r14d
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x180009c0a
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 0x180009bf4
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x48], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x4c], ecx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r15b, r15b
mov byte [rbp - 0x80], r15b
xor ebx, ebx
mov dword [rsp + 0x60], ebx
lea rax, [0x1800a0df8]
mov qword [rsp + 0x68], rax
mov r9, qword [rdi + 0x178]
mov r8, qword [rdi + 0x160]
mov rdx, qword [rdi + 0x148]
test rdx, rdx
jne 0x180009d82
test r8, r8
jne 0x180009d82
test r9, r9
jne 0x180009d82
mov eax, 0x10624dd3
imul dword [rsp + 0x4c]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x48], 0x3e8
add ecx, eax
cmove ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r13d, ebx
lea rsi, [rdi + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r15b, 1
mov byte [rbp - 0x80], r15b
test r13d, r13d
jle 0x180009d1b
lea rcx, [rdi + 0x178]
lea rdx, [rdi + 0x110]
mov r8, r12
call fcn.180008ac0
lea rcx, [rdi + 0x160]
lea rdx, [rdi + 0x110]
mov r8, r12
call fcn.180008ac0
mov ebx, 2
lea rsi, [rdi + 0xd8]
lea r14, [rdi + 0x178]
nop
mov r8, r12
mov rdx, rsi
mov rcx, r14
call fcn.180008ac0
sub r14, 0x18
sub rsi, 0x38
sub ebx, 1
jns 0x180009d00
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x180009d45
nop word [rax + rax]
mov rax, qword [rbx]
mov rdx, r12
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180009d30
mov r13, qword [rsp + 0x78]
test r15b, r15b
je 0x180009d58
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.180050570
mov rbx, qword [rsp + 0x508]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [rsp + 0x48], ebx
jne 0x180009da2
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x4c], ecx
lea ecx, [rsi + 1]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov r13d, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rsp + 0x60]
call fcn.180008bf0
test r13d, r13d
jle 0x180009ca7
mov rdx, qword [rdi + 0x148]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x180009ca7
lea rax, [rbp - 0x50]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x78], 0x400
mov r14d, dword [0x1800a2a00]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rsi, qword [rax + r14*8]
add rsi, rcx
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rbp - 0x78]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
mov ecx, dword [rsi]
cmp dword [0x1800a40a0], ecx
jle 0x180009e8e
lea rcx, [0x1800a40a0]
call fcn.180050638
cmp dword [0x1800a40a0], 0xffffffff
jne 0x180009e8e
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x60], eax
lea rcx, [0x1800a0e08]
mov qword [rbp - 0x58], rcx
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rsp + 0x60], xmm0
cmp eax, 0x40
jne 0x180009ec2
mov edx, 0x2746
lea rcx, [rsp + 0x60]
call fcn.18000f540
jmp 0x180009ee8
cmp eax, 0x4d2
jne 0x180009eda
mov edx, 0x274d
lea rcx, [rsp + 0x60]
call fcn.18000f540
jmp 0x180009ee8
cmp eax, 0x2738
je 0x180009ef0
cmp eax, 0xea
je 0x180009ef0
test ebx, ebx
jne 0x18000a055
xor eax, eax
mov ebx, eax
mov eax, dword [rsp + 0x50]
cmp eax, 0x400
je 0x180009e20
test eax, eax
jg 0x18000a05e
je 0x180009fd5
mov rax, qword gs:[0x58]
mov r14, qword [rax + r14*8]
mov edx, 4
mov ecx, dword [0x1800a40a0]
cmp ecx, dword [rdx + r14]
jle 0x180009f69
lea rcx, [0x1800a40a0]
call fcn.180050638
mov ecx, dword [0x1800a40a0]
cmp ecx, 0xffffffff
jne 0x180009f64
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
mov ecx, dword [0x1800a40a0]
mov edx, 4
mov rsi, qword [rsp + 0x68]
mov rax, qword [0x1800a0e10]
cmp qword [rsi + 8], rax
jne 0x180009f87
cmp ebx, 0x2733
je 0x18000a05e
mov eax, edx
cmp ecx, dword [rax + r14]
jle 0x180009fbc
lea rcx, [0x1800a40a0]
call fcn.180050638
cmp dword [0x1800a40a0], 0xffffffff
jne 0x180009fbc
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
mov rax, qword [0x1800a0e10]
cmp qword [rsi + 8], rax
jne 0x180009fd5
cmp ebx, 0x4d5
je 0x18000a05e
lea rsi, [rdi + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r15b, 1
mov byte [rbp - 0x80], r15b
xor eax, eax
mov dword [rsp + 0x60], eax
lea rax, [0x1800a0df8]
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x40], 2
mov rcx, qword [rdi + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x18000a01d
lea r9, [rsp + 0x60]
movzx r8d, r15b
lea rdx, [rsp + 0x40]
call fcn.180008c80
mov rcx, qword [rdi + 0x60]
cmp rcx, 0xffffffffffffffff
je 0x18000a03a
lea r9, [rsp + 0x60]
movzx r8d, r15b
lea rdx, [rsp + 0x40]
call fcn.180008c80
mov qword [rdi + 0x60], 0xffffffffffffffff
mov qword [rdi + 0x58], 0xffffffffffffffff
lea rcx, [rdi + 0x58]
call fcn.180008e90
jmp 0x18000a062
mov ebx, dword [rsp + 0x60]
jmp 0x180009f11
lea rsi, [rdi + 0x30]
dec r13d
test r15b, r15b
jne 0x180009cbb
jmp 0x180009cab