Function at 0x140029810
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.1400d6d88
mov rbx, rax
mov qword [0x1401293e0], rax
test rax, rax
jne 0x140029843
add rsp, 0x50
pop rbx
ret
mov rdx, qword [0x1401255c8]
mov qword [rsp + 0x68], rbp
mov rcx, rax
mov r8d, 0x150
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
call fcn.1400d78b0
mov rcx, qword [0x14012aab0]
lea r9, [0x140005600]
mov edx, ntohs
mov r8d, 0x4ef6d80
mov qword [0x1401255c8], rbx
call qword [sym.imp.USER32.dll_SetTimer]
xor r14d, r14d
cmp qword [0x14012c5c0], r14
jne 0x1400298a6
mov ebp, 1
mov r13d, ebp
jmp 0x1400299f6
mov rax, qword [0x1401255c8]
mov byte [rax + 0x12c], r14b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x14012ac38], r14b
mov rcx, qword [0x1401255c8]
mov dword [rcx + 0x11c], eax
mov dword [rcx + 0x120], WSAAsyncSelect
jne 0x140029901
mov rcx, qword [0x14012aab0]
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 [0x14012ac38]
mov byte [0x14012d175], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012c4e8]
inc dword [0x14012ac50]
cmp rcx, qword [0x14012c4f0]
mov dword [0x14012d1a4], eax
mov dword [0x14012d1a0], eax
jne 0x14002993c
call fcn.140007410
mov rcx, qword [0x14012c4e8]
cmp rcx, qword [0x14012c4e0]
jb 0x140029956
mov rax, qword [0x14012cc60]
mov qword [rcx], rax
mov rcx, qword [0x14012c4e8]
add rcx, 0x18
lea rax, str.Auto_execute
mov ebp, 1
mov qword [0x14012c4e8], rcx
mov qword [rcx + 8], rax
mov qword [rcx], r14
mov dword [rcx + 0x10], r14d
mov rcx, qword [0x14012c5c0]
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
call fcn.14003ffa0
mov rcx, qword [0x14012c4e8]
sub rcx, 0x18
mov r13d, eax
cmp rcx, qword [0x14012c4e0]
mov qword [0x14012c4e8], rcx
jb 0x1400299bb
mov rcx, qword [rcx]
mov qword [0x14012c508], rcx
mov qword [0x14012cc60], rcx
dec dword [0x14012ac50]
cmp byte [0x14012ac38], r14b
je 0x1400299ef
mov rcx, qword [0x14012aab0]
mov edx, reloc.WSOCK32.dll_inet_ntoa
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x14012ac38]
test eax, eax
cmovne ecx, r14d
mov byte [0x14012ac38], cl
mov byte [0x14012d175], r14b
mov rbx, qword [0x1401255c8]
cmp qword [rbx + 0x148], r14
je 0x140029a4b
mov rcx, qword [rbx + 0x148]
cmp dword [rcx + 0x10], 6
jne 0x140029a1c
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 0x140029a31
call fcn.1400d6e48
mov rcx, qword [rbx + 0x148]
call fcn.1400d6e40
mov qword [rbx + 0x148], r14
mov rbx, qword [0x1401255c8]
lea rcx, [0x140129540]
mov rdx, rbx
mov r8d, 0x150
mov qword [rsp + 0x40], r12
mov qword [rbx + 0xd8], r14
mov qword [rbx + 0xe0], r14
mov qword [rbx + 0xe8], r14
mov qword [rbx + 0xf8], r14
mov dword [rbx + 0x100], r14d
mov qword [rbx + 0x108], r14
mov byte [rbx + 0x138], r14b
mov dword [rbx + 0x38], r14d
mov qword [rbx + 0x68], r14
mov byte [rbx + 0x128], r14b
mov qword [rbx + 0x60], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x20], r14
mov qword [rbx + 0x28], r14
mov qword [rbx + 0x148], r14
mov dword [rbx + 0x140], r14d
mov byte [rbx + 0x12c], 1
call fcn.1400d78b0
mov byte [rbx + 0x12c], 1
mov dword [rbx + 0x120], r14d
mov word [rbx + 0x12d], 1
mov dword [rbx + 0x3c], 0x80000000
mov rbx, qword [0x14012b620]
movzx ecx, byte [rbx + 0x23]
test cl, cl
jne 0x140029b20
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400f1614]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400bd4c0
jmp 0x140029d64
lea r12, [0x1400f1614]
mov qword [rsp + 0x70], rsi
cmp qword [rbx + 8], r12
jne 0x140029b39
mov rbp, qword [rbx + 0x10]
shr rbp, 1
lea rax, [rbp + 1]
lea rsi, [rax + rax]
cmp cl, 2
jne 0x140029b56
mov rdx, rbp
mov rcx, r12
call fcn.140006d40
jmp 0x140029d5f
mov rcx, qword [0x1401255a0]
cmp rsi, rcx
jbe 0x140029b87
cmp rsi, qword [rbx + 0x18]
jbe 0x140029b87
lea r8, [0x1400f1524]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x14012c5c0]
call fcn.14004e450
jmp 0x140029d5f
cmp rax, 2
jae 0x140029ba1
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400bdb70
jmp 0x140029d5f
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x140029bbe
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 + 0x48], rdi
cmp rsi, r8
jbe 0x140029d32
movzx r9d, byte [rbx + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x140029bf6
cmp al, 2
je 0x140029c33
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
jmp 0x140029d26
mov edi, 0x80
cmp rsi, rdi
ja 0x140029c33
cmp rsi, 8
ja 0x140029c0d
mov edi, 8
jmp 0x140029c19
mov eax, reloc.WSOCK32.dll_recv
cmp rsi, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400b5f20
test rax, rax
je 0x140029d5a
mov byte [rbx + 0x20], 1
jmp 0x140029d26
cmp rsi, 0x20
jae 0x140029c43
mov edi, SafeArrayAllocDescriptor
jmp 0x140029ced
mov edi, 0x208
cmp rsi, rdi
jb 0x140029ced
cmp rsi, 0x50000
jae 0x140029ca9
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140029c70
addsd xmm0, qword [0x140112018]
mulsd xmm0, qword [0x140112050]
movsd xmm1, qword [0x140112048]
xor eax, eax
comisd xmm0, xmm1
jbe 0x140029c9f
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140029c9f
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x140029ced
cmp rsi, 0x320000
jae 0x140029cbb
lea rdi, [rsi + 0x8000]
jmp 0x140029ced
cmp rsi, 0xc80000
jae 0x140029ce6
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x140029ced
lea rdi, [rsi + 0x20000]
cmp rdi, rcx
cmova rdi, rcx
cmp r9b, 2
jne 0x140029d0d
test r8, r8
je 0x140029d0d
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.1400d6e48
jmp 0x140029d10
xor sil, sil
test rdi, rdi
js 0x140029d81
mov rcx, rdi
call fcn.1400d6d88
test rax, rax
je 0x140029d81
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 0x140029d48
lea r8, [rbp + rbp]
mov rdx, r12
call fcn.1400d78b0
mov rax, qword [rbx + 8]
lea rcx, [rbp + rbp]
mov word [rcx + rax], r14w
mov qword [rbx + 0x10], rcx
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x68]
mov eax, r13d
mov r13, qword [rsp + 0x38]
add rsp, 0x50
pop rbx
ret
test sil, sil
je 0x140029d97
lea rax, [0x14012c4b8]
mov qword [rbx + 0x18], r14
mov qword [rbx + 8], rax
jmp 0x140029d9f
mov rax, qword [rbx + 8]
mov word [rax], r14w
lea r8, [0x1400f1524]
lea rdx, str.Out_of_memory.
lea rcx, [0x14012c5c0]
mov qword [rbx + 0x10], r14
call fcn.14004e450
jmp 0x140029d5a