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

Disassembly:
push rbx
sub rsp, 0x50
mov eax, dword [reloc.WSOCK32.dll_inet_addr]
add eax, 4
movsxd rcx, eax
imul rcx, rcx, 0x150
call fcn.1400d6468
mov rbx, rax
mov qword [0x140129360], rax
test rax, rax
jne 0x1400299a3
add rsp, 0x50
pop rbx
ret
mov rdx, qword [0x1401255c8]
mov qword [rsp + 0x40], r13
mov rcx, rax
mov r8d, 0x150
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
call fcn.1400d72b0
mov rcx, qword [0x14012aa30]
lea r9, [0x140005600]
mov edx, ntohs
mov r8d, 0x4ef6d80
mov qword [0x1401255c8], rbx
call qword [sym.imp.USER32.dll_SetTimer]
xor r15d, r15d
cmp qword [0x14012c540], r15
jne 0x140029a07
mov r13d, 1
mov r14d, r13d
jmp 0x140029b59
mov rax, qword [0x1401255c8]
mov byte [rax + 0x12c], r15b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x14012abb8], r15b
mov rcx, qword [0x1401255c8]
mov dword [rcx + 0x11c], eax
mov dword [rcx + 0x120], WSAAsyncSelect
jne 0x140029a62
mov rcx, qword [0x14012aa30]
mov edx, reloc.WSOCK32.dll_inet_ntoa
lea r9, [0x140005420]
lea r8d, [rdx + 0x59]
call qword [sym.imp.USER32.dll_SetTimer]
test rax, rax
setne byte [0x14012abb8]
mov byte [0x14012d0f5], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012c468]
inc dword [0x14012abd0]
cmp rcx, qword [0x14012c470]
mov dword [0x14012d124], eax
mov dword [0x14012d120], eax
jne 0x140029a9d
call fcn.1400075e0
mov rcx, qword [0x14012c468]
cmp rcx, qword [0x14012c460]
jb 0x140029ab7
mov rax, qword [0x14012cbe0]
mov qword [rcx], rax
mov rcx, qword [0x14012c468]
add rcx, 0x18
lea rax, str.Auto_execute
mov r13d, 1
mov qword [0x14012c468], rcx
mov qword [rcx + 8], rax
mov qword [rcx], r15
mov dword [rcx + 0x10], r15d
mov rcx, qword [0x14012c540]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
call fcn.140040120
mov rcx, qword [0x14012c468]
sub rcx, 0x18
mov r14d, eax
cmp rcx, qword [0x14012c460]
mov qword [0x14012c468], rcx
jb 0x140029b1e
mov rcx, qword [rcx]
mov qword [0x14012c488], rcx
mov qword [0x14012cbe0], rcx
dec dword [0x14012abd0]
cmp byte [0x14012abb8], r15b
je 0x140029b52
mov rcx, qword [0x14012aa30]
mov edx, reloc.WSOCK32.dll_inet_ntoa
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x14012abb8]
test eax, eax
cmovne ecx, r15d
mov byte [0x14012abb8], cl
mov byte [0x14012d0f5], r15b
mov rbx, qword [0x1401255c8]
cmp qword [rbx + 0x148], r15
je 0x140029bae
mov rcx, qword [rbx + 0x148]
cmp dword [rcx + 0x10], 6
jne 0x140029b7f
mov rcx, qword [rcx]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rax, qword [rbx + 0x148]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140029b94
call fcn.1400d6528
mov rcx, qword [rbx + 0x148]
call fcn.1400d6520
mov qword [rbx + 0x148], r15
mov rbx, qword [0x1401255c8]
lea rcx, [0x1401294c0]
mov rdx, rbx
mov r8d, 0x150
mov qword [rsp + 0x48], r12
mov qword [rbx + 0xd8], r15
mov qword [rbx + 0xe0], r15
mov qword [rbx + 0xe8], r15
mov qword [rbx + 0xf8], r15
mov dword [rbx + 0x100], r15d
mov qword [rbx + 0x108], r15
mov byte [rbx + 0x138], r15b
mov dword [rbx + 0x38], r15d
mov qword [rbx + 0x68], r15
mov byte [rbx + 0x128], r15b
mov qword [rbx + 0x60], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r15
mov qword [rbx + 0x148], r15
mov dword [rbx + 0x140], r15d
mov byte [rbx + 0x12c], 1
call fcn.1400d72b0
mov byte [rbx + 0x12c], 1
mov dword [rbx + 0x120], r15d
mov word [rbx + 0x12d], 1
mov dword [rbx + 0x3c], 0x80000000
mov rbx, qword [0x14012b5a0]
movzx ecx, byte [rbx + 0x23]
test cl, cl
jne 0x140029c83
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400f1614]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400bcba0
jmp 0x140029ede
lea r12, [0x1400f1614]
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
cmp qword [rbx + 8], r12
jne 0x140029ca3
mov rbp, qword [rbx + 0x10]
shr rbp, 1
jmp 0x140029ca6
mov rbp, r13
lea rax, [rbp + 1]
lea rsi, [rax + rax]
cmp cl, 2
jne 0x140029cc3
mov rdx, rbp
mov rcx, r12
call fcn.140006f10
jmp 0x140029ed4
mov rcx, qword [0x1401255a0]
cmp rsi, rcx
jbe 0x140029cf4
cmp rsi, qword [rbx + 0x18]
jbe 0x140029cf4
lea r8, [0x1400f1604]
lea rdx, [0x1401103d0]
lea rcx, [0x14012c540]
call fcn.14004e5d0
jmp 0x140029ed4
cmp rax, 2
jae 0x140029d0e
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400bd250
jmp 0x140029ed4
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x140029d2b
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [0x1401255a0]
mov r8, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
mov qword [rsp + 0x78], rdi
cmp rsi, r8
jbe 0x140029ea7
movzx r9d, byte [rbx + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x140029d63
cmp al, 2
je 0x140029da0
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
jmp 0x140029e9b
mov edi, 0x80
cmp rsi, rdi
ja 0x140029da0
cmp rsi, 8
ja 0x140029d7a
mov edi, 8
jmp 0x140029d86
mov eax, reloc.WSOCK32.dll_recv
cmp rsi, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400b55f0
test rax, rax
je 0x140029ecf
mov byte [rbx + 0x20], 1
jmp 0x140029e9b
cmp rsi, 0x20
jae 0x140029db0
mov edi, SafeArrayAllocDescriptor
jmp 0x140029e5a
mov edi, 0x208
cmp rsi, rdi
jb 0x140029e5a
cmp rsi, 0x50000
jae 0x140029e16
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140029ddd
addsd xmm0, qword [0x140111fc8]
mulsd xmm0, qword [0x140112000]
movsd xmm1, qword [0x140111ff8]
xor eax, eax
comisd xmm0, xmm1
jbe 0x140029e0c
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140029e0c
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x140029e5a
cmp rsi, 0x320000
jae 0x140029e28
lea rdi, [rsi + 0x8000]
jmp 0x140029e5a
cmp rsi, 0xc80000
jae 0x140029e53
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x140029e5a
lea rdi, [rsi + 0x20000]
cmp rdi, rcx
cmova rdi, rcx
cmp r9b, 2
jne 0x140029e7a
test r8, r8
je 0x140029e7a
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.1400d6528
jmp 0x140029e7d
xor sil, sil
test rdi, rdi
js 0x140029f49
mov rcx, rdi
call fcn.1400d6468
test rax, rax
je 0x140029f49
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
cmp rcx, r12
je 0x140029ebd
lea r8, [rbp + rbp]
mov rdx, r12
call fcn.1400d72b0
mov rax, qword [rbx + 8]
lea rcx, [rbp + rbp]
mov word [rcx + rax], r15w
mov qword [rbx + 0x10], rcx
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, qword [0x140127158]
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x48]
cmp word [rax], 0
jne 0x140029f36
cmp dword [0x14012b648], 0
jne 0x140029f36
cmp qword [0x14012ab80], 0
jne 0x140029f36
cmp qword [0x14012ab88], 0
jne 0x140029f36
cmp byte [0x14012ab99], 0
jne 0x140029f36
mov edx, 6
test r14d, r14d
lea rcx, [0x14012c540]
cmove edx, r13d
xor r8d, r8d
call fcn.14002a280
mov r14, qword [rsp + 0x38]
mov eax, r13d
mov r13, qword [rsp + 0x40]
add rsp, 0x50
pop rbx
ret
test sil, sil
je 0x140029f5f
lea rax, [0x14012c438]
mov qword [rbx + 0x18], r15
mov qword [rbx + 8], rax
jmp 0x140029f67
mov rax, qword [rbx + 8]
mov word [rax], r15w
lea r8, [0x1400f1604]
lea rdx, str.Out_of_memory.
lea rcx, [0x14012c540]
mov qword [rbx + 0x10], r15
call fcn.14004e5d0
jmp 0x140029ecf