Function at 0x140052450
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor ebx, ebx
mov r15d, r9d
mov rdi, r8
mov r12, rcx
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x38], ebx
mov r14d, ebx
cmp rcx, 0xffffffffffffffff
jne 0x1400524c7
cmp r8, rcx
jne 0x1400524c7
test r9d, r9d
je 0x1400524c0
jns 0x1400524b7
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
or ebx, r12d
mov eax, ebx
jmp 0x14005273c
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
jmp 0x14005273c
mov qword [rsp + 0x6d8], rsi
mov qword [rsp + 0x690], r13
test r9d, r9d
jle 0x140052521
mov r14d, r9d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [rsp + 0x30], edx
imul eax, edx, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x3c], eax
or r8, 0xffffffffffffffff
mov edx, ebx
mov dword [rbp + 0x370], ebx
lea eax, [r8 + 2]
mov dword [rsp + 0x50], ebx
cmp r12, r8
je 0x140052560
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x50], eax
mov qword [rbp + 0x378], r12
mov edx, eax
mov dword [rbp + 0x370], eax
mov r8, r12
nop word [rax + rax]
mov dword [rbp + 0x160], ebx
cmp rdi, 0xffffffffffffffff
je 0x1400525b2
mov qword [rbp + 0x168], rdi
mov dword [rbp + 0x160], eax
mov ecx, ebx
test edx, edx
je 0x140052592
nop
mov eax, ecx
cmp qword [rbp + rax*8 + 0x378], rdi
je 0x140052592
inc ecx
cmp ecx, edx
jb 0x140052580
cmp ecx, edx
jne 0x1400525ab
cmp edx, 0x40
jae 0x1400525ab
mov eax, ecx
mov qword [rbp + rax*8 + 0x378], rdi
inc dword [rbp + 0x370]
cmp rdi, r8
cmova r8, rdi
lea r13, [rsp + 0x40]
lea r10d, [r8 + 1]
test r15d, r15d
cmovs r13, rbx
mov dword [rsp + 0x30], r10d
test r15d, r15d
jle 0x1400525f9
mov eax, 0x10624dd3
mov ecx, r14d
imul r14d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x40], edx
imul eax, edx, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x44], eax
jmp 0x140052600
jne 0x140052600
mov qword [rsp + 0x40], rbx
cmp dword [rbp + 0x160], ebx
lea r8, [rbp + 0x160]
lea rdx, [rsp + 0x50]
cmove r8, rbx
cmp dword [rsp + 0x50], ebx
lea r9, [rbp + 0x370]
mov ecx, r10d
cmove rdx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400526b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140052651
cmp dword [0x1401d2330], ebx
jne 0x1400526b6
cmp eax, 0x2714
jne 0x1400526b6
mov r10d, dword [rsp + 0x30]
test r15d, r15d
jle 0x1400525f9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
mov eax, dword [rsp + 0x3c]
sub eax, edx
imul ecx, ecx, 0x3e8
sub ecx, dword [rsp + 0x38]
imul r14d, eax, 0x3e8
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
sub r14d, edx
add r14d, r15d
test r14d, r14d
jle 0x1400526bd
mov r10d, dword [rsp + 0x30]
jmp 0x1400525c7
test eax, eax
jns 0x1400526bb
or eax, 0xffffffff
jmp 0x14005272c
jne 0x1400526c1
xor eax, eax
jmp 0x14005272c
cmp r12, 0xffffffffffffffff
je 0x1400526f6
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea rdx, [rbp + 0x370]
mov rcx, r12
test eax, eax
mov eax, 1
cmovne ebx, eax
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400526f6
or ebx, 4
cmp rdi, 0xffffffffffffffff
je 0x14005272a
lea rdx, [rbp + 0x160]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140052713
or ebx, 2
lea rdx, [rbp + 0x370]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14005272a
or ebx, 4
mov eax, ebx
mov rsi, qword [rsp + 0x6d8]
mov r13, qword [rsp + 0x690]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140129b50
add rsp, 0x698
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret