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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
cmp dword [0x1401605c8], 0
jg 0x140004db2
mov rcx, qword [0x14015bc10]
cmp byte [rcx + 0x12d], 0
je 0x140004db2
mov eax, dword [reloc.WSOCK32.dll_inet_addr]
cmp dword [0x1401605cc], eax
jge 0x140004db2
cmp dword [0x14015bc04], 0
je 0x140004db2
cmp dword [0x1401605bc], 0
jne 0x140004db2
cmp byte [rcx + 0x12c], 0
jne 0x140004a26
cmp byte [rcx + 0x12e], 0
jne 0x140004a19
cmp dword [rcx + 0x120], 0xffffffff
jle 0x140004a19
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14015bc10]
sub eax, dword [rcx + 0x11c]
cmp eax, dword [rcx + 0x120]
jb 0x140004a19
mov byte [rcx + 0x12c], 1
cmp byte [rcx + 0x12c], 0
je 0x140004db2
xor r14d, r14d
mov ebp, r14d
mov rbx, qword [0x140164838]
test rbx, rbx
je 0x140004db2
lea r13, [0x140120460]
mov r15d, 0xffffffff
lea r12, [0x140162c30]
lea rdi, str.Timer
cmp byte [rbx + 0x15], 0
je 0x140004a84
cmp byte [rbx + 0x14], 0
ja 0x140004a84
mov eax, dword [rcx + 0x3c]
cmp dword [rbx + 0x10], eax
jl 0x140004a84
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ecx, eax
sub ecx, dword [rbx + 0xc]
cmp ecx, dword [rbx + 8]
jae 0x140004ab0
mov rcx, qword [0x14015bc10]
mov rsi, qword [rbx + 0x18]
mov rbx, rsi
test rsi, rsi
lea rdi, str.Timer
jne 0x140004a57
test ebp, ebp
je 0x140004db2
lea rcx, [rsp + 0x40]
call fcn.140005700
mov al, 1
jmp 0x140004db4
test ebp, ebp
jne 0x140004b7d
mov ebp, 1
mov rdi, qword [0x140160738]
cmp byte [rdi + 0x23], 0
jne 0x140004ace
mov rdi, qword [rdi + 0x10]
test byte [rdi + 0x21], 8
je 0x140004adc
mov rcx, rdi
call fcn.140001610
movzx eax, byte [rdi + 0x23]
cmp al, bpl
jne 0x140004af9
test byte [rdi + 0x21], 4
je 0x140004af3
mov rdx, rdi
call fcn.140064000
mov rdx, qword [rdi + 8]
jmp 0x140004b4c
cmp al, 2
jne 0x140004b49
mov rdx, qword [0x140164960]
test rdx, rdx
jne 0x140004b4c
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x140004b2e
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
lea rdx, [0x14012046c]
test eax, eax
cmovne rdx, r13
jmp 0x140004b4c
xor edx, edx
call fcn.140007200
lea rdx, [0x14012046c]
cmp rax, r15
cmovne rdx, qword [0x140164958]
jmp 0x140004b4c
mov rdx, r12
mov r8d, 0x7f
lea rcx, [rsp + 0x40]
call fcn.1401020c4
mov word [rsp + 0x13e], r14w
inc dword [0x1401605cc]
add qword [0x14015bc10], 0x150
lea rdi, str.Timer
mov dword [rbx + 0xc], esi
cmp byte [rbx + 0x16], 0
je 0x140004bd3
mov byte [rbx + 0x15], 0
add dword [0x14016484c], r15d
jne 0x140004bd3
cmp dword [0x140160768], 0
jne 0x140004bd3
cmp dword [0x140161784], 0
jne 0x140004bd3
cmp byte [0x14016057e], 0
je 0x140004bd3
mov edx, 9
mov rcx, qword [0x140160760]
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x14016057e]
test eax, eax
cmovne ecx, r14d
mov byte [0x14016057e], cl
mov dword [0x1401648c4], esi
mov r9, qword [rbx]
mov rcx, r9
call fcn.1400c1010
test eax, eax
je 0x140004bed
cmp eax, 1
jne 0x140004bfc
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x140004bfc
movzx r9d, byte [rax]
jmp 0x140004bff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, dword [rbx + 0x10]
call fcn.1400054c0
mov rax, qword [0x14015bc10]
mov qword [rax + 0xf0], rbx
inc byte [rbx + 0x14]
mov rcx, qword [0x14015e378]
cmp rcx, qword [0x14015e380]
jne 0x140004c39
call fcn.140007980
mov rcx, qword [0x14015e378]
cmp rcx, qword [0x14015e370]
jb 0x140004c53
mov rax, qword [0x140164390]
mov qword [rcx], rax
mov rcx, qword [0x14015e378]
add rcx, 0x18
mov qword [0x14015e378], rcx
mov qword [rcx], r14
mov qword [rcx + 8], rdi
mov dword [rcx + 0x10], r14d
mov rcx, qword [rbx]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, str.call
mov rdx, rcx
call fcn.1400bd2b0
sub qword [0x14015e378], 0x18
dec byte [rbx + 0x14]
mov rsi, qword [rbx + 0x18]
cmp byte [rbx + 0x16], 0
je 0x140004ccb
cmp byte [rbx + 0x15], 0
jne 0x140004ccb
mov rcx, qword [rbx]
test rcx, rcx
je 0x140004ccb
call fcn.1400c1010
cmp eax, 2
jne 0x140004ccb
mov rcx, qword [rbx]
test rcx, rcx
je 0x140004cc8
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [rbx], r14
cmp qword [rbx], 0
jne 0x140004da6
mov rdi, r14
mov rbx, qword [0x140164838]
test rbx, rbx
je 0x140004da6
movzx ecx, byte [0x14016057e]
nop
cmp qword [rbx], 0
jne 0x140004d4a
cmp byte [rbx + 0x15], 0
je 0x140004d44
mov byte [rbx + 0x15], 0
add dword [0x14016484c], r15d
jne 0x140004d44
cmp dword [0x140160768], 0
jne 0x140004d44
cmp dword [0x140161784], 0
jne 0x140004d44
test cl, cl
je 0x140004d44
mov edx, 9
mov rcx, qword [0x140160760]
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x14016057e]
test eax, eax
cmovne ecx, r14d
mov byte [0x14016057e], cl
cmp byte [rbx + 0x14], 0
je 0x140004d58
mov rdi, rbx
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x140004da6
jmp 0x140004cf0
mov rax, qword [rbx + 0x18]
test rdi, rdi
je 0x140004d67
mov qword [rdi + 0x18], rax
jmp 0x140004d6e
mov qword [0x140164838], rax
mov rax, qword [0x140164840]
cmp rax, rbx
cmove rax, rdi
mov qword [0x140164840], rax
add dword [0x140164848], r15d
mov rcx, qword [rbx]
test rcx, rcx
je 0x140004d99
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
nop
mov edx, SafeArrayAllocDescriptor
mov rcx, rbx
call fcn.1400eec30
mov rcx, qword [0x14015bc10]
jmp 0x140004a88
xor al, al
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret