Function at 0x140029950
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.1400d6f08
mov rbx, rax
mov qword [0x1401293e0], rax
test rax, rax
jne 0x140029983
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.1400d7a30
mov rcx, qword [0x14012aab8]
lea r9, [0x140005620]
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 0x1400299e6
mov ebp, 1
mov r13d, ebp
jmp 0x140029b36
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 0x140029a41
mov rcx, qword [0x14012aab8]
mov edx, reloc.OLEAUT32.dll_VariantChangeType
lea r9, [0x140005440]
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 0x140029a7c
call fcn.140007470
mov rcx, qword [0x14012c4e8]
cmp rcx, qword [0x14012c4e0]
jb 0x140029a96
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.1400400e0
mov rcx, qword [0x14012c4e8]
sub rcx, 0x18
mov r13d, eax
cmp rcx, qword [0x14012c4e0]
mov qword [0x14012c4e8], rcx
jb 0x140029afb
mov rcx, qword [rcx]
mov qword [0x14012c508], rcx
mov qword [0x14012cc60], rcx
dec dword [0x14012ac54]
cmp byte [0x14012ac3d], r14b
je 0x140029b2f
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 0x140029b8b
mov rcx, qword [rbx + 0x148]
cmp dword [rcx + 0x10], 6
jne 0x140029b5c
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 0x140029b71
call fcn.1400d6fc8
mov rcx, qword [rbx + 0x148]
call fcn.1400d6fc0
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.1400d7a30
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 0x140029c60
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400f1614]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400bd640
jmp 0x140029ea4
lea r12, [0x1400f1614]
mov qword [rsp + 0x70], rsi
cmp qword [rbx + 8], r12
jne 0x140029c79
mov rbp, qword [rbx + 0x10]
shr rbp, 1
lea rax, [rbp + 1]
lea rsi, [rax + rax]
cmp cl, 2
jne 0x140029c96
mov rdx, rbp
mov rcx, r12
call fcn.140006da0
jmp 0x140029e9f
mov rcx, qword [0x1401255a0]
cmp rsi, rcx
jbe 0x140029cc7
cmp rsi, qword [rbx + 0x18]
jbe 0x140029cc7
lea r8, [0x1400f1524]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x14012c5c0]
call fcn.14004e590
jmp 0x140029e9f
cmp rax, 2
jae 0x140029ce1
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400bdcf0
jmp 0x140029e9f
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x140029cfe
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 0x140029e72
movzx r9d, byte [rbx + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x140029d36
cmp al, 2
je 0x140029d73
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
jmp 0x140029e66
mov edi, 0x80
cmp rsi, rdi
ja 0x140029d73
cmp rsi, 8
ja 0x140029d4d
mov edi, 8
jmp 0x140029d59
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rsi, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400b60a0
test rax, rax
je 0x140029e9a
mov byte [rbx + 0x20], 1
jmp 0x140029e66
cmp rsi, 0x20
jae 0x140029d83
mov edi, SafeArrayAllocDescriptor
jmp 0x140029e2d
mov edi, 0x208
cmp rsi, rdi
jb 0x140029e2d
cmp rsi, 0x50000
jae 0x140029de9
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140029db0
addsd xmm0, qword [0x140112018]
mulsd xmm0, qword [0x140112050]
movsd xmm1, qword [0x140112048]
xor eax, eax
comisd xmm0, xmm1
jbe 0x140029ddf
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140029ddf
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x140029e2d
cmp rsi, 0x320000
jae 0x140029dfb
lea rdi, [rsi + 0x8000]
jmp 0x140029e2d
cmp rsi, 0xc80000
jae 0x140029e26
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x140029e2d
lea rdi, [rsi + 0x20000]
cmp rdi, rcx
cmova rdi, rcx
cmp r9b, 2
jne 0x140029e4d
test r8, r8
je 0x140029e4d
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.1400d6fc8
jmp 0x140029e50
xor sil, sil
test rdi, rdi
js 0x140029ec1
mov rcx, rdi
call fcn.1400d6f08
test rax, rax
je 0x140029ec1
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 0x140029e88
lea r8, [rbp + rbp]
mov rdx, r12
call fcn.1400d7a30
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 0x140029ed7
lea rax, [0x14012c4b8]
mov qword [rbx + 0x18], r14
mov qword [rbx + 8], rax
jmp 0x140029edf
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.14004e590
jmp 0x140029e9a