Function at 0x140054100
Capabilities:
Get common file path
Move file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7f8]
sub rsp, 0x8f8
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov r15, r9
mov r14, rcx
xor esi, esi
cmp dword [rcx + 0x4f8], esi
je 0x1400542ce
mov r12d, esi
call fcn.1400531f0
mov rcx, qword [r14 + 0x4d8]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov r15, rax
mov dword [r14 + 0x4fc], esi
mov dword [r14 + 0x18], esi
mov rcx, qword [r14 + 0x4d8]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + 0x78]
mov ecx, dword [r14 + 0x4f0]
xor edx, edx
div rcx
mov rsi, rax
xor edi, edi
test eax, eax
je 0x140054200
nop dword [rax]
cmp dword [r14 + 0x4fc], 0
jne 0x140054200
mov ecx, 0x140
call fcn.14018ef40
mov qword [rbp + 0x840], rax
test rax, rax
je 0x1400541c7
mov r8, qword [r14 + 0x530]
mov rdx, r14
mov rcx, rax
call fcn.140044e70
mov rbx, rax
jmp 0x1400541c9
xor ebx, ebx
mov r9, r15
mov r8, qword [r14 + 0x4d8]
mov edx, edi
mov rcx, rbx
call fcn.1400462e0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test eax, eax
je 0x1400541ed
inc r12d
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
inc edi
cmp edi, esi
jb 0x140054190
mov r15, qword [rbp + 0x858]
xor esi, esi
mov rax, qword [r15]
mov r8d, r12d
xor edx, edx
mov rcx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r9d, r9d
mov r8, qword [r14 + 0x30]
mov rdx, qword [r14 + 0x20]
lea rcx, [rbp - 0x70]
call fcn.14006a9c0
nop
mov r13d, esi
test r12d, r12d
je 0x1400545e6
lea rbx, vtable.CSABString.0
nop
cmp dword [r14 + 0x4fc], 0
jne 0x1400545e6
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], esi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rsp + 0x60], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rsp + 0x6c], 1
lea rsi, [r14 + 0x50]
mov qword [rsp + 0x70], rbx
test rsi, rsi
je 0x1400542da
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140054291
mov dword [rbp - 0x80], ebx
lea eax, [rbx + 1]
mov r15d, eax
mov ecx, eax
call fcn.140247068
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400542c5
mov r8d, r15d
mov rdx, rsi
mov rcx, rax
call fcn.1402496a0
mov r15, qword [rbp + 0x858]
jmp 0x1400542fe
mov r12d, dword [rbp + 0x858]
jmp 0x140054209
mov dword [rbp - 0x80], 0
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rdi, rax
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
xor ebx, ebx
mov dword [rbp - 0x7c], 1
lea rax, vtable.CSABString.0
mov qword [rsp + 0x40], rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rsi, rax
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov dword [rsp + 0x54], 1
test ebx, ebx
jne 0x140054530
lea rdx, [rbp - 0x30]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test rsi, rsi
je 0x140054361
mov rcx, rsi
call fcn.140247060
mov qword [rsp + 0x48], 0
lea rcx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140054370
mov dword [rsp + 0x50], eax
inc eax
mov esi, eax
mov ecx, eax
call fcn.140247068
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400543a4
mov r8d, esi
lea rdx, [rbp - 0x30]
mov rcx, rax
call fcn.1402496a0
xor esi, esi
lea r9, [rbp + 0x3e0]
xor r8d, r8d
lea rdx, [0x14029055c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400543d4
call fcn.140247060
mov qword [rsp + 0x60], rsi
lea rcx, [rbp + 0x3e0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400543e2
mov dword [rsp + 0x68], eax
lea ecx, [rax + 1]
call fcn.140247068
mov r10, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140054420
mov r8d, dword [rsp + 0x68]
inc r8d
lea rdx, [rbp + 0x3e0]
mov rcx, rax
call fcn.1402496a0
mov r10, qword [rsp + 0x60]
test rbx, rbx
je 0x140054432
mov rcx, rbx
call fcn.140247060
mov r10, qword [rsp + 0x60]
test rdi, rdi
je 0x140054444
mov rcx, rdi
call fcn.140247060
mov r10, qword [rsp + 0x60]
mov rcx, qword [r14 + 0x40]
mov rax, qword [rcx]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x80
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, 0x40000000
mov rdx, r10
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400545a8
mov rdx, qword [rsp + 0x60]
mov r8, rdx
lea rcx, [rbp - 0x70]
call fcn.14006abb0
mov rcx, qword [r14 + 0x40]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x38]
lea rbx, vtable.CSABString.0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], esi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rsp + 0x54], 1
mov rax, qword [r14]
mov rcx, qword [rbp + 0x850]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp + 0x848]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
nop
mov qword [rsp + 0x40], rbx
add dword [rsp + 0x54], 0xffffffff
jne 0x1400545af
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400545af
call fcn.140247060
jmp 0x1400545af
test rsi, rsi
je 0x140054544
mov rcx, rsi
call fcn.140247060
xor esi, esi
mov qword [rsp + 0x48], rsi
test rdi, rdi
je 0x140054584
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140054550
mov dword [rsp + 0x50], eax
inc eax
mov esi, eax
mov ecx, eax
call fcn.140247068
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400543a4
mov r8d, esi
mov rdx, rdi
jmp 0x14005439c
mov dword [rsp + 0x50], esi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rbx, rax
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
jmp 0x1400543a6
lea rbx, vtable.CSABString.0
mov rax, qword [r15]
mov r8d, r12d
mov edx, r13d
mov rcx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x58], rbx
add dword [rsp + 0x6c], 0xffffffff
jne 0x1400545da
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400545da
call fcn.140247060
inc r13d
cmp r13d, r12d
jb 0x140054240
mov rcx, r14
call fcn.1400491b0
nop
lea rcx, [rbp - 0x70]
call fcn.14006aa90
mov eax, 1
add rsp, 0x8f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret