Function at 0x1400d5390
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.1400ed080
sub rsp, rax
mov rsi, r9
mov edi, r8d
mov r15, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400d53cc
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400d3520
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 0x1400d54ad
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 0x1400d54ad
movsxd rax, ebx
cmp rax, qword [rsp + 0x48]
jg 0x1400d54ad
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 0x1400d54ad
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 0x1400d5500
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
lea rax, [0x14010620c]
lea rdx, [0x140106774]
cmovne rdx, rax
cmp word [rdx], 0x30
jne 0x1400d54cf
cmp word [rdx + 2], 0
je 0x1400d54e3
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
jne 0x1400d57c4
mov rcx, qword [0x140127a38]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d3520
jmp 0x1400d57da
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 0x1400d5696
cmp word [rsp + 0x10090], bx
ja 0x1400d574d
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 0x1400d5696
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 0x1400d5746
cmp word [rsi], 0
je 0x1400d5725
mov rcx, qword [0x140124200]
mov edx, dword [rcx + 0x30]
sub edx, 1
je 0x1400d5667
sub edx, 1
je 0x1400d5651
cmp edx, 2
je 0x1400d563c
lea rax, [rsp + 0x50]
mov r8, rsi
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400d5638
add rax, 2
test ecx, ecx
jne 0x1400d5624
test edx, edx
jmp 0x1400d568b
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400821b0
test rax, rax
setne al
jmp 0x1400d568e
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
setne al
jmp 0x1400d568e
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rsi + r8*2], 0
jne 0x1400d5670
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
sete al
test al, al
jne 0x1400d5725
test rbp, rbp
jne 0x1400d5752
mov rcx, r15
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400d5772
mov eax, dword [rsp + 0x100a0]
cmp dword [0x14012af90], eax
jne 0x1400d56f2
test r14d, r14d
js 0x1400d56d8
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 + r13]
sub ecx, eax
cmp ecx, 5
jle 0x1400d56fa
mov edx, 1
mov ecx, r12d
call fcn.1400019e0
mov rax, qword [rsp + 0x10098]
jmp 0x1400d5534
mov ebx, r13d
test r14d, r14d
js 0x1400d570f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 + rbx]
sub ecx, eax
cmp ecx, 5
jle 0x1400d57a3
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x10098]
jmp 0x1400d5534
mov rcx, qword [0x140127a38]
lea rdx, [0x1400ef8b4]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d3520
jmp 0x1400d574d
xor eax, eax
mov word [rsp + 0x50], ax
test rbp, rbp
je 0x1400d5772
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov rcx, rbp
lea r8, [r9 - 1]
call fcn.1400d3520
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 0x1400d57da
mov rcx, qword [0x140127a38]
lea rdx, [0x14010620c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d3520
jmp 0x1400d5772
mov rcx, qword [0x14012b690]
lea r9, [0x1400ef7d4]
xor r8d, r8d
call fcn.14005f480
add rsp, 0x10050
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret