Function at 0x14028dd90
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, rcx
lea r14, [rcx + 0x30]
mov qword [rsp + 0xe0], r8
mov edi, edx
mov qword [rsp + 0x58], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rbx + 0x1f8], 0
mov byte [rsp + 0x60], 1
jne 0x14028e116
mov rcx, qword [rbx + 0x1a8]
xor r8d, r8d
xor r9d, r9d
xor r10d, r10d
mov rax, qword [rbx + 0x1c0]
mov rsi, qword [rbx + 0x58]
mov dword [rcx], r8d
mov qword [rbx + 0x1b8], 0xffffffffffffffff
mov dword [rax], r9d
mov rax, qword [rbx + 0x1d8]
mov qword [rbx + 0x1d0], 0xffffffffffffffff
mov dword [rax], r10d
mov edx, dword [rcx]
xor eax, eax
mov qword [rbx + 0x1e8], 0xffffffffffffffff
cmp eax, edx
jae 0x14028de33
inc rax
cmp rsi, qword [rcx + rax*8]
jne 0x14028de24
jmp 0x14028de54
inc edx
lea rcx, [rbx + 0x1a8]
call fcn.1402a0570
mov rdx, qword [rbx + 0x1a8]
mov eax, dword [rdx]
lea ecx, [rax + 1]
mov dword [rdx], ecx
mov qword [rdx + rax*8 + 8], rsi
mov rbp, qword [rbx + 0x1f0]
test rbp, rbp
je 0x14028de76
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x10]
mov esi, eax
test al, al
je 0x14028de79
mov rbp, qword [rbp + 8]
jmp 0x14028de5b
mov sil, 1
lea rax, [rbx + 0x1a8]
xor esi, 1
lea rbp, [rbx + 0x78]
xor r12d, r12d
mov qword [rsp + 0x48], rax
mov r13, rax
lea r15, [rbx + 0x168]
lea rdx, [rbp - 0x10]
test sil, sil
jne 0x14028deaa
cmp qword [rbp], rbp
setne sil
mov rcx, r13
call fcn.1402a0390
mov rax, qword [r13 + 0x10]
cmp r12, rax
cmovb r12, rax
add rbp, 0x50
add r13, 0x18
cmp rbp, r15
jne 0x14028de99
test sil, sil
jne 0x14028deda
cmp qword [rbx + 0x168], rbp
setne sil
lea rax, [rbx + 0x1c0]
lea r15, [rbx + 0x158]
mov rdx, r15
mov rcx, rax
mov qword [rsp + 0x38], rax
call fcn.1402a0390
lea rax, [rbx + 0x1d8]
mov rdx, r15
mov rbp, qword [rbx + 0x1d0]
mov rcx, rax
mov qword [rsp + 0x40], rax
call fcn.1402a0390
mov r13, qword [rbx + 0x1e8]
test edi, edi
jne 0x14028df2a
dec sil
jne 0x14028e116
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test edi, edi
je 0x14028df60
cmp edi, 0x11e1a300
jbe 0x14028df42
mov edi, 0x11e1a300
mov rcx, qword [rbx + 0x1f0]
mov edx, edi
call fcn.1402e6ab0
mov ecx, 0xf4240
cdq
idiv ecx
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
xor eax, eax
cmp rbp, r13
mov r8, qword [rbx + 0x1c0]
cmovb rbp, r13
mov r9, qword [rbx + 0x1d8]
mov dword [rsp + 0x68], eax
lea rsi, [rsp + 0x58]
mov qword [rsp + 0x70], rdx
mov rax, r8
mov r10d, dword [rsp + 0x50]
cmp rbp, r12
mov qword [rsp + 0x78], rdx
mov rdx, qword [rbx + 0x1a8]
cmovb rbp, r12
or rax, r9
mov byte [rsp + 0x60], 0
or rax, rdx
lea ecx, [rbp + 1]
jne 0x14028e003
mov eax, dword [rsp + 0x54]
mov ecx, 0x3e8
imul r10d, r10d, 0x3e8
cdq
idiv ecx
lea ecx, [rax + r10]
mov eax, 1
test ecx, ecx
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.140287c70
mov rcx, qword [rbx + 0x1f0]
mov rdx, qword [rsp + 0xe0]
call fcn.14028eb60
jmp 0x14028e116
test r10d, r10d
jne 0x14028e01d
mov eax, dword [rsp + 0x54]
dec eax
cmp eax, 0x3e6
ja 0x14028e01d
mov dword [rsp + 0x54], 0x3e8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.dll_select]
mov edx, eax
lea rcx, [rsp + 0x68]
mov edi, eax
shr edx, 0x1f
call fcn.140285ad0
test edi, edi
jle 0x14028dfe2
mov rdx, qword [rbx + 0x1a8]
mov rcx, qword [rbx + 0x58]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x14028e077
mov rcx, rsi
call fcn.140287c70
mov r8, qword [rsp + 0xe0]
mov rdx, r15
lea rcx, [rbx + 0x1d8]
call fcn.1402e6bd0
jmp 0x14028e0b4
lea rcx, [rbx + 0x58]
call fcn.1402b3910
test al, al
jne 0x14028e0a3
mov rcx, rsi
call fcn.140287c70
mov byte [rbx + 0x1f8], 1
mov rcx, qword [rbx + 0x28]
lea rdx, [rbx + 0x208]
call fcn.1402a1c80
mov rcx, rsi
call fcn.140287c70
dec edi
jne 0x14028e05e
jmp 0x14028dfea
mov r8, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x38]
mov rdx, r15
call fcn.1402e6bd0
mov r8, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x40]
lea rdx, [rbx + 0x108]
call fcn.1402e6bd0
mov r8, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x38]
lea rdx, [rbx + 0xb8]
call fcn.1402e6bd0
mov r8, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x48]
lea rdx, [rbx + 0x68]
call fcn.1402e6bd0
jmp 0x14028dfea
lea rcx, [rsp + 0x58]
call fcn.140287ca0
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret