Function at 0x140008490
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r14d, dword [0x140031a80]
lea rdx, str.History
mov edi, dword [0x140031a84]
mov r8d, 0xffffffff
mov dword [rsp + 0x34], r14d
mov r12, rcx
call fcn.140007aa0
mov r9d, r14d
lea r8, str.MaxMemories
lea rdx, str._s_d_r_n
mov esi, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r15d, r15d
lea r9, [rsp + 0x30]
add eax, eax
mov qword [rsp + 0x20], r15
mov r8d, eax
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, edi
lea r8, str.Flag
lea rdx, str._s_08x_r_n
mov ebx, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r15
add eax, eax
lea rdx, [rsp + 0x40]
mov r8d, eax
mov dword [rsp + 0x30], eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r13d, eax
and r13d, ebx
and r13d, esi
lea esi, [r15 + 1]
and r13d, 1
test r14d, r14d
jle 0x140008704
mov rdi, qword [0x1400372f8]
test rdi, rdi
je 0x140008704
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x14003314c]
mov ebx, eax
bt ecx, 0xa
jae 0x1400085f4
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xbb8
ja 0x140008704
mov ecx, dword [0x14003314c]
bt ecx, 0xa
jb 0x1400085c4
bts ecx, 0xa
mov ebx, esi
mov dword [0x14003314c], ecx
mov r14d, dword [rdi]
mov r15d, ebx
test r14d, r14d
je 0x1400086fa
lea r8, str.Item_02u
test ebx, ebx
js 0x140008638
mov r8d, ebx
lea rdx, str.Item_02u
lea rcx, [rbp + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp + 0xe0]
mov r9d, r14d
lea rdx, str._s_08x_r_n
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
add eax, eax
lea rdx, [rbp + 0x10]
mov r8d, eax
mov dword [rsp + 0x38], eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14d, dword [rdi + 4]
lea r8, str.Option_02u
test ebx, ebx
js 0x1400086a7
mov r8d, ebx
lea rdx, str.Option_02u
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp + 0x1b0]
mov r9d, r14d
lea rdx, str._s_08x_r_n
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
add eax, eax
lea rdx, [rbp + 0x10]
mov r8d, eax
mov dword [rsp + 0x3c], eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc ebx
add rdi, 8
cmp r15d, dword [rsp + 0x34]
jl 0x140008600
and dword [0x14003314c], 0xfffffbff
movsxd r15, dword [0x1400330c0]
mov r14, qword [0x140033568]
test r15, r15
jle 0x1400087a9
xor ebx, ebx
nop dword [rax]
mov edi, dword [r14 + rbx*4]
lea r8, str.Excluded_03u
test esi, esi
js 0x14000874d
mov r8d, esi
lea rdx, str.Excluded_03u
lea rcx, [rbp + 0x280]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp + 0x280]
mov r9d, edi
lea rdx, str._s_08x_r_n
lea rcx, [rbp + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], 0
add eax, eax
lea rdx, [rbp + 0xe0]
mov r8d, eax
mov dword [rsp + 0x34], eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
inc rbx
and r13d, eax
cmp rbx, r15
jl 0x140008720
mov eax, r13d
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140013ba0
lea r11, [rsp + 0x460]
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