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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
movsxd rsi, dword [rcx + 0x10]
mov r12, r9
mov r10d, dword [0x140132ee0]
mov r14, rdx
shl rsi, 4
mov rbp, rcx
add rsi, qword [0x140134a00]
cmp r10d, dword [reloc.WSOCK32.dll_inet_addr]
mov r13d, r8d
mov r15, qword [rsi]
jge 0x140004886
movzx eax, byte [rsi + 0xd]
cmp byte [rsi + 0xc], al
jae 0x140004886
mov rdi, qword [0x14012c398]
cmp dword [rdi + 0x68], 0
jg 0x140004886
mov rcx, qword [0x140132eb8]
inc r10d
add rdi, 0xc8
mov qword [rsp + 0xd8], rbx
xor ebx, ebx
mov dword [0x140132ee0], r10d
mov qword [0x14012c398], rdi
test rcx, rcx
je 0x1400045fe
sub rcx, 0xffffffffffffff80
jmp 0x140004601
mov rcx, rbx
movups xmm0, xmmword [rcx]
test rdi, rdi
lea rax, [rdi + 0x80]
cmove rax, rbx
xor edx, edx
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [rcx + 0x40]
xorps xmm1, xmm1
movsd qword [rax + 0x40], xmm0
lea rcx, [0x140134a20]
movups xmmword [rdi], xmm1
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi + 0x20], xmm1
movups xmmword [rdi + 0x30], xmm1
movups xmmword [rdi + 0x40], xmm1
movups xmmword [rdi + 0x50], xmm1
movups xmmword [rdi + 0x60], xmm1
movups xmmword [rdi + 0x70], xmm1
mov byte [rdi + 0x7a], 1
mov dword [rdi + 0x68], ebx
call fcn.140047fe0
movzx eax, byte [rdi + 0xc2]
test al, al
jne 0x14000467f
mov byte [rdi + 0xc2], bl
cmp dword [0x1401352b4], ebx
je 0x14000468f
cmp dword [0x1401352b0], ebx
jne 0x140004693
test al, al
je 0x1400046c7
mov dword [rdi + 0x88], reloc.WSOCK32.dll_recv
mov byte [rdi + 0x7a], bl
test al, al
jne 0x1400046c7
cmp dword [0x1401352b4], ebx
jge 0x1400046b5
mov dword [rdi + 0x70], 0xffffffff
jmp 0x1400046c7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x74], eax
mov eax, dword [0x1401352b4]
mov dword [rdi + 0x70], eax
mov rcx, qword [0x14012ecd8]
cmp rcx, qword [0x14012ece0]
jne 0x1400046e3
call fcn.140007a2c
mov rcx, qword [0x14012ecd8]
cmp rcx, qword [0x14012ecd0]
jb 0x1400046fd
mov rax, qword [0x1401351b8]
mov qword [rcx], rax
mov rcx, qword [0x14012ecd8]
add rcx, 0x18
lea rax, str.OnMessage
mov qword [0x14012ecd8], rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rax
mov dword [rcx + 0x10], ebx
test r14, r14
je 0x14000475a
mov edx, 0xfffffff0
mov rcx, r14
mov rbx, r14
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1e
jae 0x14000475a
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x14000475a
mov edx, 0xfffffff0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1e
jb 0x140004735
mov rcx, qword [0x14012c398]
mov rax, qword [rsp + 0xf8]
mov qword [rcx + 0x38], rbx
test rax, rax
je 0x140004779
mov eax, dword [rax + 0x20]
mov qword [rcx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [rsp + 0x38], 0
lea r9, [rsp + 0x40]
mov dword [0x1401352b8], eax
xor r8d, r8d
inc byte [rsi + 0xc]
mov rdx, r15
mov rax, qword [rsp + 0xf0]
mov rcx, r15
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x80], 1
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x98], 1
mov qword [rsp + 0x88], r14
call fcn.140092d90
cmp eax, 7
sete bl
jne 0x140004815
mov rcx, qword [rsp + 0x100]
mov rax, qword [rsp + 0xd0]
mov qword [rcx], rax
mov rax, qword [0x14012ecd8]
sub rax, 0x18
cmp rax, qword [0x14012ecd0]
mov qword [0x14012ecd8], rax
jb 0x140004841
mov rax, qword [rax]
mov qword [0x14012ecf8], rax
mov qword [0x1401351b8], rax
call fcn.1400048b0
cmp byte [rbp + 0x18], 0
jne 0x140004875
movsxd rax, dword [rbp + 0x10]
shl rax, 4
add rax, qword [0x140134a00]
movzx ecx, byte [rax + 0xc]
test cl, cl
je 0x140004879
dec cl
mov byte [rax + 0xc], cl
movzx eax, bl
mov rbx, qword [rsp + 0xd8]
jmp 0x140004888
mov byte [rbp + 0x18], 0
movzx eax, bl
mov rbx, qword [rsp + 0xd8]
jmp 0x140004888
xor al, al
lea r11, [rsp + 0xa0]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret