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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x898]
sub rsp, 0x970
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov rsi, rcx
xor r12d, r12d
mov dword [rcx + 0x20], r12d
mov r14d, 1
mov r15d, r14d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x440]
call fcn.180233580
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
lea r8d, [r12 + 0xc]
lea rdx, [0x1802ace18]
lea rcx, [rbp - 0x30]
call fcn.18005c660
nop
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
lea r8d, [r12 + 2]
lea rdx, [0x1802b38b0]
lea rcx, [rbp - 0x50]
call fcn.18005c660
nop
lea r8d, [r12 + 2]
lea rdx, [0x1802b38b8]
lea rcx, [rbp - 0x50]
call fcn.18005ffc0
lea r8d, [r12 + 2]
lea rdx, [0x1802b38b0]
lea rcx, [rbp - 0x50]
call fcn.18005ffc0
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
mov r9d, 0xd0
lea rdx, str._s_d
lea rcx, [rbp - 0x10]
call fcn.18005c530
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
lea rdx, [rbp + 0x440]
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x180154620
lea rcx, [rbp + 0x440]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180154640
lea r8, [rbp - 0x10]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x180154650
lea r8, [rbp + 0x440]
mov edx, r14d
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x180154a3a
mov r15d, r12d
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r12
mov dword [rsp + 0x68], 0x18
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], r12d
mov edx, r14d
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1801546d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InitializeSecurityDescriptor___failed.Error__d_n
call fcn.18006efe0
nop
lea rdx, str.Everyone
lea rcx, [rsp + 0x40]
call fcn.18006e4a0
lea rdx, str.ALL_APPLICATION_PACKAGES
lea rcx, [rsp + 0x40]
call fcn.18006e4a0
lea rax, [rbp + 0x440]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5afc
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x68]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x1801549e4
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x650]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x230]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.180233580
lea rdx, [rbp + 0x650]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r13, [0x1802abf08]
mov qword [rsp + 0x20], r13
lea r9, str.WanNengWBInput
lea r8, [rbp + 0x650]
lea rdx, str._s_s_s_s
lea rcx, [rbp + 0x230]
call fcn.18005c530
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
lea rdx, [rbp + 0x20]
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x1801547c0
lea rcx, [rbp + 0x20]
sub rcx, 2
nop dword [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x1801547e0
movsd xmm0, qword [str.TEMP__]
movsd qword [rcx], xmm0
mov eax, dword [0x1802b38e0]
mov dword [rcx + 8], eax
movzx eax, word [0x1802b38e4]
mov word [rcx + 0xc], ax
lea rcx, [rbp + 0x20]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180154812
lea r8, [rbp - 0x10]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x180154830
mov dword [rsi + 0x20], r14d
lea r8, [rbp + 0x20]
mov edx, r14d
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x1801549e4
lea r8, [rbp + 0x20]
mov edx, r14d
lea ecx, [rax + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x1801549e4
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, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801549d5
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5afc
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x1801549ca
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, str.WanNengWBInput
lea r8, [rbp + 0x650]
lea rdx, str._s_s_s_s_d
lea rcx, [rbp + 0x230]
call fcn.18005c530
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, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801549d5
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r8, qword [rbp - 0x50]
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x10]
lea rdx, str._s_s_d
lea rcx, [rbp + 0x20]
call fcn.18005c530
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5afc
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x1801549d5
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1801549e4
lea rcx, [rsp + 0x40]
call fcn.18006e410
jmp 0x180154a9d
mov rbx, qword [rbp - 0x80]
mov rax, qword [rbp - 0x78]
cmp rbx, rax
je 0x180154a1e
mov rdi, qword [rbx]
test rdi, rdi
je 0x180154a11
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp - 0x78]
add rbx, 8
cmp rbx, rax
jne 0x1801549f1
mov rbx, qword [rbp - 0x80]
mov qword [rbp - 0x78], rbx
test rbx, rbx
je 0x180154a3a
mov r8, qword [rbp - 0x70]
sub r8, rbx
sar r8, 3
mov rdx, rbx
call fcn.18006ee90
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x180154a83
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x18], rax
test rax, rax
je 0x180154a75
mov qword [rsi + 0x48], rax
test r15d, r15d
jne 0x180154aa0
mov rcx, rax
call fcn.180151110
jmp 0x180154aa0
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi + 0x10], r12
mov ecx, 0x5afc
call fcn.1802037c4
mov qword [rbp - 0x58], rax
mov qword [rsi + 0x48], rax
mov rcx, rax
call fcn.180151110
mov r14d, r12d
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x180154aba
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.18005cac0
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x180154ae5
inc r8
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.18005cac0
mov eax, r14d
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.1802037a0
lea r11, [rsp + 0x970]
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