Function at 0x140002ea0
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 0x140002f3e
mov edx, 0x7c
mov rax, qword [r15 + 8]
lea rcx, [rax + rsi*2]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x14003892a
mov rcx, r12
cmp r12d, dword [r13 + 0x14]
jb 0x140038955
mov rdx, rcx
lea rax, fcn.14001b3f0
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 0x1400389b1
mov dword [rsp + 0x28], edi
or r8, 0xffffffffffffffff
mov eax, 0xffffffff
cmp edi, eax
je 0x1400389d0
mov r12d, edi
lea rax, [r12 + 1]
mov r8d, 0xffffffff
cmp rax, r8
ja 0x14000337b
cmp eax, ecx
ja 0x140038a02
add r12, r12
mov rax, r12
shr rax, 0x20
test eax, eax
jne 0x140003359
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.140019f80
mov qword [rbp - 0x10], r12
mov ecx, 0x68
mov rax, qword [0x14008e040]
call qword [case.0x140006f84.0]
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140038a26
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, qword [rbp - 8]
mov rcx, rax
call fcn.140003e70
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 [0x14008e040]
call qword [case.0x140006f84.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 [0x14008e050]
call qword [case.0x140006f84.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.140003510
nop
mov qword [r14], rdi
cmp esi, dword [r15 + 0x14]
jae 0x140038a2f
mov edx, 0x2a
mov rax, qword [r15 + 8]
lea rcx, [rax + rsi*2]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x140038a2f
sub rax, qword [r15 + 8]
sar rax, 1
test eax, eax
jg 0x140003349
cmp eax, 0xffffffff
je 0x140038a2f
sub eax, esi
cmp eax, 0xffffffff
je 0x140038a2f
lea rax, fcn.14001b3f0
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 0x140038a4c
mov dword [rsp + 0x28], ebx
mov r15d, 0xffffffff
cmp ebx, r15d
je 0x140038a6b
mov edi, ebx
lea rax, [rdi + 1]
cmp rax, r15
ja 0x14000336d
cmp eax, r13d
ja 0x140038a9b
add rdi, rdi
mov rax, rdi
shr rax, 0x20
test eax, eax
jne 0x14000335f
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 0x14000320b
lea edx, [rsi + 0x5c]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x14000320b
mov rdx, qword [rsp + 0x58]
sub rax, rdx
sar rax, 1
cmp eax, 0xffffffff
je 0x14000320b
mov ebx, 0x2f
mov ecx, eax
mov word [rdx + rcx*2], bx
lea ecx, [rax + 1]
cmp ecx, dword [rsp + 0x64]
jae 0x14000320b
mov edx, 0x5c
mov rax, qword [rsp + 0x58]
lea rcx, [rax + rcx*2]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x14000320b
mov rdx, qword [rsp + 0x58]
sub rax, rdx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400031d3
mov ecx, 0x68
mov rax, qword [0x14008e040]
call qword [case.0x140006f84.0]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140038abc
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.140003e70
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 [0x14008e040]
call qword [case.0x140006f84.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 [0x14008e050]
call qword [case.0x140006f84.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.140003510
nop
mov qword [r14 + 8], rbx
mov qword [rsp + 0x50], r12
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400032fe
lea rax, [rsp + 0x68]
cmp rcx, rax
jne 0x140003365
mov qword [rbp - 0x10], r12
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140003314
lea rax, [rbp + 8]
cmp rcx, rax
jne 0x140003373
mov eax, 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14002cdb0
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 0x140003104
jmp 0x140038a2f
call fcn.1400515d8
nop
call fcn.1400515d8
int3
call qword [sym.imp.msvcrt.dll_free]
jmp 0x1400032fe
call fcn.1400515d8
nop
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140003314
call fcn.1400515d8
int3
sub rax, qword [r15 + 8]
sar rax, 1
test eax, eax
jle 0x140038940
lea ecx, [rbx + rsi]
cmp eax, ecx
jae 0x140002f3e
cmp eax, 0xffffffff
je 0x140002f3e
sub eax, esi
cmp eax, 0xffffffff
jne 0x1400389a2
jmp 0x140002f3e
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 0x1400389a9
sub r8, qword [r13 + 8]
sar r8, 1
test r8d, r8d
jle 0x140038985
lea eax, [r12 + rdi]
cmp r8d, eax
jae 0x1400389a9
mov rcx, r12
mov rdx, r12
cmp r8d, 0xffffffff
je 0x140002f4b
sub r8d, r12d
cmp r8d, 0xffffffff
je 0x140002f4e
xor eax, eax
jmp 0x140003319
mov rcx, r12
jmp 0x140002f4b
mov rcx, qword [rbp + 0xc8]
mov r9d, 0x80070057
lea r8, [0x140095780]
mov edx, 0x8c
call fcn.14005a4d8
int3
mov rax, r8
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400389d3
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140044b90
mov ecx, dword [rbp]
mov edi, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
jmp 0x140002f9d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140044b58
mov edx, dword [rax]
lea rcx, [rbp - 0x10]
call fcn.14005bc90
mov rdx, qword [rsp + 0x20]
jmp 0x140002fbc
xor ecx, ecx
mov edi, ecx
jmp 0x1400030cc
mov edx, 0x3f
lea rcx, [rsp + 0x38]
call fcn.140044a14
cmp eax, 0xffffffff
je 0x1400032fe
jmp 0x140003118
mov rcx, qword [rbp + 0xc8]
mov r9d, 0x80070057
lea r8, [0x140095780]
mov edx, 0x8c
call fcn.14005a4d8
int3
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x140038a6f
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140044b90
mov r13d, dword [rsp + 0x60]
mov ebx, dword [rsp + 0x28]
jmp 0x140003157
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140044b58
mov edx, dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14005bc90
nop
jmp 0x14000316f
mov rbx, rsi
jmp 0x1400032e1