Function at 0x140011944
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140026110]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov r14, rcx
xor ebx, ebx
xor ecx, ecx
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test r14, r14
jne 0x1400119a6
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140011b88
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x14001199f
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
mov r12, rax
test rax, rax
jne 0x1400119dc
mov ecx, 0x54f
jmp 0x140011993
mov r10d, 0x104
lea rax, [rsp + 0x20]
mov r9, r12
lea rdx, [rsp + 0x20]
mov ecx, r10d
sub r9, rax
mov r8, rbx
lea rax, [rcx + 0x7ffffefa]
test rax, rax
je 0x140011a1e
movzx eax, word [r9 + rdx]
test ax, ax
je 0x140011a1e
mov word [rdx], ax
inc r8
add rdx, 2
sub rcx, 1
jne 0x1400119f8
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
lea rdx, [rsp + 0x20]
mov word [rax], bx
lea rax, [r8 - 1]
cmovne rax, r8
lea rdx, [rdx + rax*2]
jne 0x140011a50
neg rcx
sbb edi, edi
not edi
and edi, 0x7a
mov esi, edi
jmp 0x140011b2d
mov esi, 0x5c
sub rdx, 2
cmp word [rdx], si
je 0x140011a68
lea rax, [rsp + 0x20]
cmp rdx, rax
jae 0x140011a55
mov word [rdx + 2], bx
mov ecx, r10d
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
jne 0x140011a91
mov dword [rsp + 0x20], 0x5c002e
mov word [rsp + 0x24], bx
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x140021cf0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140011abe
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x140011b2d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
test rax, rax
jne 0x140011ad9
call sub.KERNEL32.dll_GetLastError
jmp 0x140011ae9
mov r8, rax
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14001222c
lea rcx, [rsp + 0x20]
mov esi, eax
test eax, eax
jne 0x140011b26
lea r8d, [rax + 3]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x140011b2d
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov esi, eax
test eax, eax
jne 0x140011b1f
mov edi, 0x54f
mov esi, edi
lea rcx, [rsp + 0x20]
jmp 0x140011b28
mov edi, esi
call sub.KERNEL32.dll_DeleteFileW
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop dword [rax + rax]
mov rcx, r15
call fcn.140011c68
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test esi, esi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1400168f0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret