Function at 0x14001b340
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x30
mov rsi, qword [rdx + 0x78]
mov r15, rdx
mov r12d, 1
mov ecx, dword [rsi + 0x1038]
cmp ecx, 2
je 0x14001b3bb
sub ecx, r12d
je 0x14001b38f
cmp ecx, r12d
jne 0x14001b39d
mov edx, r12d
mov rcx, rsi
call fcn.14001a1b0
test eax, eax
jne 0x14001b39d
mov dword [r15 + 0x10], reloc.WS2_32.dll_inet_addr
xor eax, eax
add rsp, 0x30
pop r15
pop r12
pop rsi
ret
mov eax, dword [rsi + 0x1030]
cmp dword [rsi + 0x1034], eax
jne 0x14001b37b
mov dword [rsi + 0x1038], 2
mov dword [rsi + 0x1030], 0
mov dword [rsi + 0x1034], 0
movsxd rax, dword [r15 + 0x68]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
xor ebp, ebp
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x58], rax
mov r14d, 0x1000
test rax, rax
jle 0x14001b4f6
nop
mov rax, qword [r15 + 0x58]
mov r13, qword [rax + rbp*8]
test r13, r13
je 0x14001b4e8
mov rdx, qword [r13]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
mov r9d, r12d
repne scasb al, byte [rdi]
mov rdi, qword [r13 + 8]
not rcx
lea rbx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov r8d, ebx
not rcx
lea rdi, [rcx - 1]
mov rcx, rsi
call fcn.14001a210
cmp ebx, eax
jne 0x14001b5fc
cmp dword [rsi + 0x1038], r12d
je 0x14001b5fc
mov eax, r14d
sub eax, dword [rsi + 0x1030]
cmp eax, 2
jge 0x14001b46c
mov edx, r12d
mov rcx, rsi
call fcn.14001a1b0
test eax, eax
je 0x14001b5fc
movsxd rcx, dword [rsi + 0x1030]
movzx eax, word [0x1402a0d24]
mov r9d, r12d
mov word [rcx + rsi + 0x30], ax
add dword [rsi + 0x1030], 2
mov rdx, qword [r13 + 8]
mov r8d, edi
mov rcx, rsi
call fcn.14001a210
cmp edi, eax
jne 0x14001b5fc
cmp dword [rsi + 0x1038], r12d
je 0x14001b5fc
mov eax, r14d
sub eax, dword [rsi + 0x1030]
cmp eax, 2
jge 0x14001b4ce
mov edx, r12d
mov rcx, rsi
call fcn.14001a1b0
test eax, eax
je 0x14001b5fc
movsxd rcx, dword [rsi + 0x1030]
movzx eax, word [0x14029fd10]
mov word [rcx + rsi + 0x30], ax
add dword [rsi + 0x1030], 2
inc rbp
cmp rbp, qword [rsp + 0x58]
jl 0x14001b3f0
mov eax, dword [rsi + 0x1038]
cmp eax, r12d
je 0x14001b5a2
mov r8d, dword [rsi + 0x1030]
sub r14d, r8d
cmp r14d, 2
jge 0x14001b549
test r8d, r8d
jle 0x14001b549
cmp eax, 2
jne 0x14001b549
mov rcx, qword [rsi + 0x28]
lea rdx, [rsi + 0x30]
mov r9d, r12d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
xor ecx, ecx
cmp dword [rsi + 0x1030], eax
mov dword [rsi + 0x1030], 0
sete cl
test ecx, ecx
je 0x14001b5a2
movsxd rcx, dword [rsi + 0x1030]
movzx eax, word [0x14029fd10]
mov word [rcx + rsi + 0x30], ax
add dword [rsi + 0x1030], 2
mov r8d, dword [rsi + 0x1030]
test r8d, r8d
jle 0x14001b5c0
cmp dword [rsi + 0x1038], 2
jne 0x14001b5c0
mov rcx, qword [rsi + 0x28]
lea rdx, [rsi + 0x30]
mov r9d, r12d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
xor ecx, ecx
cmp dword [rsi + 0x1030], eax
mov dword [rsi + 0x1030], 0
sete cl
test ecx, ecx
jne 0x14001b5c0
xor r12d, r12d
cmp dword [rsi + 8], r12d
je 0x14001b5b8
mov dword [rsi + 8], r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x10], eax
mov dword [r15 + 0x10], 2
cmp dword [rsi + 8], 4
je 0x14001b5d6
mov dword [rsi + 8], 4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x10], eax
mov eax, r12d
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r12
pop rsi
ret
xor eax, eax
jmp 0x14001b5d9