Function at 0x1400046e8
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.140025f10
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 0x14000475a
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 0x140004b10
mov rsi, qword [rdx + 8]
lea rdi, [0x14002864c]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
je 0x140004777
lea rdx, str.2._arg_is_not__u
jmp 0x140004742
mov rcx, qword [rax + 0x10]
lea rdx, [0x140028630]
call fcn.14000c580
mov rsi, rax
test rax, rax
jne 0x140004798
lea rdx, str.could_not_open_logfile
jmp 0x140004742
mov ecx, 0x50
call fcn.14000993c
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400047c2
lea rdx, str.Out_of_memory
xor ecx, ecx
call fcn.14000270c
jmp 0x140004b10
lea rcx, [rsp + 0x50]
mov r8, rsi
mov edx, 0x1000
call fcn.14000d828
test rax, rax
je 0x140004883
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.14000ccfc
test eax, eax
je 0x14000481a
lea rdi, [rsp + rdi + 0x4f]
dec rdi
dec ebx
movsx ecx, byte [rdi]
call fcn.14000ccfc
test eax, eax
jne 0x140004809
movsxd rax, ebx
lea rcx, [rsp + 0x50]
mov byte [rsp + rax + 0x50], bpl
call fcn.14001e864
mov rdi, qword [rsp + 0x38]
inc r15d
mov qword [r14 + rdi], rax
add r14, 8
cmp r15d, r13d
jl 0x140004865
add r13d, 0xa
mov rcx, rdi
movsxd rdx, r13d
shl rdx, 3
call fcn.14000d754
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400047af
lea rcx, [rsp + 0x50]
mov r8, rsi
mov edx, 0x1000
call fcn.14000d828
test rax, rax
jne 0x1400047dd
mov r14d, ebp
mov rcx, rsi
call fcn.14000ab20
movsxd r15, r15d
lea r9, [0x140004178]
mov rdx, r15
mov r8d, 8
mov rcx, rdi
call fcn.14000d450
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 0x140004b0e
xor r13d, r13d
mov qword [section..data], 0xffffffff80000002
lea rbx, [0x140027838]
test r15, r15
jle 0x140004a77
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 0x140004905
inc rax
test edx, edx
jne 0x1400048f3
mov rdi, qword [rsp + 0x38]
test ecx, ecx
je 0x140004a6b
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.14000a9bc
cmp eax, 2
jne 0x14000496b
lea rsi, [rsp + 0x50]
lea rdi, str.HKEY_CURRENT_USER
lea ecx, [rax + 0x10]
repe cmpsb byte [rsi], byte [rdi]
jne 0x140004954
mov qword [section..data], 0xffffffff80000001
jmp 0x140004961
call fcn.140003350
test eax, eax
je 0x140004a8f
mov rdi, qword [rsp + 0x38]
jmp 0x140004a6b
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_Made_Dir:__s
mov rcx, rbx
call fcn.14000a9bc
mov rcx, rbx
cmp eax, 2
jne 0x14000499d
call fcn.14000459c
test eax, eax
je 0x140004a0f
inc r14d
jmp 0x140004a6b
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_File_Copy:__s
call fcn.14000a9bc
mov rcx, rbx
cmp eax, 2
jne 0x1400049cc
call fcn.140004564
test eax, eax
je 0x140004a0f
inc r12d
jmp 0x140004a6b
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_File_Overwrite:__s
call fcn.14000a9bc
mov rcx, rbx
cmp eax, 2
je 0x1400049bb
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_Reg_DB_Key:__s
call fcn.14000a9bc
mov rcx, rbx
cmp eax, 2
jne 0x140004a23
call fcn.140004340
jmp 0x140004a6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140004a6b
cmp eax, 3
je 0x140004a6b
inc ebp
jmp 0x140004a6b
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_Reg_DB_Value:__s
call fcn.14000a9bc
mov rcx, rbx
cmp eax, 2
jne 0x140004a48
call fcn.140004450
jmp 0x140004a6b
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, str._d_Run_Script:__s
call fcn.14000a9bc
cmp eax, 2
jne 0x140004a6b
mov rcx, rbx
call fcn.1400045d4
inc r13
cmp r13, r15
jl 0x1400048e9
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x140004aad
inc r12d
jmp 0x140004ac0
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 0x14000474a
inc ebp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rdi + 0x10]
mov ecx, eax
call fcn.14000270c
mov r9d, r14d
mov r8d, r12d
lea rcx, [rsp + 0x50]
test ebp, ebp
je 0x140004ae2
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 0x140004aef
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.140004198
xor eax, eax
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140009080
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