Function at 0x140005810
Capabilities:
Create directory
Move file

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 - 0x40]
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r15, rcx
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], r13b
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov r9d, dword [rbp - 8]
inc r9d
mov r8d, dword [rbp - 4]
add r8d, 0x76c
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x14]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp - 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0xc]
mov dword [rsp + 0x20], eax
lea rdx, str._broken__d_02d_02d__02d_02d_02d
lea rcx, [rbp + 0x10]
call fcn.1400023f0
lea rsi, [r15 + 0xa0]
mov rdx, qword [rsi + 0x10]
lea rax, [rbp + 0x10]
mov rdi, 0xffffffffffffffff
mov rcx, rdi
nop
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400058d0
movabs r14, 0x7fffffffffffffff
mov rax, r14
sub rax, rdx
cmp rax, rcx
jb 0x140005dd5
mov r9, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400058ff
mov r9, qword [rsi]
mov qword [rsp + 0x30], rcx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x40]
call fcn.140009d20
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14000595a
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005955
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005955
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012fe3c
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x30], xmm1
movdqa xmm0, xmmword [0x14015e250]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call fcn.1400020c0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
test eax, eax
jne 0x140005d99
cmp qword [rsi + 0x18], 0xf
jbe 0x1400059af
mov rsi, qword [rsi]
mov edx, 0x2f
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
lea rbx, [rax + 1]
test rax, rax
cmove rbx, rsi
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
lea rsi, [rax + 1]
test rax, rax
cmove rsi, rbx
mov rax, r14
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 1
jb 0x140005ddb
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], 1
lea r12, [0x140158b18]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x60]
call fcn.140009d20
nop
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x140005a30
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.140008c90
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 4
lea rdx, str..end
lea rcx, [rsp + 0x60]
call fcn.140008c90
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rbx, qword [rsp + 0x40]
lea r9, [r15 + 0xa0]
mov rcx, qword [r9 + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 4
jb 0x140005de1
cmp qword [r9 + 0x18], 0xf
jbe 0x140005af5
mov r9, qword [r9]
mov qword [rsp + 0x30], 4
lea rax, str..end
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.140009d20
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1400020c0
nop
lea rcx, [rsp + 0x40]
call fcn.1400020c0
nop
lea rcx, [rsp + 0x60]
call fcn.1400020c0
nop
lea rcx, [rbp - 0x60]
call fcn.1400020c0
mov rax, r14
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 1
jb 0x140005de7
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x60]
call fcn.140009d20
nop
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140005ba0
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.140008c90
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 4
lea rsi, str..map
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140008c90
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdi, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdi, qword [rsp + 0x40]
lea r9, [r15 + 0xa0]
mov rcx, qword [r9 + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 4
jb 0x140005ded
cmp qword [r9 + 0x18], 0xf
jbe 0x140005c6a
mov r9, qword [r9]
mov qword [rsp + 0x30], 4
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.140009d20
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
or ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1400020c0
nop
lea rcx, [rsp + 0x40]
call fcn.1400020c0
nop
lea rcx, [rsp + 0x60]
call fcn.1400020c0
nop
lea rcx, [rbp - 0x60]
call fcn.1400020c0
test ebx, ebx
je 0x140005d99
cmp qword [r15 + 0x40], 0
je 0x140005d99
lea rax, [r15 + 0xa0]
mov rcx, qword [rax + 0x10]
sub r14, rcx
cmp r14, 5
jb 0x140005dcf
cmp qword [rax + 0x18], 0xf
jbe 0x140005cfd
mov rax, qword [rax]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 5
lea r9, str.nbdb
lea rcx, [rbp - 0x60]
call fcn.140009d20
nop
mov r8d, 0x19
lea rdx, str._files_could_not_be_moved
lea rcx, [rbp - 0x60]
call fcn.140008c90
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rcx, qword [r15 + 0x40]
test rcx, rcx
jne 0x140005d78
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x60]
call fcn.1400020c0
nop
lea rcx, [rbp - 0x60]
call fcn.1400020c0
nop
lea rcx, [rbp - 0x40]
call fcn.1400020c0
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14012fde0
lea r11, [rsp + 0x140]
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
call fcn.140001450
nop
call fcn.140001450
int3
call fcn.140001450
nop
call fcn.140001450
nop
call fcn.140001450
nop
call fcn.140001450
int3