Function at 0x1400047f0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1060
call fcn.140026030
sub rsp, rax
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor r15d, r15d
xor r12d, r12d
xor r14d, r14d
xor ebp, ebp
mov rax, rdx
mov qword [rsp + 0x40], rdx
lea r13d, [r15 + 0xa]
cmp ecx, 3
je 0x140004862
lea rdx, str.Wrong_number_of_args
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140004c18
mov rsi, qword [rdx + 8]
lea rdi, [0x14002864c]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
je 0x14000487f
lea rdx, str.2._arg_is_not__u
jmp 0x14000484a
mov rcx, qword [rax + 0x10]
lea rdx, [0x140028630]
call fcn.14000c6a0
mov rsi, rax
test rax, rax
jne 0x1400048a0
lea rdx, str.could_not_open_logfile
jmp 0x14000484a
mov ecx, 0x50
call fcn.140009a5c
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400048ca
lea rdx, str.Out_of_memory
xor ecx, ecx
call fcn.140002818
jmp 0x140004c18
lea rcx, [rsp + 0x50]
mov r8, rsi
mov edx, 0x1000
call fcn.14000d948
test rax, rax
je 0x14000498b
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
not rcx
dec rcx
movsxd rdi, ecx
mov rbx, rcx
movsx ecx, byte [rsp + rdi + 0x4f]
call fcn.14000ce1c
test eax, eax
je 0x140004922
lea rdi, [rsp + rdi + 0x4f]
dec rdi
dec ebx
movsx ecx, byte [rdi]
call fcn.14000ce1c
test eax, eax
jne 0x140004911
movsxd rax, ebx
lea rcx, [rsp + 0x50]
mov byte [rsp + rax + 0x50], bpl
call fcn.14001e984
mov rdi, qword [rsp + 0x38]
inc r15d
mov qword [r14 + rdi], rax
add r14, 8
cmp r15d, r13d
jl 0x14000496d
add r13d, 0xa
mov rcx, rdi
movsxd rdx, r13d
shl rdx, 3
call fcn.14000d874
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400048b7
lea rcx, [rsp + 0x50]
mov r8, rsi
mov edx, 0x1000
call fcn.14000d948
test rax, rax
jne 0x1400048e5
mov r14d, ebp
mov rcx, rsi
call fcn.14000ac40
movsxd r15, r15d
lea r9, [0x140004280]
mov rdx, r15
mov r8d, 8
mov rcx, rdi
call fcn.14000d570
lea r8, str.Please_confirm
lea rdx, str.Are_you_sure_you_want_to_remove_nthis_package_from_your_computer_
mov r9d, 0x24
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x140004c16
xor r13d, r13d
mov qword [section..data], 0xffffffff80000002
lea rbx, [0x140027838]
test r15, r15
jle 0x140004b7f
mov rdi, qword [rdi + r13*8]
mov rax, rbx
sub rdi, rbx
movzx ecx, byte [rax]
movzx edx, byte [rax + rdi]
sub ecx, edx
jne 0x140004a0d
inc rax
test edx, edx
jne 0x1400049fb
mov rdi, qword [rsp + 0x38]
test ecx, ecx
je 0x140004b73
mov rbx, qword [rdi + r13*8]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_Root_Key:__s
mov rcx, rbx
call fcn.14000aadc
cmp eax, 2
jne 0x140004a73
lea rsi, [rsp + 0x50]
lea rdi, str.HKEY_CURRENT_USER
lea ecx, [rax + 0x10]
repe cmpsb byte [rsi], byte [rdi]
jne 0x140004a5c
mov qword [section..data], 0xffffffff80000001
jmp 0x140004a69
call fcn.14000345c
test eax, eax
je 0x140004b97
mov rdi, qword [rsp + 0x38]
jmp 0x140004b73
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_Made_Dir:__s
mov rcx, rbx
call fcn.14000aadc
mov rcx, rbx
cmp eax, 2
jne 0x140004aa5
call fcn.1400046a4
test eax, eax
je 0x140004b17
inc r14d
jmp 0x140004b73
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_File_Copy:__s
call fcn.14000aadc
mov rcx, rbx
cmp eax, 2
jne 0x140004ad4
call fcn.14000466c
test eax, eax
je 0x140004b17
inc r12d
jmp 0x140004b73
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_File_Overwrite:__s
call fcn.14000aadc
mov rcx, rbx
cmp eax, 2
je 0x140004ac3
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_Reg_DB_Key:__s
call fcn.14000aadc
mov rcx, rbx
cmp eax, 2
jne 0x140004b2b
call fcn.140004448
jmp 0x140004b73
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140004b73
cmp eax, 3
je 0x140004b73
inc ebp
jmp 0x140004b73
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_Reg_DB_Value:__s
call fcn.14000aadc
mov rcx, rbx
cmp eax, 2
jne 0x140004b50
call fcn.140004558
jmp 0x140004b73
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_Run_Script:__s
call fcn.14000aadc
cmp eax, 2
jne 0x140004b73
mov rcx, rbx
call fcn.1400046dc
inc r13
cmp r13, r15
jl 0x1400049f1
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x140004bb5
inc r12d
jmp 0x140004bc8
call qword [sym.imp.USER32.dll_GetFocus]
mov r9d, 0x10
xor r8d, r8d
mov rcx, rax
lea rdx, str.You_do_not_seem_to_have_sufficient_access_rights_non_this_machine_to_uninstall_this_software
jmp 0x140004852
inc ebp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rdi + 0x10]
mov ecx, eax
call fcn.140002818
mov r9d, r14d
mov r8d, r12d
lea rcx, [rsp + 0x50]
test ebp, ebp
je 0x140004bea
lea rdx, str._d_files_and__d_directories_removed_n_d_files_or_directories_could_not_be_removed
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x140004bf7
lea rdx, str._d_files_and__d_directories_removed
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, str.Uninstall_Finished_
lea rdx, [rsp + 0x50]
mov r9d, 0x40
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call fcn.1400042a0
xor eax, eax
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1400091a0
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret