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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x10050
call fcn.1401119a0
sub rsp, rax
mov rsi, r9
mov edi, r8d
mov r15, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400d7d2c
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400d5e90
mov eax, dword [rsp + 0x100b0]
mov r14d, 0x1f4
test eax, eax
mov r12d, gethostbyname
cmovne r14d, eax
cmp dword [rsp + 0x100b8], 1
mov eax, 1
cmovge r12d, dword [rsp + 0x100b8]
mov ebx, eax
cmp edi, eax
mov dword [rsp + 0x100b0], eax
cmovge ebx, edi
test r15, r15
je 0x1400d7e0d
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x7d0
mov edx, 0x406
mov rcx, r15
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x1400d7e0d
movsxd rax, ebx
cmp rax, qword [rsp + 0x48]
jg 0x1400d7e0d
lea rdx, [rsp + 0x100b8]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x100b8]
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400d7e0d
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x10000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400d7e60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
lea rax, [0x140136e9c]
lea rdx, [0x140137404]
cmovne rdx, rax
cmp word [rdx], 0x30
jne 0x1400d7e2f
cmp word [rdx + 2], 0
je 0x1400d7e43
mov rax, qword [0x14015bc10]
test byte [rax + 0x140], 1
jne 0x1400d8123
mov rcx, qword [0x140160738]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d5e90
jmp 0x1400d8139
mov eax, dword gs:[0x48]
dec ebx
mov dword [rsp + 0x100a0], eax
xor eax, eax
mov word [rsp + 0x50], ax
mov qword [rsp + 0x100a8], r13
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
movsxd rax, ebx
mov qword [rsp + 0x10098], rax
lea rcx, [rsp + 0x10090]
xor r9d, r9d
mov qword [rsp + 0x30], rcx
mov r8, rax
mov dword [rsp + 0x28], 0x7d0
mov rcx, r15
mov edx, 0x40c
mov dword [rsp + 0x20], 2
mov ebx, 0x7fff
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x1400d7ff5
cmp word [rsp + 0x10090], bx
ja 0x1400d80ac
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x10090]
mov r8, qword [rsp + 0x10098]
mov r9, rbx
mov qword [rsp + 0x30], rax
mov edx, 0x40d
mov dword [rsp + 0x28], 0x7d0
mov rcx, r15
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x1400d7ff5
movzx r9d, word [rsp + 0x10090]
lea r8, [rsp + 0x50]
inc r9d
mov qword [rsp + 0x20], 0
add r9, r9
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400d80a5
cmp word [rsi], 0
je 0x1400d8084
mov rcx, qword [0x14015bc10]
mov edx, dword [rcx + 0x30]
sub edx, 1
je 0x1400d7fc6
sub edx, 1
je 0x1400d7fb1
cmp edx, 2
je 0x1400d7f9c
lea rax, [rsp + 0x50]
mov r8, rsi
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400d7f98
add rax, 2
test ecx, ecx
jne 0x1400d7f84
test edx, edx
jmp 0x1400d7fea
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140087110
test rax, rax
setne al
jmp 0x1400d7fed
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400f0d44
test rax, rax
setne al
jmp 0x1400d7fed
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x1400d7fd0
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140102b68
test eax, eax
sete al
test al, al
jne 0x1400d8084
test rbp, rbp
jne 0x1400d80b1
mov rcx, r15
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400d80d1
mov eax, dword [rsp + 0x100a0]
cmp dword [0x140163c90], eax
jne 0x1400d8051
test r14d, r14d
js 0x1400d8037
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 + r13]
sub ecx, eax
cmp ecx, 5
jle 0x1400d8059
mov edx, 1
mov ecx, r12d
call fcn.140001a10
mov rax, qword [rsp + 0x10098]
jmp 0x1400d7e94
mov ebx, r13d
test r14d, r14d
js 0x1400d806e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 + rbx]
sub ecx, eax
cmp ecx, 5
jle 0x1400d8102
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x10098]
jmp 0x1400d7e94
mov rcx, qword [0x140160738]
lea rdx, [0x14012054c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d5e90
jmp 0x1400d80ac
xor eax, eax
mov word [rsp + 0x50], ax
test rbp, rbp
je 0x1400d80d1
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov rcx, rbp
lea r8, [r9 - 1]
call fcn.1400d5e90
mov dword [rsp + 0x100b0], eax
mov rdx, qword [rsp + 0x40]
mov r9d, 0x8000
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x100b0]
mov r13, qword [rsp + 0x100a8]
jmp 0x1400d8139
mov rcx, qword [0x140160738]
lea rdx, [0x140136e9c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d5e90
jmp 0x1400d80d1
mov rcx, qword [0x140164390]
lea r9, [0x14012046c]
xor r8d, r8d
call fcn.140062910
add rsp, 0x10050
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret