Function at 0x140029780
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.1400d5b18
mov rbx, rax
mov qword [0x140128340], rax
test rax, rax
jne 0x1400297b3
add rsp, 0x50
pop rbx
ret
mov rdx, qword [0x1401245a8]
mov qword [rsp + 0x40], r13
mov rcx, rax
mov r8d, 0x150
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
call fcn.1400d6960
mov rcx, qword [0x140129a10]
lea r9, [0x1400055e0]
mov edx, ntohs
mov r8d, 0x4ef6d80
mov qword [0x1401245a8], rbx
call qword [sym.imp.USER32.dll_SetTimer]
xor r15d, r15d
cmp qword [0x14012b510], r15
jne 0x140029817
mov r13d, 1
mov r14d, r13d
jmp 0x140029969
mov rax, qword [0x1401245a8]
mov byte [rax + 0x12c], r15b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x140129b98], r15b
mov rcx, qword [0x1401245a8]
mov dword [rcx + 0x11c], eax
mov dword [rcx + 0x120], WSAAsyncSelect
jne 0x140029872
mov rcx, qword [0x140129a10]
mov edx, reloc.WSOCK32.dll_inet_ntoa
lea r9, [0x140005400]
lea r8d, [rdx + 0x59]
call qword [sym.imp.USER32.dll_SetTimer]
test rax, rax
setne byte [0x140129b98]
mov byte [0x14012c0c5], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012b448]
inc dword [0x140129bb0]
cmp rcx, qword [0x14012b450]
mov dword [0x14012c0f4], eax
mov dword [0x14012c0f0], eax
jne 0x1400298ad
call fcn.1400075d0
mov rcx, qword [0x14012b448]
cmp rcx, qword [0x14012b440]
jb 0x1400298c7
mov rax, qword [0x14012bbb0]
mov qword [rcx], rax
mov rcx, qword [0x14012b448]
add rcx, 0x18
lea rax, str.Auto_execute
mov r13d, 1
mov qword [0x14012b448], rcx
mov qword [rcx + 8], rax
mov qword [rcx], r15
mov dword [rcx + 0x10], r15d
mov rcx, qword [0x14012b510]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
call fcn.14003fcf0
mov rcx, qword [0x14012b448]
sub rcx, 0x18
mov r14d, eax
cmp rcx, qword [0x14012b440]
mov qword [0x14012b448], rcx
jb 0x14002992e
mov rcx, qword [rcx]
mov qword [0x14012b468], rcx
mov qword [0x14012bbb0], rcx
dec dword [0x140129bb0]
cmp byte [0x140129b98], r15b
je 0x140029962
mov rcx, qword [0x140129a10]
mov edx, reloc.WSOCK32.dll_inet_ntoa
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x140129b98]
test eax, eax
cmovne ecx, r15d
mov byte [0x140129b98], cl
mov byte [0x14012c0c5], r15b
mov rbx, qword [0x1401245a8]
cmp qword [rbx + 0x148], r15
je 0x1400299be
mov rcx, qword [rbx + 0x148]
cmp dword [rcx + 0x10], 6
jne 0x14002998f
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 0x1400299a4
call fcn.1400d5bd8
mov rcx, qword [rbx + 0x148]
call fcn.1400d5bd0
mov qword [rbx + 0x148], r15
mov rbx, qword [0x1401245a8]
lea rcx, [0x1401284a0]
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 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.1400d6960
mov byte [rbx + 0x12c], 1
mov dword [rbx + 0x120], r15d
mov word [rbx + 0x12d], 1
mov dword [rbx + 0x3c], 0x80000000
mov rbx, qword [0x14012a580]
movzx ecx, byte [rbx + 0x23]
test cl, cl
jne 0x140029a8c
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400f0614]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400bc2f0
jmp 0x140029ce7
lea r12, [0x1400f0614]
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
cmp qword [rbx + 8], r12
jne 0x140029aac
mov rbp, qword [rbx + 0x10]
shr rbp, 1
jmp 0x140029aaf
mov rbp, r13
lea rax, [rbp + 1]
lea rsi, [rax + rax]
cmp cl, 2
jne 0x140029acc
mov rdx, rbp
mov rcx, r12
call fcn.140006f00
jmp 0x140029cdd
mov rcx, qword [0x140124580]
cmp rsi, rcx
jbe 0x140029afd
cmp rsi, qword [rbx + 0x18]
jbe 0x140029afd
lea r8, [0x1400f0524]
lea rdx, [0x14010f290]
lea rcx, [0x14012b510]
call fcn.14004e080
jmp 0x140029cdd
cmp rax, 2
jae 0x140029b17
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400bc9a0
jmp 0x140029cdd
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x140029b34
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 [0x140124580]
mov r8, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
mov qword [rsp + 0x78], rdi
cmp rsi, r8
jbe 0x140029cb0
movzx r9d, byte [rbx + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x140029b6c
cmp al, 2
je 0x140029ba9
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
jmp 0x140029ca4
mov edi, 0x80
cmp rsi, rdi
ja 0x140029ba9
cmp rsi, 8
ja 0x140029b83
mov edi, 8
jmp 0x140029b8f
mov eax, reloc.WSOCK32.dll_recv
cmp rsi, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400b4e60
test rax, rax
je 0x140029cd8
mov byte [rbx + 0x20], 1
jmp 0x140029ca4
cmp rsi, 0x20
jae 0x140029bb9
mov edi, SafeArrayAllocDescriptor
jmp 0x140029c63
mov edi, 0x208
cmp rsi, rdi
jb 0x140029c63
cmp rsi, 0x50000
jae 0x140029c1f
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140029be6
addsd xmm0, qword [0x140110e78]
mulsd xmm0, qword [0x140110eb0]
movsd xmm1, qword [0x140110ea8]
xor eax, eax
comisd xmm0, xmm1
jbe 0x140029c15
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140029c15
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x140029c63
cmp rsi, 0x320000
jae 0x140029c31
lea rdi, [rsi + 0x8000]
jmp 0x140029c63
cmp rsi, 0xc80000
jae 0x140029c5c
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x140029c63
lea rdi, [rsi + 0x20000]
cmp rdi, rcx
cmova rdi, rcx
cmp r9b, 2
jne 0x140029c83
test r8, r8
je 0x140029c83
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.1400d5bd8
jmp 0x140029c86
xor sil, sil
test rdi, rdi
js 0x140029d52
mov rcx, rdi
call fcn.1400d5b18
test rax, rax
je 0x140029d52
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 0x140029cc6
lea r8, [rbp + rbp]
mov rdx, r12
call fcn.1400d6960
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 [0x140126138]
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x48]
cmp word [rax], 0
jne 0x140029d3f
cmp dword [0x14012a628], 0
jne 0x140029d3f
cmp qword [0x140129b60], 0
jne 0x140029d3f
cmp qword [0x140129b68], 0
jne 0x140029d3f
cmp byte [0x140129b79], 0
jne 0x140029d3f
mov edx, 6
test r14d, r14d
lea rcx, [0x14012b510]
cmove edx, r13d
xor r8d, r8d
call fcn.14002a0a0
mov r14, qword [rsp + 0x38]
mov eax, r13d
mov r13, qword [rsp + 0x40]
add rsp, 0x50
pop rbx
ret
test sil, sil
je 0x140029d68
lea rax, [0x14012b418]
mov qword [rbx + 0x18], r15
mov qword [rbx + 8], rax
jmp 0x140029d70
mov rax, qword [rbx + 8]
mov word [rax], r15w
lea r8, [0x1400f0524]
lea rdx, str.Out_of_memory.
lea rcx, [0x14012b510]
mov qword [rbx + 0x10], r15
call fcn.14004e080
jmp 0x140029cd8