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

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
sub rsp, 0x980
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x970], rax
mov rbx, rcx
xor r12d, r12d
mov dword [rcx + 0x20], r12d
lea ebp, [r12 + 1]
mov word [r11 - 0x448], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [r11 - 0x446]
call fcn.412121c0
mov word [rsp + 0x100], r12w
xor eax, eax
mov qword [rsp + 0x102], rax
mov qword [rsp + 0x10a], rax
mov qword [rsp + 0x112], rax
mov qword [rsp + 0x11a], rax
mov dword [rsp + 0x122], eax
mov word [rsp + 0x126], ax
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], ax
xor r8d, r8d
lea edx, [rbp + 0xa]
lea rcx, [rsp + 0xd8]
call fcn.41022ab0
lea rcx, [rsp + 0xe0]
mov rdx, qword [rsp + 0xf8]
cmp rdx, 8
cmovae rcx, qword [rsp + 0xe0]
add rdx, rdx
lea r9d, [r12 + 0x16]
lea r8, [0x4129a368]
call fcn.412118b0
mov qword [rsp + 0xf0], 0xb
lea rax, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rax, qword [rsp + 0xe0]
mov word [rax + 0x16], r12w
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], r12
mov word [rsp + 0xb8], r12w
lea r9d, [r12 + 4]
lea r8, [0x412aa530]
lea edx, [rbp + 0xd]
lea rcx, [rsp + 0xb8]
call fcn.412118b0
mov qword [rsp + 0xc8], 2
lea rax, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rax, qword [rsp + 0xb8]
mov word [rax + 4], r12w
lea r8d, [r12 + 0xa]
lea rdx, str.smartcloud
lea rcx, [rsp + 0xb0]
call fcn.41022fe0
lea r8d, [r12 + 2]
lea rdx, [0x412aa530]
lea rcx, [rsp + 0xb0]
call fcn.41022fe0
lea r8, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae r8, qword [rsp + 0xe0]
lea rdx, [0x4129b194]
lea rcx, [rsp + 0x100]
call fcn.412122b0
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x550]
nop
movzx eax, word [rdx]
mov word [rcx], ax
add rdx, 2
add rcx, 2
test ax, ax
jne 0x4109c720
lea rdi, [rsp + 0x550]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x100]
xor ecx, ecx
nop
movzx eax, word [rdx + rcx]
mov word [rdi + rcx - 2], ax
add rcx, 2
test ax, ax
jne 0x4109c750
lea r8, [rsp + 0x550]
mov edx, 1
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x4109cc47
mov ebp, r12d
lea rcx, [rsp + 0x50]
call fcn.41029680
nop
mov r8d, 0x10000000
lea rdx, str.Everyone
lea rcx, [rsp + 0x50]
call fcn.410296d0
mov r8d, 0x10000000
lea rdx, str.ALL_APPLICATION_PACKAGES
lea rcx, [rsp + 0x50]
call fcn.410296d0
lea rcx, [rsp + 0x50]
call fcn.41029550
mov rdx, rax
lea rax, [rsp + 0x550]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5a54
xor r9d, r9d
lea r8d, [r9 + 4]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x4109cc3d
mov word [rsp + 0x760], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x762]
call fcn.412121c0
mov word [rsp + 0x340], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x342]
call fcn.412121c0
mov word [rsp + 0x130], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x132]
call fcn.412121c0
lea rdx, [rsp + 0x760]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x100]
mov qword [rsp + 0x28], rdx
lea r13, [0x4129a2a8]
mov qword [rsp + 0x20], r13
lea r9, str.SmartCloudInput
lea r8, [rsp + 0x760]
lea rdx, str._s_s_s_s
lea rcx, [rsp + 0x340]
call fcn.412122b0
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x130]
nop
movzx eax, word [rdx]
mov word [rcx], ax
add rdx, 2
add rcx, 2
test ax, ax
jne 0x4109c8d0
lea rdi, [rsp + 0x130]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.TEMP__]
mov qword [rdi - 2], rax
mov eax, dword [0x412aa4f8]
mov dword [rdi + 6], eax
movzx eax, word [0x412aa4fc]
mov word [rdi + 0xa], ax
lea rdi, [rsp + 0x130]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x100]
xor ecx, ecx
nop
movzx eax, word [rdx + rcx]
mov word [rdi + rcx - 2], ax
add rcx, 2
test ax, ax
jne 0x4109c930
mov dword [rbx + 0x20], 1
lea r8, [rsp + 0x130]
mov edx, 1
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x4109cc3d
lea r8, [rsp + 0x130]
lea edx, [rax + 1]
lea ecx, [rax + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x4109cc3d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x10000000
lea r8d, [rax + 3]
lea rcx, [rsp + 0x340]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x4109ca27
lea rcx, [rsp + 0x50]
call fcn.41029650
nop
cmp qword [rsp + 0xd0], 8
jb 0x4109c9ea
mov rcx, qword [rsp + 0xb8]
call fcn.41210d60
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], r12
mov word [rsp + 0xb8], 0
cmp qword [rsp + 0xf8], 8
jb 0x4109ca20
mov rcx, qword [rsp + 0xe0]
call fcn.41210d60
xor eax, eax
jmp 0x4109cd68
lea rcx, [rsp + 0x50]
call fcn.41029550
mov rdx, rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5a54
xor r9d, r9d
lea r8d, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x4109cc33
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, str.SmartCloudInput
lea r8, [rsp + 0x760]
lea rdx, str._s_s_s_s_d
lea rcx, [rsp + 0x340]
call fcn.412122b0
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x10000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x340]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x4109cb3f
lea rcx, [rsp + 0x50]
call fcn.41029650
nop
cmp qword [rsp + 0xd0], 8
jb 0x4109cb02
mov rcx, qword [rsp + 0xb8]
call fcn.41210d60
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], r12
mov word [rsp + 0xb8], 0
cmp qword [rsp + 0xf8], 8
jb 0x4109cb38
mov rcx, qword [rsp + 0xe0]
call fcn.41210d60
xor eax, eax
jmp 0x4109cd68
lea r8, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae r8, qword [rsp + 0xb8]
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x100]
lea rdx, str._s_s_d
lea rcx, [rsp + 0x130]
call fcn.412122b0
lea rcx, [rsp + 0x50]
call fcn.41029550
mov rdx, rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5a54
xor r9d, r9d
lea r8d, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x4109cc14
lea rcx, [rsp + 0x50]
call fcn.41029650
nop
cmp qword [rsp + 0xd0], 8
jb 0x4109cbd7
mov rcx, qword [rsp + 0xb8]
call fcn.41210d60
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], r12
mov word [rsp + 0xb8], 0
cmp qword [rsp + 0xf8], 8
jb 0x4109cc0d
mov rcx, qword [rsp + 0xe0]
call fcn.41210d60
xor eax, eax
jmp 0x4109cd68
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [rsp + 0x340]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4109cc3d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call fcn.41029650
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x4109ccea
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x4109ccdc
mov qword [rbx + 0x48], rax
test ebp, ebp
jne 0x4109cc84
mov rcx, rax
call fcn.41096830
nop
cmp qword [rsp + 0xd0], 8
jb 0x4109cc9c
mov rcx, qword [rsp + 0xb8]
call fcn.41210d60
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], r12
mov word [rsp + 0xb8], 0
cmp qword [rsp + 0xf8], 8
jb 0x4109ccd2
mov rcx, qword [rsp + 0xe0]
call fcn.41210d60
mov eax, 1
jmp 0x4109cd68
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], r12
mov ecx, 0x5a54
call fcn.41211580
mov qword [rsp + 0x40], rax
test rax, rax
je 0x4109cd08
mov rcx, rax
call fcn.4106efe0
jmp 0x4109cd0b
mov rax, r12
mov qword [rbx + 0x48], rax
mov rcx, rax
call fcn.41096830
nop
cmp qword [rsp + 0xd0], 8
jb 0x4109cd30
mov rcx, qword [rsp + 0xb8]
call fcn.41210d60
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], r12
mov word [rsp + 0xb8], 0
cmp qword [rsp + 0xf8], 8
jb 0x4109cd66
mov rcx, qword [rsp + 0xe0]
call fcn.41210d60
xor eax, eax
mov rcx, qword [rsp + 0x970]
xor rcx, rsp
call fcn.41211b80
lea r11, [rsp + 0x980]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret