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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r14, rcx
mov r12d, dword [rcx + 0x1d8]
mov edi, dword [rcx + 0x1dc]
mov r13, qword [rcx + 0x1e0]
mov qword [rsp + 0x30], r13
mov esi, dword [rcx + 0x1c8]
mov dword [rsp + 0x38], esi
mov ebx, dword [rcx + 0x1cc]
mov dword [rsp + 0x3c], ebx
mov r15, qword [rcx + 0x1d0]
mov qword [rsp + 0x40], r15
cmp esi, dword [r15 + 0x14]
jae 0x14000399e
mov edx, 0x7c
mov rax, qword [r15 + 8]
lea rcx, [rax + rsi*2]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x14003c7fe
mov rcx, r12
cmp r12d, dword [r13 + 0x14]
jb 0x14003c829
mov rdx, rcx
lea rax, fcn.14001b680
mov qword [rbp - 0x10], rax
lea rax, [rbp + 8]
mov qword [rbp - 8], rax
mov r13d, 0x41
mov ecx, r13d
mov dword [rbp], ecx
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
lea rdx, [rax + rdx*2]
mov qword [rsp + 0x20], rdx
test rdx, rdx
je 0x14003c885
mov dword [rsp + 0x28], edi
or r8, 0xffffffffffffffff
mov eax, 0xffffffff
cmp edi, eax
je 0x14003c8a4
mov r12d, edi
lea rax, [r12 + 1]
mov r8d, 0xffffffff
cmp rax, r8
ja 0x140003ddb
cmp eax, ecx
ja 0x14003c8d6
add r12, r12
mov rax, r12
shr rax, 0x20
test eax, eax
jne 0x140003db9
mov r8d, r12d
mov rcx, qword [rbp - 8]
call sub.msvcrt.dll_memcpy
mov dword [rbp + 4], edi
xor ecx, ecx
mov rax, qword [rbp - 8]
mov word [r12 + rax], cx
lea r12, fcn.140008d70
mov qword [rbp - 0x10], r12
mov ecx, 0x68
mov rax, qword [0x14008e1f0]
call qword [case.0x14000702c.0]
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14003c8fa
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, qword [rbp - 8]
mov rcx, rax
call fcn.1400044b0
nop
mov eax, dword [rdi + 4]
xor ecx, ecx
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x40], 0xa
lea rcx, [rax + 0x20]
shr rcx, 5
mov dword [rdi + 0x30], ecx
lea eax, [rcx + rcx*4]
lea ecx, [rax + rax]
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
mov rax, qword [0x14008e1f0]
call qword [case.0x14000702c.0]
mov qword [rdi + 0x38], rax
mov r8d, dword [rdi + 0x40]
imul r8d, dword [rdi + 0x30]
shl r8, 2
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
nop
xor ecx, ecx
mov rax, qword [0x14008e200]
call qword [case.0x14000702c.0]
nop
mov eax, dword [rdi + 4]
mov dword [rdi + 0x4c], eax
xor eax, eax
mov qword [rdi + 0x50], rax
mov qword [rdi + 0x58], rax
mov dword [rdi + 0x60], 0xbb8
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x64], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rdi + 0x64], eax
mov rcx, rdi
call fcn.140003f70
nop
mov qword [r14], rdi
cmp esi, dword [r15 + 0x14]
jae 0x14003c903
mov edx, 0x2a
mov rax, qword [r15 + 8]
lea rcx, [rax + rsi*2]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x14003c903
sub rax, qword [r15 + 8]
sar rax, 1
test eax, eax
jg 0x140003da9
cmp eax, 0xffffffff
je 0x14003c903
sub eax, esi
cmp eax, 0xffffffff
je 0x14003c903
lea rax, fcn.14001b680
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], r13d
mov rax, qword [r15 + 8]
lea rsi, [rax + rsi*2]
test rsi, rsi
je 0x14003c920
mov dword [rsp + 0x28], ebx
mov r15d, 0xffffffff
cmp ebx, r15d
je 0x14003c93f
mov edi, ebx
lea rax, [rdi + 1]
cmp rax, r15
ja 0x140003dcd
cmp eax, r13d
ja 0x14003c96f
add rdi, rdi
mov rax, rdi
shr rax, 0x20
test eax, eax
jne 0x140003dbf
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_memcpy
mov dword [rsp + 0x64], ebx
mov rax, qword [rsp + 0x58]
xor esi, esi
mov word [rdi + rax], si
mov qword [rsp + 0x50], r12
cmp dword [rsp + 0x64], esi
jbe 0x140003c6b
lea edx, [rsi + 0x5c]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x140003c6b
mov rdx, qword [rsp + 0x58]
sub rax, rdx
sar rax, 1
cmp eax, 0xffffffff
je 0x140003c6b
mov ebx, 0x2f
mov ecx, eax
mov word [rdx + rcx*2], bx
lea ecx, [rax + 1]
cmp ecx, dword [rsp + 0x64]
jae 0x140003c6b
mov edx, 0x5c
mov rax, qword [rsp + 0x58]
lea rcx, [rax + rcx*2]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x140003c6b
mov rdx, qword [rsp + 0x58]
sub rax, rdx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140003c33
mov ecx, 0x68
mov rax, qword [0x14008e1f0]
call qword [case.0x14000702c.0]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14003c990
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.1400044b0
nop
mov edx, dword [rbx + 4]
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], 0xa
add rdx, 0x20
shr rdx, 5
mov dword [rbx + 0x30], edx
lea ecx, [rdx + rdx*4]
lea edx, [rcx + rcx]
mov eax, 4
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
mov rax, qword [0x14008e1f0]
call qword [case.0x14000702c.0]
mov qword [rbx + 0x38], rax
mov r8d, dword [rbx + 0x40]
imul r8d, dword [rbx + 0x30]
shl r8, 2
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
nop
xor ecx, ecx
mov rax, qword [0x14008e200]
call qword [case.0x14000702c.0]
nop
mov eax, dword [rbx + 4]
mov dword [rbx + 0x4c], eax
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov dword [rbx + 0x60], 0xbb8
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x64], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rbx + 0x64], eax
mov rcx, rbx
call fcn.140003f70
nop
mov qword [r14 + 8], rbx
mov qword [rsp + 0x50], r12
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003d5e
lea rax, [rsp + 0x68]
cmp rcx, rax
jne 0x140003dc5
mov qword [rbp - 0x10], r12
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140003d74
lea rax, [rbp + 8]
cmp rcx, rax
jne 0x140003dd3
mov eax, 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14002dd40
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea ecx, [rbx + rsi]
cmp eax, ecx
jb 0x140003b64
jmp 0x14003c903
call fcn.140051318
nop
call fcn.140051318
int3
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140003d5e
call fcn.140051318
nop
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140003d74
call fcn.140051318
int3
sub rax, qword [r15 + 8]
sar rax, 1
test eax, eax
jle 0x14003c814
lea ecx, [rbx + rsi]
cmp eax, ecx
jae 0x14000399e
cmp eax, 0xffffffff
je 0x14000399e
sub eax, esi
cmp eax, 0xffffffff
jne 0x14003c876
jmp 0x14000399e
mov edx, 0x7c
mov rax, qword [r13 + 8]
lea rcx, [rax + r12*2]
call qword [sym.imp.msvcrt.dll_wcschr]
mov r8, rax
test rax, rax
je 0x14003c87d
sub r8, qword [r13 + 8]
sar r8, 1
test r8d, r8d
jle 0x14003c859
lea eax, [r12 + rdi]
cmp r8d, eax
jae 0x14003c87d
mov rcx, r12
mov rdx, r12
cmp r8d, 0xffffffff
je 0x1400039ab
sub r8d, r12d
cmp r8d, 0xffffffff
je 0x1400039ae
xor eax, eax
jmp 0x140003d79
mov rcx, r12
jmp 0x1400039ab
mov rcx, qword [rbp + 0xc8]
mov r9d, 0x80070057
lea r8, str.onecoreuap_base_appmodel_search_searchcommonpkmutildlmstr.cxx
mov edx, 0x8c
call fcn.140048df4
int3
mov rax, r8
inc rax
cmp word [rdx + rax*2], 0
jne 0x14003c8a7
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.1400449c0
mov ecx, dword [rbp]
mov edi, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
jmp 0x1400039fd
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140044988
mov edx, dword [rax]
lea rcx, [rbp - 0x10]
call fcn.14005baa0
mov rdx, qword [rsp + 0x20]
jmp 0x140003a1c
xor ecx, ecx
mov edi, ecx
jmp 0x140003b2c
mov edx, 0x3f
lea rcx, [rsp + 0x38]
call fcn.140044844
cmp eax, 0xffffffff
je 0x140003d5e
jmp 0x140003b78
mov rcx, qword [rbp + 0xc8]
mov r9d, 0x80070057
lea r8, str.onecoreuap_base_appmodel_search_searchcommonpkmutildlmstr.cxx
mov edx, 0x8c
call fcn.140048df4
int3
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x14003c943
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1400449c0
mov r13d, dword [rsp + 0x60]
mov ebx, dword [rsp + 0x28]
jmp 0x140003bb7
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140044988
mov edx, dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14005baa0
nop
jmp 0x140003bcf
mov rbx, rsi
jmp 0x140003d41