Function at 0x1400225a0
Capabilities:
Create directory
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xba0]
sub rsp, 0xca0
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0xb90], rax
mov rax, qword [rcx + 0xc0]
xor r15d, r15d
mov rbx, rcx
mov r14d, r15d
test rax, rax
je 0x140022963
mov qword [rcx + 0xb8], r15
mov rax, qword [rax + 0x78]
test rax, rax
je 0x140022963
mov rax, qword [rax + 0x2a0]
mov qword [rcx + 0xb8], rax
test rax, rax
je 0x140022963
mov r8, qword [rcx + 0x10]
lea rax, [rbp + 0x390]
mov qword [rsp + 0x38], r15
or r9d, 0xffffffff
mov qword [rsp + 0x30], r15
xor edx, edx
mov dword [rsp + 0x28], 0x800
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
test eax, eax
je 0x14002295e
lea edx, [r15 + 0x5c]
lea rcx, [rbp + 0x390]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14002269f
lea edx, [rax + 0x2f]
lea rcx, [rbp + 0x390]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14002295e
add rdi, 1
je 0x14002295e
mov r13d, 0x104
lea rdx, [rbp + 0x280]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPath2A]
nop dword [rax + rax]
test eax, eax
je 0x14002295e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov esi, eax
lea r9, [rbp + 0x280]
mov ecx, esi
lea r8, str._stmp_05d.WMC
mov eax, 0x4f8b588f
mul esi
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, r13d
shr ecx, 0x10
imul ecx, ecx, 0x186a0
sub esi, ecx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], esi
call fcn.1400186c4
test eax, eax
js 0x14002295e
lea rax, [rbp + 0x70]
mov dword [rsp + 0x28], r13d
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x14002295e
lea rcx, [rbx + 0x50]
mov dword [rbx + 0x84], 1
lea rdx, [rbp + 0x70]
call fcn.14001d218
lea r9, [rbp + 0x280]
mov qword [rsp + 0x28], rdi
lea r8, str._stmp_05d.WMC_s
mov dword [rsp + 0x20], esi
mov edx, r13d
lea rcx, [rsp + 0x60]
call fcn.1400186c4
test eax, eax
js 0x14002295e
lea rax, [rbp + 0x70]
mov dword [rsp + 0x28], r13d
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x14002295e
xor edx, edx
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14002295e
lea rcx, [rbx + 0x38]
mov edi, 1
lea rdx, [rbp + 0x70]
call fcn.14001d218
mov dword [rbx + 0x80], edi
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400227fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbx + 0x60], r15
lea rcx, [rbp + 0x70]
call fcn.140019eb0
test eax, eax
je 0x140022895
mov qword [rsp + 0x30], r15
lea rcx, [rbp + 0x70]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140022895
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002287e
mov edx, dword [rsp + 0x50]
shl rdx, 0x20
mov ecx, eax
or rdx, rcx
cmp rdx, qword [rbx + 0xa8]
cmove edi, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test edi, edi
je 0x14002295e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov ecx, 0x64
mov dword [rbx + 0x68], 1
mov qword [rbx + 0x60], rax
call fcn.140018674
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov dword [rbx + 0x98], eax
cmp qword [rbx + 0x60], r15
je 0x14002295e
mov rcx, qword [rbx + 0xb8]
mov rax, qword [rcx]
movabs r10, 0xc21c264172560870
mov rax, qword [rax + 0x28]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], r15
lea rdx, [rbp + 0x390]
mov qword [rsp + 0x30], r15
mov r9d, 2
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x8000080
call qword [0x1400401a8]
mov r14d, eax
test eax, eax
js 0x14002295e
jmp 0x140022955
mov edx, 0x258
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, 0x102
jne 0x14002295e
cmp dword [rbx + 0x68], r15d
je 0x14002295e
mov rcx, rbx
call fcn.14002811c
mov r14d, eax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x14002292c
mov eax, r14d
jmp 0x140022968
mov eax, 0x80004005
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0xca0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret