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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x78], r9
mov r15, r8
mov r14, rdx
mov qword [rbp - 0x40], rdx
mov rsi, rcx
mov rax, qword [rbp + 0xa8]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0xb0]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp - 0x70], rax
mov r12, qword [rbp + 0xf0]
mov rax, qword [rbp + 0xf8]
mov qword [rbp - 0x50], rax
movzx ecx, byte [rbp + 0xe0]
shl ecx, 8
movzx eax, byte [rbp + 0xd8]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp + 0xd0]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp + 0xc8]
or ecx, eax
mov dword [rbp - 0x80], ecx
mov rdx, qword [r9]
mov rcx, qword [0x14022a9e0]
call fcn.140025b68
mov rdx, rax
mov rcx, qword [0x14022a9e0]
call fcn.14000ed40
mov bl, al
mov rdx, qword [r14]
mov rcx, qword [rsi + 8]
call fcn.140010490
mov r13, rax
xor edi, edi
test bl, bl
je 0x1400b660a
xor edx, edx
mov rcx, qword [0x14022a9e0]
call fcn.14000ed40
lea rbx, [rsi + 0x401a]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov rcx, r13
call fcn.140118eac
mov rcx, rax
lea rdx, str.ConEmuC64.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rdx, qword [rsi + 8]
neg eax
sbb rcx, rcx
and rcx, 0xfffffffffffffff0
movzx eax, word [rbx]
cmp word [rdx + rcx + 0x3ebc], ax
jne 0x1400b666e
movzx eax, word [rsi + 0x401c]
cmp word [rdx + rcx + 0x3ebe], ax
jne 0x1400b666e
movzx eax, word [rsi + 0x4020]
cmp word [rdx + rcx + 0x3ec2], ax
je 0x1400b6671
mov dil, 1
movups xmm0, xmmword [rbx]
movdqu xmmword [rdx + rcx + 0x3ebc], xmm0
mov rax, qword [r14]
xor ebx, ebx
test rax, rax
jne 0x1400b6691
lea rax, [0x1401759d0]
mov qword [r14], rax
mov rcx, qword [rsi + 8]
or r8, 0xffffffffffffffff
mov rdx, r8
inc rdx
cmp word [rcx + rdx*2 + 0xae0], bx
jne 0x1400b669c
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], bx
jne 0x1400b66ac
lea r14, [rcx + 0x384]
add r14, rdx
lea rcx, [r14 + r14]
call fcn.140113e8c
mov qword [r15], rax
mov word [rax], bx
cmp dword [rsi + 0x3d3c], 2
jne 0x1400b677e
lea r8, [0x140179218]
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
mov r8, qword [rsi + 8]
add r8, 0xae0
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
lea r8, [0x140179210]
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
mov edx, 1
mov rcx, qword [0x14022ab50]
call fcn.14007f158
test eax, eax
je 0x1400b673c
lea r8, str._log
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
or dword [rsp + 0x70], 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x70]
call fcn.14011dca4
mov rcx, qword [r15]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400b675a
mov rdx, r14
sub rdx, rax
lea rcx, [rcx + rax*2]
mov r9d, dword [rsp + 0x70]
lea r8, str._system:_u__cmd
call fcn.1401140d0
lea r8, [0x140179218]
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
mov r8, r13
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
lea r8, [0x140179210]
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
mov edx, 1
mov rcx, rsi
call fcn.1400b9880
test eax, eax
je 0x1400b67ef
lea rcx, str.__LOG2
lea r8, str.__LOG
cmp eax, 2
cmove r8, rcx
lea rcx, str.__LOG3
cmp eax, 3
cmove r8, rcx
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
cmp dword [rsi + 0x3d38], 2
jne 0x1400b6820
mov rax, qword [rsi + 8]
cmp byte [rax + 0x47dc], bl
jne 0x1400b6820
mov dword [rsi + 0x3cd8], 2
lea r8, str.__ADMIN
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
test dil, dil
je 0x1400b683c
mov rcx, qword [0x14022a9e0]
add rcx, 0x8e8
call fcn.14003c3a0
test al, al
je 0x1400b684e
lea r8, str.__OMITHOOKSWARN
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
mov eax, 0x600020
lea r9d, [rax - 0x20]
cmp dword [rsi + 0x3f68], 2
cmovne r9d, eax
mov rcx, qword [r15]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400b686c
cdqe
mov rdx, r14
sub rdx, rax
lea rcx, [rcx + rax*2]
lea r8, str.__CINMODE_X
call fcn.1401145a0
mov rcx, qword [rsi + 0x4250]
call fcn.140098370
mov r13d, eax
mov rcx, qword [rsi + 0x4250]
call fcn.14009835c
mov dword [rsp + 0x70], eax
mov eax, dword [rsi + 0x3a40]
mov dword [rsp + 0x78], eax
mov rdx, qword [r15]
mov rcx, rdi
inc rcx
cmp word [rdx + rcx*2], bx
jne 0x1400b68bc
movsxd rbx, ecx
mov rdi, qword [0x14022ab50]
add rdi, 0xc98
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov r10, r14
sub r10, rbx
mov rcx, qword [r15]
lea rcx, [rcx + rbx*2]
mov eax, dword [rbp - 0x80]
mov dword [rsp + 0x60], eax
mov r8, qword [0x14022ab50]
mov edx, dword [r8 + 0xc7c]
mov dword [rsp + 0x58], edx
mov edx, dword [r8 + 0xc80]
mov dword [rsp + 0x50], edx
mov qword [rsp + 0x48], rdi
mov edx, dword [rsi + 0x4280]
mov dword [rsp + 0x40], edx
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r13d
mov eax, dword [0x14022a9e8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0x78]
lea r8, str.__AID_u__GID_u__GHWND_08X__BW_i__BH_i__BZ_i___FN_s___FW_i__FH_i__TA_08X
mov rdx, r10
call fcn.1401145a0
mov rax, qword [0x14022ab50]
xor edi, edi
cmp byte [rax + 0x11480], dil
jne 0x1400b6973
lea r8, str.__HIDE
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
lea rbx, [rsi + 0x3cd0]
mov r8, r14
mov rdx, qword [r15]
mov rcx, rbx
call fcn.14011cac0
lea r8, str.__ROOT
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
mov r8, qword [rbp - 0x40]
mov r8, qword [r8]
mov rdx, r14
mov rcx, qword [r15]
call fcn.140001e48
mov r14, qword [rbp - 0x50]
mov dword [r14], edi
cmp byte [rbp + 0xa0], dil
je 0x1400b69c4
mov rcx, rsi
call fcn.1400a2484
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13, qword [rbp - 0x60]
mov dword [r13], eax
lea rcx, [rsi + 0x3fb8]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [rsi + 0x3fd8]
or r8, 0xffffffffffffffff
mov rdi, qword [rbp - 0x78]
mov rdx, qword [rdi]
call fcn.140115190
lea rcx, [rsi + 0x3fe8]
or r8, 0xffffffffffffffff
mov rdx, qword [rdi]
call fcn.140115190
lea rcx, [rsi + 0x3ff8]
or r8, 0xffffffffffffffff
xor edx, edx
call fcn.140115190
mov edx, 1
mov rcx, rsi
call fcn.1400b9880
test eax, eax
je 0x1400b6ad5
lea rcx, [rbp - 0x60]
call fcn.140114c40
nop
xor edx, edx
mov rcx, rbx
call fcn.14011f254
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x60]
call fcn.140114cd0
mov rcx, qword [rsi]
call fcn.14010c7c0
mov r8, rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
lea rax, [0x14017b9b8]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rax, [0x1401acb10]
mov qword [rsp + 0x28], rax
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
lea r9, str._:_Cmd
lea rdx, str.Starting_VCon_
lea rcx, [rbp - 0x50]
call fcn.140114ba8
nop
lea rcx, [rbp - 0x50]
call fcn.140054ee8
mov rdx, rax
mov rcx, rsi
call fcn.1400a9948
nop
lea rcx, [rbp - 0x50]
call fcn.140114ca4
nop
lea rcx, [rbp - 0x60]
call fcn.140114ca4
lea rax, [rsi + 0x27118]
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, qword [r15]
mov rdx, rbx
mov rcx, rsi
call fcn.1400a3540
mov dil, al
mov edx, 1
mov rcx, rsi
call fcn.1400b9880
xor r15d, r15d
test eax, eax
je 0x1400b6c21
xor edx, edx
lea r8d, [r15 + 0x40]
lea rcx, [rbp - 0x20]
call fcn.14012d4b0
test dil, dil
jne 0x1400b6ba4
lea r8d, [r15 + 0xa]
lea rdx, [rbp - 0x20]
mov ecx, dword [r14]
call fcn.140001224
mov rbx, rax
mov rcx, qword [rsi]
call fcn.14010c7c0
mov r8, rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rbx
lea r9, str.__failed__code
lea rdx, str.VCon_
lea rcx, [rbp - 0x70]
call fcn.140114ba8
nop
lea rcx, [rbp - 0x70]
call fcn.140054ee8
mov rdx, rax
mov rcx, rsi
call fcn.1400a9948
nop
jmp 0x1400b6c18
mov r8d, dword [r12 + 0x10]
test r8d, r8d
je 0x1400b6bbe
lea rdx, str.__ServerPID_u
lea rcx, [rbp - 0x20]
call fcn.1400011a0
mov rcx, qword [rsi]
call fcn.14010c7c0
mov r8, rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, str.__started
lea rdx, str.VCon_
lea rcx, [rbp - 0x70]
call fcn.140114ba8
nop
lea rcx, [rbp - 0x70]
call fcn.140054ee8
mov rdx, rax
mov rcx, rsi
call fcn.1400a9948
nop
lea rcx, [rbp - 0x70]
call fcn.140114ca4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rbp - 0x38]
mov dword [rcx], eax
sub eax, dword [r13]
mov rcx, qword [rbp - 0x30]
mov dword [rcx], eax
test dil, dil
je 0x1400b6cdd
cmp dword [rsi + 0x3d38], 2
jne 0x1400b6c56
mov rax, qword [rsi + 8]
cmp byte [rax + 0x47dc], r15b
je 0x1400b6c67
mov r8, qword [r12]
mov edx, dword [r12 + 0x10]
mov rcx, rsi
call fcn.1400b4148
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x4af0], eax
mov dword [rsi + 0x4af8], r15d
cmp dword [rsi + 0x3d38], 2
je 0x1400b6ca1
mov r8d, 1
lea rdx, [r12 + 0x10]
mov rcx, rsi
call fcn.1400b09f4
mov ecx, dword [r12 + 0x10]
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov qword [rsp + 0x78], r15
lea r9, [rsp + 0x78]
mov r8b, 1
mov dl, r8b
mov rcx, qword [rsi + 8]
call fcn.1400264d4
test al, al
jne 0x1400b6cd2
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400b6cd2
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1400b6cf7
mov rcx, qword [rbp - 0x28]
call fcn.14011e94c
jmp 0x1400b6cf7
cmp dword [rsi + 0x4ae8], r15d
je 0x1400b6cf7
mov dword [rsi + 0x3cd8], 2
or dword [rsi + 0x4ae8], 0xffffffff
mov al, dil
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret