Function at 0x14001154b
Capabilities:
Get socket status

Disassembly:
jmp 0x140022d80
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x758
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x13a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x778]
mov rax, qword [0x1400360c0]
xor rax, rbp
mov qword [rbp + 0x718], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011668
xor edx, edx
mov eax, dword [rbp + 0x750]
mov ecx, 0x3e8
div ecx
mov dword [rbp + 0x468], eax
xor edx, edx
mov eax, dword [rbp + 0x750]
mov ecx, 0x3e8
div ecx
mov eax, edx
imul eax, eax, 0x3e8
mov dword [rbp + 0x46c], eax
mov dword [rbp + 0x10], 0
mov dword [rbp + 0x240], 0
mov rax, qword [rbp + 0x748]
mov eax, dword [rax]
and eax, 1
test eax, eax
je 0x140022eb1
mov dword [rbp + 0x4a4], 0
jmp 0x140022e44
mov eax, dword [rbp + 0x4a4]
inc eax
mov dword [rbp + 0x4a4], eax
mov eax, dword [rbp + 0x240]
cmp dword [rbp + 0x4a4], eax
jae 0x140022e6d
mov eax, dword [rbp + 0x4a4]
mov rcx, qword [rbp + 0x740]
cmp qword [rbp + rax*8 + 0x248], rcx
jne 0x140022e6b
jmp 0x140022e6d
jmp 0x140022e36
mov eax, dword [rbp + 0x240]
cmp dword [rbp + 0x4a4], eax
jne 0x140022ea7
cmp dword [rbp + 0x240], 0x40
jae 0x140022ea7
mov eax, dword [rbp + 0x4a4]
mov rcx, qword [rbp + 0x740]
mov qword [rbp + rax*8 + 0x248], rcx
mov eax, dword [rbp + 0x240]
inc eax
mov dword [rbp + 0x240], eax
xor eax, eax
test eax, eax
jne 0x140022e2a
mov rax, qword [rbp + 0x748]
mov eax, dword [rax]
and eax, 2
test eax, eax
je 0x140022f2f
mov dword [rbp + 0x4c4], 0
jmp 0x140022edb
mov eax, dword [rbp + 0x4c4]
inc eax
mov dword [rbp + 0x4c4], eax
mov eax, dword [rbp + 0x10]
cmp dword [rbp + 0x4c4], eax
jae 0x140022efe
mov eax, dword [rbp + 0x4c4]
mov rcx, qword [rbp + 0x740]
cmp qword [rbp + rax*8 + 0x18], rcx
jne 0x140022efc
jmp 0x140022efe
jmp 0x140022ecd
mov eax, dword [rbp + 0x10]
cmp dword [rbp + 0x4c4], eax
jne 0x140022f29
cmp dword [rbp + 0x10], 0x40
jae 0x140022f29
mov eax, dword [rbp + 0x4c4]
mov rcx, qword [rbp + 0x740]
mov qword [rbp + rax*8 + 0x18], rcx
mov eax, dword [rbp + 0x10]
inc eax
mov dword [rbp + 0x10], eax
xor eax, eax
test eax, eax
jne 0x140022ec1
mov rax, qword [rbp + 0x740]
inc rax
lea rcx, [rbp + 0x468]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8, [rbp + 0x240]
lea rdx, [rbp + 0x10]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rbp + 0x484], eax
cmp dword [rbp + 0x484], 0
jge 0x140022f71
mov eax, 0xffffffff
jmp 0x140022fe2
mov rax, qword [rbp + 0x748]
mov dword [rax], 0
cmp dword [rbp + 0x484], 0
jne 0x140022f8b
xor eax, eax
jmp 0x140022fe2
lea rdx, [rbp + 0x240]
mov rcx, qword [rbp + 0x740]
call fcn.14001101e
test eax, eax
je 0x140022fb7
mov rax, qword [rbp + 0x748]
mov eax, dword [rax]
or eax, 1
mov rcx, qword [rbp + 0x748]
mov dword [rcx], eax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x740]
call fcn.14001101e
test eax, eax
je 0x140022fe0
mov rax, qword [rbp + 0x748]
mov eax, dword [rax]
or eax, 2
mov rcx, qword [rbp + 0x748]
mov dword [rcx], eax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140011573
mov rax, rdi
mov rcx, qword [rbp + 0x718]
xor rcx, rbp
call fcn.1400112df
lea rsp, [rbp + 0x728]
pop rdi
pop rbp
ret