Function at 0x180002ebc
Capabilities:
Check for time delay via gettickcount
Create directory
Delete directory
Get common file path
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
movaps xmmword [rax - 0x38], xmm6
mov r14, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
movups xmmword [rsp + 0x20], xmm0
xor r12d, r12d
mov qword [rsp + 0x30], r12
lea r15d, [rax + 0xf]
mov qword [rsp + 0x38], r15
mov byte [rsp + 0x20], r12b
movups xmmword [rsp + 0x40], xmm0
movdqa xmm6, xmmword [0x18002d630]
movdqu xmmword [rsp + 0x50], xmm6
mov byte [rsp + 0x40], r12b
movups xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm6
mov byte [rbp - 0x80], r12b
movups xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm6
mov byte [rsp + 0x60], r12b
lea rdx, [rbp - 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rax, [rbp - 0x40]
or rsi, 0xffffffffffffffff
mov rdi, rsi
inc rdi
cmp byte [rax + rdi], r12b
jne 0x180002f5b
cmp rdi, qword [rsp + 0x38]
ja 0x180002f95
lea rbx, [rsp + 0x20]
cmp qword [rsp + 0x38], r15
cmova rbx, qword [rsp + 0x20]
mov qword [rsp + 0x30], rdi
mov r8, rdi
lea rdx, [rbp - 0x40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], r12b
jmp 0x180002fad
lea r9, [rbp - 0x40]
mov r8b, byte [rbp + 0x228]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1800017b0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov r8d, 0xa
lea rdx, [rbp + 0xd0]
call fcn.180003694
inc rsi
cmp byte [rax + rsi], r12b
jne 0x180002fc7
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180002d90
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], r15
cmova rcx, qword [rsp + 0x20]
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rdi, qword [rsp + 0x30]
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], r15
cmova r9, qword [rsp + 0x20]
cmp rdi, qword [rsp + 0x58]
ja 0x18000303f
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], r15
cmova rbx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], r12b
jmp 0x180003053
mov r8b, byte [rbp + 0x228]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1800017b0
mov r8d, 6
lea rdx, str....._
lea rcx, [rsp + 0x40]
call fcn.180002d90
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], r15
cmova rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rdi, qword [rsp + 0x30]
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], r15
cmova r9, qword [rsp + 0x20]
cmp rdi, qword [rbp - 0x68]
ja 0x1800030c4
lea rbx, [rbp - 0x80]
cmp qword [rbp - 0x68], r15
cmova rbx, qword [rbp - 0x80]
mov qword [rbp - 0x70], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], r12b
jmp 0x1800030d7
mov r8b, byte [rbp + 0x228]
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.1800017b0
mov r8d, 0x13
lea rdx, str.....TemporaryFile
lea rcx, [rbp - 0x80]
call fcn.180002d90
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], r15
cmova rdx, qword [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rdi, qword [rsp + 0x30]
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], r15
cmova r9, qword [rsp + 0x20]
cmp rdi, qword [rsp + 0x78]
ja 0x180003148
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], r15
cmova rbx, qword [rsp + 0x60]
mov qword [rsp + 0x70], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], r12b
jmp 0x18000315c
mov r8b, byte [rbp + 0x228]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1800017b0
mov r8d, 0xe
lea rdx, str.TemporaryFile
lea rcx, [rsp + 0x60]
call fcn.180002d90
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], r15
cmova rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], r15
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], r15
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop
mov ebx, 0x1000
mov rdx, qword [rsp + 0x78]
cmp rdx, r15
jbe 0x1800031f0
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, rbx
jb 0x1800031eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800031eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
movdqu xmmword [rsp + 0x70], xmm6
mov byte [rsp + 0x60], r12b
mov rdx, qword [rbp - 0x68]
cmp rdx, r15
jbe 0x180003234
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, rbx
jb 0x18000322f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000322f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
movdqu xmmword [rbp - 0x70], xmm6
mov byte [rbp - 0x80], r12b
mov rdx, qword [rsp + 0x58]
cmp rdx, r15
jbe 0x180003278
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, rbx
jb 0x180003273
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003273
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
movdqu xmmword [rsp + 0x50], xmm6
mov byte [rsp + 0x40], r12b
mov rdx, qword [rsp + 0x38]
cmp rdx, r15
jbe 0x1800032be
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, rbx
jb 0x1800032b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800032b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret