Function at 0x140011ad0
Capabilities:
Create directory
Delete file
Get common file path
Move file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a8]
sub rsp, 0x4a8
mov rax, qword [0x1400380d8]
xor rax, rsp
mov qword [rbp + 0x390], rax
xor eax, eax
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rax
mov r14, r9
mov qword [rsp + 0x58], rax
mov r15, r8
mov qword [rsp + 0x60], rax
mov r13, rdx
mov dword [rsp + 0x40], edi
mov r12, rcx
or rsi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1400107bc
mov ecx, 0x104
cmp dword [rsp + 0x40], edi
je 0x140011c7f
lea rdx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140011b79
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011da5
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x14002ab88]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140011bb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011da5
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140011be0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011da5
lea rcx, [rsp + 0x50]
call fcn.140011890
test eax, eax
jne 0x140011c0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011da5
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140011c45
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011da5
lea rcx, [rsp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140011c4e
cmp word [rsp + rax*2 + 0x6e], 0x5c
je 0x140011caa
or r9, 0xffffffffffffffff
lea r8, [0x140029d20]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140018c70
mov ebx, eax
test eax, eax
jmp 0x140011ca4
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140011caa
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011da5
cmp rsi, 0xffffffffffffffff
jne 0x140011d71
mov qword [rsp + 0x28], r13
lea r8, [rsp + 0x70]
mov r9, r12
mov dword [rsp + 0x20], edi
lea rdx, str._s_s_05d._s
lea rcx, [rsp + 0x48]
call fcn.1400108f0
mov ebx, eax
test eax, eax
js 0x140011da5
and qword [rsp + 0x30], 0
lea eax, [rsi + 2]
mov rcx, qword [rsp + 0x48]
mov r8d, eax
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140011d3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x140011d34
xor ebx, ebx
jmp 0x140011d63
test ebx, ebx
js 0x140011da5
jmp 0x140011d63
mov rcx, qword [rsp + 0x48]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [rsp + 0x40], 0
je 0x140011d63
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
inc edi
cmp edi, 0x3e8
jl 0x140011caa
xor edi, edi
test r14, r14
je 0x140011d7b
mov qword [r14], rsi
test r15, r15
je 0x140011d8d
mov rax, qword [rsp + 0x48]
mov qword [r15], rax
mov qword [rsp + 0x48], rdi
test ebx, ebx
js 0x140011d96
test r14, r14
jne 0x140011da5
cmp rsi, 0xffffffffffffffff
je 0x140011da5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140011db4
call fcn.140010e7c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140014bd0
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret