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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, r8
mov r14d, edx
mov rdi, rcx
lea eax, [rdx - 0xd]
cmp eax, 0x7ff6
jbe 0x140038b29
cmp edx, 9
jg 0x140038b06
je 0x140038aea
mov ecx, edx
sub ecx, 2
je 0x140038a8f
sub ecx, 2
je 0x140038b29
cmp ecx, 1
jne 0x140038b29
add r8, 8
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.14000c9f0
mov eax, 1
jmp 0x140039331
mov rcx, rbx
call qword [sym.imp.USER32.dll_Ordinal_2574]
nop dword [rax + rax]
test eax, eax
je 0x140038ada
lea rdx, [rbp + 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_rtcore_ntuser_private_l1_1_0.dll_GetWindowBand]
nop dword [rax + rax]
test eax, eax
je 0x140038ada
mov rcx, rbx
call fcn.140039704
test al, al
jne 0x140038ada
mov eax, dword [rbp + 0x48]
cmp eax, 1
je 0x14003932f
cmp eax, 8
je 0x14003932f
mov rdx, rbx
mov rcx, rdi
call fcn.140039350
jmp 0x14003932f
mov rcx, qword [rcx + 0x140]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x14006c37f.0]
jmp 0x14003932f
cmp r14d, 0xc
jne 0x140038b29
shr rbx, 0x10
and ebx, 0xfff
mov edx, ebx
mov rcx, qword [rcx + 0xc0]
call fcn.1401a576c
jmp 0x140039331
lea r15, [0x140313e50]
test rbx, rbx
je 0x14003922d
lea eax, [rdx - 6]
test eax, 0xffff7fff
jne 0x140038b5a
mov rcx, rbx
call qword [sym.imp.USER32.dll_Ordinal_2573]
nop dword [rax + rax]
test eax, eax
jne 0x140038be3
lea rdx, [rbp + 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_rtcore_ntuser_private_l1_1_0.dll_GetWindowBand]
nop dword [rax + rax]
test eax, eax
je 0x14003922d
movsxd rax, dword [rbp + 0x48]
movzx esi, byte [r15 + rax*8 + 4]
lea rcx, [0x14037d160]
call fcn.140107904
test al, al
je 0x140038ba8
mov edx, 0xa920
mov rcx, rbx
call qword [0x14039e6d8]
nop dword [rax + rax]
test rax, rax
jne 0x140038bb1
test sil, sil
je 0x14003922d
mov rcx, rbx
call qword [sym.imp.USER32.dll_Ordinal_2574]
nop dword [rax + rax]
test eax, eax
je 0x140038be3
lea rdx, str.Microsoft.Windows.ShellManagedWindowAsNormalWindow
mov rcx, rbx
call qword [0x14039e6d8]
nop dword [rax + rax]
test rax, rax
je 0x14003922d
lea eax, [r14 - 0x11]
cmp eax, 0x7ff2
jbe 0x14003932f
cmp r14d, 0xa
jg 0x140038c42
je 0x140038c35
mov ecx, r14d
sub ecx, 1
je 0x140038c15
sub ecx, 3
je 0x140038fbf
cmp ecx, 2
je 0x140038c63
jmp 0x14003932f
mov rcx, rbx
call fcn.140035370
test eax, eax
jne 0x14003932f
mov rdx, rbx
mov rcx, rdi
call fcn.14003e4b8
jmp 0x14003932f
mov rdx, rbx
call fcn.140204c14
jmp 0x14003932f
mov ecx, r14d
sub ecx, 0x10
je 0x140038fcf
sub ecx, 0x7ff4
je 0x140038fbf
cmp ecx, 2
jne 0x14003932f
xor esi, esi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x28], rsi
mov r13d, 0x80004005
mov rcx, rbx
call qword [sym.imp.USER32.dll_Ordinal_2574]
nop dword [rax + rax]
test eax, eax
je 0x140038d25
lea rdx, [rbp + 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_rtcore_ntuser_private_l1_1_0.dll_GetWindowBand]
nop dword [rax + rax]
test eax, eax
je 0x140038d25
mov rcx, rbx
call fcn.140039704
test al, al
jne 0x140038d25
mov eax, dword [rbp + 0x58]
cmp eax, 1
je 0x140038cbe
cmp eax, 8
jne 0x140038d25
mov qword [rbp - 0x18], rsi
lea rcx, [rbp - 0x18]
cmp qword [rdi + 0x178], 0
je 0x140038cea
call fcn.140082784
lea r8, [rbp - 0x18]
mov rdx, rbx
mov rcx, qword [rdi + 0x178]
call fcn.14002730c
jmp 0x140038cfb
call fcn.140082784
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.1402514f0
mov ebx, eax
test eax, eax
js 0x140038d17
lea r9, [rbp - 0x28]
lea r8, [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.140033620
mov ebx, eax
lea rcx, [rbp - 0x18]
call fcn.140082784
jmp 0x140038e86
mov rax, qword [rdi + 0x158]
test rax, rax
je 0x140038d35
mov eax, dword [rax]
jmp 0x140038d37
mov eax, esi
mov dword [rbp + 0x48], eax
cdqe
test rax, rax
jle 0x140038e0c
mov r15, rsi
nop dword [rax + rax]
test r13d, r13d
jns 0x140038e8e
mov rax, qword [rdi + 0x158]
mov rcx, qword [rax + 8]
mov r12, qword [rcx + r15*8]
test r12, r12
je 0x140038df3
mov qword [rbp - 0x10], rsi
mov rax, qword [r12]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
mov rax, qword [rax + 0x38]
call qword [case.0x14006c37f.0]
mov r13d, eax
test eax, eax
js 0x140038ded
cmp dword [rbp - 0x30], 4
jl 0x140038ded
mov rdx, r12
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x140038df3
lea rcx, [rbp - 0x28]
call qword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006c37f.0]
jmp 0x140038df3
mov r13d, 0x80004005
inc r15
movsxd rcx, dword [rbp + 0x48]
cmp r15, rcx
jl 0x140038d50
test r13d, r13d
jns 0x140038e8e
mov rcx, qword [rdi + 0x150]
mov rax, qword [rcx]
lea rdx, [rbp - 8]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp + 0x48]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x14006c37f.0]
mov ebx, eax
test eax, eax
js 0x14003932f
mov rdx, qword [rdi + 0x150]
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
nop dword [rax + rax]
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x140038e86
lea rcx, [rbp - 0x28]
call qword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006c37f.0]
test ebx, ebx
js 0x14003932f
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0xc0]
call qword [case.0x14006c37f.0]
mov r15d, eax
and r15d, 0x80000000
cmp r14d, 0x8006
jne 0x140038f39
mov esi, 3
call qword [0x14039e768]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140038ee8
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x60]
call qword [case.0x14006c37f.0]
cmp rax, rbx
je 0x140038f25
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
mov edx, 0x10000
mov r8d, edx
mov rax, qword [rax + 0x88]
call qword [case.0x14006c37f.0]
test r15d, r15d
jne 0x140038f25
mov rcx, qword [rdi + 0x140]
mov rax, qword [rcx]
mov r8, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rax + 0x78]
call qword [case.0x14006c37f.0]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov dword [rdi + 0x148], eax
jmp 0x140038f74
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x14006c37f.0]
bt eax, 0x10
jae 0x140038f74
mov ebx, dword [rdi + 0x148]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
sub eax, ebx
mov ecx, 8
cmp eax, 0x7d0
cmova esi, ecx
test r15d, r15d
jne 0x140038f98
mov rcx, qword [rdi + 0x140]
mov rax, qword [rcx]
mov r9d, esi
mov r8, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rax + 0x50]
call qword [case.0x14006c37f.0]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006c37f.0]
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006c37f.0]
jmp 0x14003932f
mov rdx, rbx
mov rcx, rdi
call fcn.140039948
jmp 0x14003932f
xor esi, esi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x28], rsi
mov r12d, 0x80004005
mov rcx, rbx
call qword [sym.imp.USER32.dll_Ordinal_2574]
nop dword [rax + rax]
test eax, eax
je 0x140039091
lea rdx, [rbp + 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_rtcore_ntuser_private_l1_1_0.dll_GetWindowBand]
nop dword [rax + rax]
test eax, eax
je 0x140039091
mov rcx, rbx
call fcn.140039704
test al, al
jne 0x140039091
mov eax, dword [rbp + 0x48]
cmp eax, 1
je 0x14003902a
cmp eax, 8
jne 0x140039091
mov qword [rbp - 0x18], rsi
lea rcx, [rbp - 0x18]
cmp qword [rdi + 0x178], 0
je 0x140039056
call fcn.140082784
lea r8, [rbp - 0x18]
mov rdx, rbx
mov rcx, qword [rdi + 0x178]
call fcn.14002730c
jmp 0x140039067
call fcn.140082784
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.1402514f0
mov ebx, eax
test eax, eax
js 0x140039083
lea r9, [rbp - 0x28]
lea r8, [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.140033620
mov ebx, eax
lea rcx, [rbp - 0x18]
call fcn.140082784
jmp 0x1400391e2
mov rax, qword [rdi + 0x158]
test rax, rax
je 0x1400390a1
mov ecx, dword [rax]
jmp 0x1400390a3
mov ecx, esi
movsxd r13, ecx
test ecx, ecx
jle 0x140039168
mov r14, rsi
test r12d, r12d
jns 0x1400391ea
mov rax, qword [rdi + 0x158]
mov rcx, qword [rax + 8]
mov r15, qword [rcx + r14*8]
test r15, r15
je 0x140039153
mov qword [rbp - 0x10], rsi
mov rax, qword [r15]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x58]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
mov rax, qword [rax + 0x38]
call qword [case.0x14006c37f.0]
mov r12d, eax
test eax, eax
js 0x14003914d
cmp dword [rbp + 0x58], 4
jl 0x14003914d
mov rdx, r15
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x140039153
lea rcx, [rbp - 0x28]
call qword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006c37f.0]
jmp 0x140039153
mov r12d, 0x80004005
inc r14
cmp r14, r13
jl 0x1400390b1
test r12d, r12d
jns 0x1400391ea
mov rcx, qword [rdi + 0x150]
mov rax, qword [rcx]
lea rdx, [rbp - 8]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x14006c37f.0]
mov ebx, eax
test eax, eax
js 0x14003932f
mov rdx, qword [rdi + 0x150]
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
nop dword [rax + rax]
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x1400391e2
lea rcx, [rbp - 0x28]
call qword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006c37f.0]
test ebx, ebx
js 0x14003932f
mov rcx, qword [rbp - 0x20]
cmp rcx, qword [rdi + 0x150]
je 0x14003920a
mov r8, qword [rbp - 0x28]
mov rdx, rcx
mov rcx, rdi
call fcn.14020582c
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006c37f.0]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006c37f.0]
jmp 0x14003932f
lea eax, [r14 - 4]
test eax, 0xffff7fff
jne 0x14003932f
test rbx, rbx
je 0x140039252
mov rcx, rbx
call fcn.14000a70c
test al, al
je 0x1400392b9
jmp 0x14003932f
call qword [0x14039e768]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400392f2
lea rdx, [rbp + 0x48]
mov rcx, rax
call qword [sym.imp.api_ms_win_rtcore_ntuser_private_l1_1_0.dll_GetWindowBand]
nop dword [rax + rax]
test eax, eax
je 0x1400392b9
movsxd r8, dword [rbp + 0x48]
movzx esi, byte [r15 + r8*8 + 4]
lea rcx, [0x14037d160]
call fcn.140107904
test al, al
je 0x1400392b4
mov edx, 0xa920
mov rcx, rbx
call qword [0x14039e6d8]
nop dword [rax + rax]
test rax, rax
jne 0x1400392f2
test sil, sil
jne 0x1400392f2
mov rcx, qword [rdi + 0x140]
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
mov rax, qword [rax + 0x48]
call qword [case.0x14006c37f.0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x579
mov rcx, qword [0x14037b640]
call qword [case.0x14004551b.0]
nop dword [rax + rax]
jmp 0x14003932f
xor esi, esi
mov qword [rbp + 0x58], rsi
xor edx, edx
mov rcx, rdi
call fcn.140039a14
cmp qword [rbp + 0x58], rsi
je 0x140039326
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f3
mov rcx, qword [0x14037b640]
call qword [0x14039e600]
nop dword [rax + rax]
lea rcx, [rbp + 0x58]
call fcn.14003a0fc
xor eax, eax
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret