Function at 0x140029980
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.1400d6f18
mov rbx, rax
mov qword [0x1401293e0], rax
test rax, rax
jne 0x1400299b3
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.1400d7a40
mov rcx, qword [0x14012aab8]
lea r9, [0x1400055e0]
mov edx, SafeArrayDestroy
mov r8d, 0x4ef6d80
mov qword [0x1401255c8], rbx
call qword [sym.imp.USER32.dll_SetTimer]
xor r14d, r14d
cmp qword [0x14012c5c0], r14
jne 0x140029a16
mov ebp, 1
mov r13d, ebp
jmp 0x140029b66
mov rax, qword [0x1401255c8]
mov byte [rax + 0x12c], r14b
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp byte [0x14012ac3d], r14b
mov rcx, qword [0x1401255c8]
mov dword [rcx + 0x11c], eax
mov dword [rcx + 0x120], WSAAsyncSelect
jne 0x140029a71
mov rcx, qword [0x14012aab8]
mov edx, reloc.OLEAUT32.dll_VariantChangeType
lea r9, [0x140005400]
lea r8d, [rdx + 0x59]
call qword [sym.imp.USER32.dll_SetTimer]
test rax, rax
setne byte [0x14012ac3d]
mov byte [0x14012d175], 1
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rcx, qword [0x14012c4e8]
inc dword [0x14012ac54]
cmp rcx, qword [0x14012c4f0]
mov dword [0x14012d1a4], eax
mov dword [0x14012d1a0], eax
jne 0x140029aac
call fcn.1400073f0
mov rcx, qword [0x14012c4e8]
cmp rcx, qword [0x14012c4e0]
jb 0x140029ac6
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.140040110
mov rcx, qword [0x14012c4e8]
sub rcx, 0x18
mov r13d, eax
cmp rcx, qword [0x14012c4e0]
mov qword [0x14012c4e8], rcx
jb 0x140029b2b
mov rcx, qword [rcx]
mov qword [0x14012c508], rcx
mov qword [0x14012cc60], rcx
dec dword [0x14012ac54]
cmp byte [0x14012ac3d], r14b
je 0x140029b5f
mov rcx, qword [0x14012aab8]
mov edx, reloc.OLEAUT32.dll_VariantChangeType
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x14012ac3d]
test eax, eax
cmovne ecx, r14d
mov byte [0x14012ac3d], cl
mov byte [0x14012d175], r14b
mov rbx, qword [0x1401255c8]
cmp qword [rbx + 0x148], r14
je 0x140029bbb
mov rcx, qword [rbx + 0x148]
cmp dword [rcx + 0x10], 6
jne 0x140029b8c
mov rcx, qword [rcx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rbx + 0x148]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140029ba1
call fcn.1400d6fd8
mov rcx, qword [rbx + 0x148]
call fcn.1400d6fd0
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.1400d7a40
mov byte [rbx + 0x12c], 1
mov dword [rbx + 0x120], r14d
mov word [rbx + 0x12d], 1
mov dword [rbx + 0x3c], 0x80000000
mov rbx, qword [0x14012b628]
movzx ecx, byte [rbx + 0x23]
test cl, cl
jne 0x140029c90
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400f1604]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400bd650
jmp 0x140029ed4
lea r12, [0x1400f1604]
mov qword [rsp + 0x70], rsi
cmp qword [rbx + 8], r12
jne 0x140029ca9
mov rbp, qword [rbx + 0x10]
shr rbp, 1
lea rax, [rbp + 1]
lea rsi, [rax + rax]
cmp cl, 2
jne 0x140029cc6
mov rdx, rbp
mov rcx, r12
call fcn.140006d20
jmp 0x140029ecf
mov rcx, qword [0x1401255a0]
cmp rsi, rcx
jbe 0x140029cf7
cmp rsi, qword [rbx + 0x18]
jbe 0x140029cf7
lea r8, [0x1400f1514]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x14012c5c0]
call fcn.14004e5e0
jmp 0x140029ecf
cmp rax, 2
jae 0x140029d11
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400bdd00
jmp 0x140029ecf
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x140029d2e
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [0x1401255a0]
mov r8, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
mov qword [rsp + 0x48], rdi
cmp rsi, r8
jbe 0x140029ea2
movzx r9d, byte [rbx + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x140029d66
cmp al, 2
je 0x140029da3
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
jmp 0x140029e96
mov edi, 0x80
cmp rsi, rdi
ja 0x140029da3
cmp rsi, 8
ja 0x140029d7d
mov edi, 8
jmp 0x140029d89
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rsi, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400b60b0
test rax, rax
je 0x140029eca
mov byte [rbx + 0x20], 1
jmp 0x140029e96
cmp rsi, 0x20
jae 0x140029db3
mov edi, SafeArrayAllocDescriptor
jmp 0x140029e5d
mov edi, 0x208
cmp rsi, rdi
jb 0x140029e5d
cmp rsi, 0x50000
jae 0x140029e19
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140029de0
addsd xmm0, qword [0x140112038]
mulsd xmm0, qword [0x140112070]
movsd xmm1, qword [0x140112068]
xor eax, eax
comisd xmm0, xmm1
jbe 0x140029e0f
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140029e0f
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x140029e5d
cmp rsi, 0x320000
jae 0x140029e2b
lea rdi, [rsi + 0x8000]
jmp 0x140029e5d
cmp rsi, 0xc80000
jae 0x140029e56
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x140029e5d
lea rdi, [rsi + 0x20000]
cmp rdi, rcx
cmova rdi, rcx
cmp r9b, 2
jne 0x140029e7d
test r8, r8
je 0x140029e7d
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.1400d6fd8
jmp 0x140029e80
xor sil, sil
test rdi, rdi
js 0x140029ef1
mov rcx, rdi
call fcn.1400d6f18
test rax, rax
je 0x140029ef1
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 0x140029eb8
lea r8, [rbp + rbp]
mov rdx, r12
call fcn.1400d7a40
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 0x140029f07
lea rax, [0x14012c4b8]
mov qword [rbx + 0x18], r14
mov qword [rbx + 8], rax
jmp 0x140029f0f
mov rax, qword [rbx + 8]
mov word [rax], r14w
lea r8, [0x1400f1514]
lea rdx, str.Out_of_memory.
lea rcx, [0x14012c5c0]
mov qword [rbx + 0x10], r14
call fcn.14004e5e0
jmp 0x140029eca