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

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov eax, dword [0x140112058]
mov rdi, rdx
cmp dword [0x1401156c8], eax
mov rsi, rcx
jl 0x14004a3bd
mov eax, 4
add rsp, 0x178
pop rdi
pop rsi
ret
mov qword [rsp + 0x190], rbx
mov rbx, qword [0x1401156c0]
mov qword [rsp + 0x198], rbp
mov qword [rsp + 0x1a8], r12
mov qword [rsp + 0x170], r13
cmp byte [rbx + 0x23], 0
mov qword [rsp + 0x168], r14
mov qword [rsp + 0x160], r15
movzx r15d, byte [0x140115543]
mov byte [0x140115543], 1
jne 0x14004a40d
mov rbx, qword [rbx + 0x10]
test byte [rbx + 0x21], 8
je 0x14004a41b
mov rcx, rbx
call fcn.1400014d0
movzx eax, byte [rbx + 0x23]
cmp al, 1
jne 0x14004a437
test byte [rbx + 0x21], 4
je 0x14004a431
mov rdx, rbx
call fcn.14004e7e0
mov rdx, qword [rbx + 8]
jmp 0x14004a4a1
cmp al, 2
jne 0x14004a49a
mov rdx, qword [0x140119888]
test rdx, rdx
jne 0x14004a4a1
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14004a473
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
lea rcx, [0x1400e0668]
lea rdx, [0x1400e0674]
cmovne rdx, rcx
jmp 0x14004a4a1
xor edx, edx
lea rcx, [0x140119870]
call fcn.140006330
mov ecx, 0xffffffff
lea rdx, [0x1400e0674]
cmp rax, rcx
cmovne rdx, qword [0x140119880]
jmp 0x14004a4a1
lea rdx, [0x140117b68]
mov r8d, 0x7f
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
mov r9b, 0x65
mov r8b, 1
mov word [rsp + 0x15e], ax
xor edx, edx
xor ecx, ecx
call fcn.140004db0
mov rbp, qword [0x1401196f0]
mov r12, qword [0x1401196f8]
mov r14d, dword [0x140119794]
mov r13d, dword [0x140119798]
mov qword [0x1401196f8], rbp
mov dword [0x140119798], r14d
mov qword [0x1401196f0], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401197ec], eax
mov dword [0x1401197e8], eax
mov dword [0x140119794], eax
cmp byte [rsi], 5
mov rbx, qword [rsi + 0x18]
jne 0x14004a598
mov rax, qword [0x140112060]
mov qword [0x1401192c0], rbx
cmp byte [rax + 0x139], 0
je 0x14004a574
movsxd rax, dword [0x140116720]
lea rdi, [0x140000000]
mov qword [rdi + rax*8 + 0x116d70], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140116720]
mov dword [rdi + rdx*4 + 0x116730], eax
inc edx
cmp edx, 0x190
mov eax, 0
cmovge edx, eax
mov dword [0x140116720], edx
xor r9d, r9d
xor edx, edx
mov rcx, rbx
lea r8, [r9 - 1]
call fcn.14008f0f0
mov edi, eax
cmp eax, 1
jne 0x14004a5e9
mov rcx, rbx
call fcn.140048360
mov edi, eax
jmp 0x14004a5e9
xor eax, eax
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x30], eax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x50], eax
lea r8, [0x1400e06f8]
lea rax, [rsp + 0x1a0]
mov rdx, rbx
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.1400a9990
mov edi, eax
test eax, eax
je 0x14004a5e9
mov rax, qword [rsp + 0x1a0]
neg rax
sbb edi, edi
add edi, 4
mov rax, qword [0x140112060]
mov rcx, qword [rax + 0xf8]
mov qword [0x1401156d0], rcx
lea rcx, [rsp + 0x60]
mov qword [0x1401196f0], rbp
mov dword [0x140119794], r14d
mov qword [0x1401196f8], r12
mov dword [0x140119798], r13d
call fcn.140004ff0
mov r14, qword [rsp + 0x168]
mov eax, edi
mov r13, qword [rsp + 0x170]
mov r12, qword [rsp + 0x1a8]
mov rbp, qword [rsp + 0x198]
mov rbx, qword [rsp + 0x190]
mov byte [0x140115543], r15b
mov r15, qword [rsp + 0x160]
add rsp, 0x178
pop rdi
pop rsi
ret