Function at 0x10005be78
Capabilities:
Check for time delay via gettickcount
Create directory
Get common file path
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0xc90
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0xc80], rax
mov rax, qword [rcx + 0xc0]
xor r12d, r12d
mov rbx, rcx
mov esi, r12d
cmp rax, r12
jne 0x10005bec4
mov eax, 0x80004005
jmp 0x10005c1f2
mov qword [rcx + 0xb8], r12
mov rax, qword [rax + 0x78]
cmp rax, r12
jne 0x10005bed9
mov rax, r12
jmp 0x10005bee0
mov rax, qword [rax + 0x2a0]
mov qword [rcx + 0xb8], rax
cmp rax, r12
je 0x10005beba
mov r8, qword [rcx + 0x10]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x480]
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, r12d
je 0x10005c1f0
lea rcx, [rsp + 0x480]
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_strrchr]
mov rdi, rax
cmp rax, r12
jne 0x10005bf6a
lea rcx, [rsp + 0x480]
mov edx, 0x2f
call qword [sym.imp.msvcrt.dll_strrchr]
mov rdi, rax
cmp rax, r12
je 0x10005c1f0
add rdi, 1
je 0x10005c1f0
mov r14d, 0x104
lea rdx, [rsp + 0x370]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, r12d
je 0x10005c1f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r9, [rsp + 0x370]
lea r8, [0x10002b7d0]
mov ebp, eax
mov eax, 0x4f8b588f
lea rcx, [rsp + 0x50]
mul ebp
mov eax, ebp
sub eax, edx
shr eax, 1
add eax, edx
mov rdx, r14
shr eax, 0x10
imul eax, eax, 0x186a0
sub ebp, eax
mov dword [rsp + 0x20], ebp
call fcn.10004fb28
cmp eax, r12d
jl 0x10005c1f0
lea rax, [rsp + 0x160]
lea r8, [rsp + 0x50]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, r12d
je 0x10005c1f0
lea rcx, [rbx + 0x50]
lea rdx, [rsp + 0x160]
mov dword [rbx + 0x84], 1
call fcn.100052cbc
lea r9, [rsp + 0x370]
lea r8, [0x10002b7e0]
lea rcx, [rsp + 0x50]
mov rdx, r14
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebp
call fcn.10004fb28
cmp eax, r12d
jl 0x10005c1f0
lea rax, [rsp + 0x160]
lea r8, [rsp + 0x50]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, r12d
je 0x10005c1f0
lea rcx, [rsp + 0x160]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r12d
je 0x10005c1f0
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x160]
mov edi, 1
call fcn.100052cbc
mov dword [rbx + 0x80], edi
mov rcx, qword [rbx + 0x60]
cmp rcx, r12
je 0x10005c0c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], r12
lea rcx, [rsp + 0x160]
call fcn.100053454
cmp eax, r12d
je 0x10005c14d
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x160]
xor r9d, r9d
mov edx, 0x80000000
mov r8d, edi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x10005c14d
lea rdx, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x40], r12d
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x10005c13b
mov ecx, dword [rsp + 0x40]
mov eax, eax
shl rcx, 0x20
or rcx, rax
cmp rcx, qword [rbx + 0xa8]
cmove edi, r12d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, r12d
je 0x10005c1f0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, 0x64
mov dword [rbx + 0x68], 1
mov qword [rbx + 0x60], rax
call fcn.100051b44
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x98], eax
cmp qword [rbx + 0x60], r12
je 0x10005c1f0
mov rcx, qword [rbx + 0xb8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x480]
mov r9d, 2
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x8000080
call qword [rax + 0x28]
cmp eax, r12d
mov esi, eax
jl 0x10005c1f0
jmp 0x10005c1ea
mov rcx, qword [rbx + 0x60]
mov edx, 0x258
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10005c1f0
cmp dword [rbx + 0x68], r12d
je 0x10005c1f0
mov rcx, rbx
call fcn.10005bab8
mov esi, eax
cmp qword [rbx + 0x60], r12
jne 0x10005c1c4
mov eax, esi
mov rcx, qword [rsp + 0xc80]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0xc90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret