Function at 0x140004990
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 [0x1401278c8], 0
jg 0x140004dd2
mov rcx, qword [0x140124200]
cmp byte [rcx + 0x12d], 0
je 0x140004dd2
mov eax, dword [reloc.WSOCK32.dll_inet_addr]
cmp dword [0x1401278cc], eax
jge 0x140004dd2
cmp dword [0x1401241f4], 0
je 0x140004dd2
cmp dword [0x1401278bc], 0
jne 0x140004dd2
cmp byte [rcx + 0x12c], 0
jne 0x140004a46
cmp byte [rcx + 0x12e], 0
jne 0x140004a39
cmp dword [rcx + 0x120], 0xffffffff
jle 0x140004a39
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140124200]
sub eax, dword [rcx + 0x11c]
cmp eax, dword [rcx + 0x120]
jb 0x140004a39
mov byte [rcx + 0x12c], 1
cmp byte [rcx + 0x12c], 0
je 0x140004dd2
xor r14d, r14d
mov ebp, r14d
mov rbx, qword [0x14012bb38]
test rbx, rbx
je 0x140004dd2
lea r13, [0x1400ef7d8]
mov r15d, 0xffffffff
lea r12, [0x140129f30]
lea rdi, str.Timer
cmp byte [rbx + 0x15], 0
je 0x140004aa4
cmp byte [rbx + 0x14], 0
ja 0x140004aa4
mov eax, dword [rcx + 0x3c]
cmp dword [rbx + 0x10], eax
jl 0x140004aa4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ecx, eax
sub ecx, dword [rbx + 0xc]
cmp ecx, dword [rbx + 8]
jae 0x140004ad0
mov rcx, qword [0x140124200]
mov rsi, qword [rbx + 0x18]
mov rbx, rsi
test rsi, rsi
lea rdi, str.Timer
jne 0x140004a77
test ebp, ebp
je 0x140004dd2
lea rcx, [rsp + 0x40]
call fcn.140005730
mov al, 1
jmp 0x140004dd4
test ebp, ebp
jne 0x140004b9e
mov ebp, 1
mov rdi, qword [0x140127a38]
cmp byte [rdi + 0x23], 0
jne 0x140004aee
mov rdi, qword [rdi + 0x10]
test byte [rdi + 0x21], 8
je 0x140004afc
mov rcx, rdi
call fcn.140001620
movzx eax, byte [rdi + 0x23]
cmp al, bpl
jne 0x140004b19
test byte [rdi + 0x21], 4
je 0x140004b13
mov rdx, rdi
call fcn.140060a30
mov rdx, qword [rdi + 8]
jmp 0x140004b6c
cmp al, 2
jne 0x140004b69
mov rdx, qword [0x14012bc60]
test rdx, rdx
jne 0x140004b6c
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x140004b4e
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
lea rdx, [0x1400ef7e4]
test eax, eax
cmovne rdx, r13
jmp 0x140004b6c
xor edx, edx
call fcn.140007250
lea rdx, [0x1400ef7e4]
cmp rax, r15
cmovne rdx, qword [0x14012bc58]
jmp 0x140004b6c
mov rdx, r12
mov r8d, 0x7f
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rsp + 0x13e], r14w
inc dword [0x1401278cc]
add qword [0x140124200], 0x150
lea rdi, str.Timer
mov dword [rbx + 0xc], esi
cmp byte [rbx + 0x16], 0
je 0x140004bf4
mov byte [rbx + 0x15], 0
add dword [0x14012bb4c], r15d
jne 0x140004bf4
cmp dword [0x140127a68], 0
jne 0x140004bf4
cmp dword [0x140128a84], 0
jne 0x140004bf4
cmp byte [0x14012787e], 0
je 0x140004bf4
mov edx, 9
mov rcx, qword [0x140127a60]
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x14012787e]
test eax, eax
cmovne ecx, r14d
mov byte [0x14012787e], cl
mov dword [0x14012bbc4], esi
mov r9, qword [rbx]
mov rcx, r9
call fcn.1400bcce0
test eax, eax
je 0x140004c0e
cmp eax, 1
jne 0x140004c1d
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x140004c1d
movzx r9d, byte [rax]
jmp 0x140004c20
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, dword [rbx + 0x10]
call fcn.1400054f0
mov rax, qword [0x140124200]
mov qword [rax + 0xf0], rbx
inc byte [rbx + 0x14]
mov rcx, qword [0x140126968]
cmp rcx, qword [0x140126970]
jne 0x140004c5a
call fcn.1400079d0
mov rcx, qword [0x140126968]
cmp rcx, qword [0x140126960]
jb 0x140004c74
mov rax, qword [0x14012b690]
mov qword [rcx], rax
mov rcx, qword [0x140126968]
add rcx, 0x18
mov qword [0x140126968], 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.1400b8b70
sub qword [0x140126968], 0x18
dec byte [rbx + 0x14]
mov rsi, qword [rbx + 0x18]
cmp byte [rbx + 0x16], 0
je 0x140004cec
cmp byte [rbx + 0x15], 0
jne 0x140004cec
mov rcx, qword [rbx]
test rcx, rcx
je 0x140004cec
call fcn.1400bcce0
cmp eax, 2
jne 0x140004cec
mov rcx, qword [rbx]
test rcx, rcx
je 0x140004ce9
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [rbx], r14
cmp qword [rbx], 0
jne 0x140004dc6
mov rdi, r14
mov rbx, qword [0x14012bb38]
test rbx, rbx
je 0x140004dc6
movzx ecx, byte [0x14012787e]
cmp qword [rbx], 0
jne 0x140004d6a
cmp byte [rbx + 0x15], 0
je 0x140004d64
mov byte [rbx + 0x15], 0
add dword [0x14012bb4c], r15d
jne 0x140004d64
cmp dword [0x140127a68], 0
jne 0x140004d64
cmp dword [0x140128a84], 0
jne 0x140004d64
test cl, cl
je 0x140004d64
mov edx, 9
mov rcx, qword [0x140127a60]
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x14012787e]
test eax, eax
cmovne ecx, r14d
mov byte [0x14012787e], cl
cmp byte [rbx + 0x14], 0
je 0x140004d78
mov rdi, rbx
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x140004dc6
jmp 0x140004d10
mov rax, qword [rbx + 0x18]
test rdi, rdi
je 0x140004d87
mov qword [rdi + 0x18], rax
jmp 0x140004d8e
mov qword [0x14012bb38], rax
mov rax, qword [0x14012bb40]
cmp rax, rbx
cmove rax, rdi
mov qword [0x14012bb40], rax
add dword [0x14012bb48], r15d
mov rcx, qword [rbx]
test rcx, rcx
je 0x140004db9
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
nop
mov edx, SafeArrayAllocDescriptor
mov rcx, rbx
call fcn.1400ec0a0
mov rcx, qword [0x140124200]
jmp 0x140004aa8
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