Function at 0x140049f20
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x308
mov qword [rsp + 0x2e8], 0xfffffffffffffffe
mov rax, qword [0x1401787a0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [rsp + 0x310]
add rcx, 0x590
lea rdx, [rsp + 0x40]
call fcn.140001d20
mov rcx, qword [rsp + 0x310]
add rcx, 0x590
lea rdx, str.RPDSETUP.INI
call fcn.140002d50
lea rcx, [rsp + 0x30]
call fcn.140003950
nop
mov rcx, qword [rsp + 0x310]
add rcx, 0x590
call fcn.1400018a0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140066e20
test eax, eax
jne 0x14004a048
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2a0], eax
mov r8d, dword [rsp + 0x2a0]
lea rdx, [0x14011c940]
lea rcx, str._s___return_FALSE__1__LastError_u_kGetShortPathName_fail._n
call fcn.140062f80
mov rdx, qword [rsp + 0x310]
mov rdx, qword [rdx + 0x590]
lea rcx, [0x14011c9b0]
call fcn.140062f80
mov dword [rsp + 0x20], 0x30
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14011c9d0]
mov rcx, qword [rsp + 0x310]
call fcn.140038300
mov dword [rsp + 0x2c0], 0
lea rcx, [rsp + 0x30]
call fcn.140003a70
mov eax, dword [rsp + 0x2c0]
jmp 0x14004a5bc
mov rcx, qword [rsp + 0x310]
add rcx, 0x590
lea rdx, [rsp + 0x30]
call fcn.140001970
mov rcx, qword [rsp + 0x310]
add rcx, 0x590
call fcn.1400018a0
lea rdx, [rsp + 0x160]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0xffffffffffffffff
je 0x14004a290
mov eax, dword [rsp + 0x160]
and eax, 0x10
cmp eax, 0x10
jne 0x14004a13b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2a4], eax
mov r8d, dword [rsp + 0x2a4]
lea rdx, [0x14011c9e8]
lea rcx, str._s___return_FALSE__2__LastError_u_not_directory._n
call fcn.140062f80
mov rdx, qword [rsp + 0x310]
mov rdx, qword [rdx + 0x590]
lea rcx, [0x14011ca50]
call fcn.140062f80
mov dword [rsp + 0x20], 0x30
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14011ca70]
mov rcx, qword [rsp + 0x310]
call fcn.140038300
mov dword [rsp + 0x2c4], 0
lea rcx, [rsp + 0x30]
call fcn.140003a70
mov eax, dword [rsp + 0x2c4]
jmp 0x14004a5bc
mov rcx, qword [rsp + 0x310]
add rcx, 0x590
call fcn.1400018a0
mov rcx, rax
call fcn.1400634d0
test eax, eax
jne 0x14004a1e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2a8], eax
mov r8d, dword [rsp + 0x2a8]
lea rdx, [0x14011ca88]
lea rcx, str._s___return_FALSE__3__LastError_u_kResetReadOnly_fail._n
call fcn.140062f80
mov rdx, qword [rsp + 0x310]
mov rdx, qword [rdx + 0x590]
lea rcx, [0x14011caf8]
call fcn.140062f80
mov dword [rsp + 0x20], 0x30
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14011cb18]
mov rcx, qword [rsp + 0x310]
call fcn.140038300
mov dword [rsp + 0x2c8], 0
lea rcx, [rsp + 0x30]
call fcn.140003a70
mov eax, dword [rsp + 0x2c8]
jmp 0x14004a5bc
mov rcx, qword [rsp + 0x310]
add rcx, 0x590
call fcn.1400018a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14004a290
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2ac], eax
mov r8d, dword [rsp + 0x2ac]
lea rdx, [0x14011cb30]
lea rcx, str._s___return_FALSE__4__LastError_u_DeleteFile_fail._n
call fcn.140062f80
mov rdx, qword [rsp + 0x310]
mov rdx, qword [rdx + 0x590]
lea rcx, str.__m_strInterfaceFile__s__n
call fcn.140062f80
mov dword [rsp + 0x20], 0x30
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14011cbb8]
mov rcx, qword [rsp + 0x310]
call fcn.140038300
mov dword [rsp + 0x2cc], 0
lea rcx, [rsp + 0x30]
call fcn.140003a70
mov eax, dword [rsp + 0x2cc]
jmp 0x14004a5bc
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x310]
add rcx, 0x238
call fcn.1400018a0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140066e20
test eax, eax
jne 0x14004a34d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b0], eax
mov r8d, dword [rsp + 0x2b0]
lea rdx, [0x14011cbd0]
lea rcx, str._s___return_FALSE__5__LastError_u_kGetShortPathName_fail._n
call fcn.140062f80
mov rdx, qword [rsp + 0x310]
mov rdx, qword [rdx + 0x238]
lea rcx, [0x14011cc40]
call fcn.140062f80
mov dword [rsp + 0x20], 0x30
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14011cc58]
mov rcx, qword [rsp + 0x310]
call fcn.140038300
mov dword [rsp + 0x2d0], 0
lea rcx, [rsp + 0x30]
call fcn.140003a70
mov eax, dword [rsp + 0x2d0]
jmp 0x14004a5bc
mov rcx, qword [rsp + 0x310]
add rcx, 0x238
lea rdx, [rsp + 0x30]
call fcn.140001970
mov rcx, qword [rsp + 0x310]
add rcx, 0x238
call fcn.1400018a0
lea rdx, [rsp + 0x160]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0xffffffffffffffff
je 0x14004a592
mov eax, dword [rsp + 0x160]
and eax, 0x10
cmp eax, 0x10
jne 0x14004a440
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b4], eax
mov r8d, dword [rsp + 0x2b4]
lea rdx, [0x14011cc70]
lea rcx, str._s___return_FALSE__6__LastError_u_same_name_directory_exist._n
call fcn.140062f80
mov rdx, qword [rsp + 0x310]
mov rdx, qword [rdx + 0x238]
lea rcx, [0x14011cce0]
call fcn.140062f80
mov dword [rsp + 0x20], 0x30
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14011ccf8]
mov rcx, qword [rsp + 0x310]
call fcn.140038300
mov dword [rsp + 0x2d4], 0
lea rcx, [rsp + 0x30]
call fcn.140003a70
mov eax, dword [rsp + 0x2d4]
jmp 0x14004a5bc
mov rcx, qword [rsp + 0x310]
add rcx, 0x238
call fcn.1400018a0
mov rcx, rax
call fcn.1400634d0
test eax, eax
jne 0x14004a4ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b8], eax
mov r8d, dword [rsp + 0x2b8]
lea rdx, [0x14011cd10]
lea rcx, str._s___return_FALSE__7__LastError_u_kResetReadOnly_fail._n
call fcn.140062f80
mov rdx, qword [rsp + 0x310]
mov rdx, qword [rdx + 0x238]
lea rcx, [0x14011cd80]
call fcn.140062f80
mov dword [rsp + 0x20], 0x30
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14011cd98]
mov rcx, qword [rsp + 0x310]
call fcn.140038300
mov dword [rsp + 0x2d8], 0
lea rcx, [rsp + 0x30]
call fcn.140003a70
mov eax, dword [rsp + 0x2d8]
jmp 0x14004a5bc
mov rcx, qword [rsp + 0x310]
add rcx, 0x238
call fcn.1400018a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14004a592
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2bc], eax
mov r8d, dword [rsp + 0x2bc]
lea rdx, str.CRP_SETUPApp::kDeleteInterfaceFileAndLogFile
lea rcx, str._s___return_FALSE__8__LastError_u_DeleteFile_fail._n
call fcn.140062f80
mov rdx, qword [rsp + 0x310]
mov rdx, qword [rdx + 0x238]
lea rcx, str.__m_strLogFile__s__n
call fcn.140062f80
mov dword [rsp + 0x20], 0x30
xor r9d, r9d
xor r8d, r8d
lea rdx, str.IDS_ERR_MAKEIFFILE
mov rcx, qword [rsp + 0x310]
call fcn.140038300
mov dword [rsp + 0x2dc], 0
lea rcx, [rsp + 0x30]
call fcn.140003a70
mov eax, dword [rsp + 0x2dc]
jmp 0x14004a5bc
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dword [rsp + 0x2e0], 1
lea rcx, [rsp + 0x30]
call fcn.140003a70
mov eax, dword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400c6ac0
add rsp, 0x308
ret