Function at 0x140047930
Capabilities:
Delete directory
Delete file
Set current directory

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa18]
sub rsp, 0xaf0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
mov r15, rcx
mov qword [rsp + 0x60], rcx
xor r8d, r8d
lea rdx, str.CUNINSTALLERDlg::FinishUninstall
lea rcx, [rsp + 0x70]
call fcn.140001190
nop
call fcn.140059f20
mov rsi, qword [rax + 8]
mov qword [rsp + 0x58], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, qword [r15 + 0x158]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
xor r13d, r13d
mov edi, r13d
test eax, eax
jle 0x1400479e1
nop
mov edx, edi
lea rcx, [r15 + 0x118]
call fcn.140066210
test rax, rax
je 0x1400479db
mov rcx, rax
call fcn.14005605c
inc edi
cmp edi, ebx
jl 0x1400479c0
cmp dword [0x140292e24], 1
jne 0x1400479f4
mov ecx, 1
call fcn.1400190d0
cmp dword [rsi + 0xa88], 1
jne 0x140047a02
call fcn.140019ee0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x5c0]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x70]
call fcn.14019d7c0
mov rdx, qword [rsi + 0x2a0]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, qword [rsi + 0x2a0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.uninst.ini
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.140056384
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047aa3
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x140047af6
movzx edi, cx
mov ecx, edi
call fcn.140056158
test rax, rax
je 0x140047bf1
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005730
mov rbx, qword [rsp + 0x50]
jmp 0x140047bf1
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140047b6e
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140047bf1
cmp dword [rdx + 0x10], eax
jge 0x140047b41
cmp dword [rbx - 0xc], eax
jge 0x140047b34
mov ecx, 0x80070057
call fcn.140004550
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x140047bf1
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140047b57
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
jmp 0x140047bf1
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x70]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x140047b8b
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140047bad
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140005ae0
mov rbx, qword [rsp + 0x50]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140047bd1
lea r8, [rbx + r12*2]
call fcn.140199418
jmp 0x140047bda
lea r8, [rbp - 0x70]
call fcn.140199918
cmp edi, dword [rbx - 0xc]
jg 0x140047eff
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r13 + rbx], ax
xor r13d, r13d
mov edx, 0x5c
mov rcx, rbx
call fcn.14019a074
test rax, rax
jne 0x140047c07
mov eax, esi
jmp 0x140047c0d
sub rax, rbx
sar rax, 1
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.1400121e0
nop
mov r14, qword [rax]
lea rcx, [r14 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140047d75
cmp dword [rdi + 0x10], 0
jl 0x140047c6c
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140047c6c
call fcn.140006db0
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140047c63
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
jmp 0x140047d70
movsxd r12, dword [r14 - 0x10]
test r12d, r12d
jne 0x140047cd2
mov r12, qword [rdi]
cmp dword [rdi + 8], 0
je 0x140047d75
cmp dword [rdi + 0x10], 0
jge 0x140047ca6
cmp dword [rbx - 0xc], 0
jge 0x140047c99
mov ecx, 0x80070057
call fcn.140004550
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x140047d75
mov eax, esi
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140047cbf
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x18]
add rax, 0x18
jmp 0x140047d70
test r14, r14
jne 0x140047ce2
mov ecx, 0x80070057
call fcn.140004550
int3
mov r15d, dword [rbx - 0x10]
mov r13, r14
sub r13, rbx
sar r13, 1
test r12d, r12d
jns 0x140047cff
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, r12d
or eax, ecx
jge 0x140047d23
mov edx, r12d
lea rcx, [rsp + 0x50]
call fcn.140005ae0
mov rbx, qword [rsp + 0x50]
lea rdi, [r12 + r12]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rdi
add rdx, rdx
cmp r13, r15
ja 0x140047d44
lea r8, [rbx + r13*2]
call fcn.140199418
jmp 0x140047d4c
mov r8, r14
call fcn.140199918
cmp r12d, dword [rbx - 0xc]
jg 0x140047d65
mov dword [rbx - 0x10], r12d
xor r13d, r13d
mov word [rdi + rbx], r13w
mov r15, qword [rsp + 0x60]
jmp 0x140047d75
mov ecx, 0x80070057
call fcn.140004550
int3
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140047d94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [r15 + 0x280], 1
jne 0x140047db8
lea rcx, [r15 + 0x270]
call fcn.140066d88
call fcn.14001f690
mov r11, qword [rsp + 0x58]
cmp dword [r11 + 0x778], 0
je 0x140047eb9
mov word [rbp + 0x1a0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a2]
call fcn.14019d7c0
mov word [rbp + 0x7d0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x7d2]
call fcn.14019d7c0
mov word [rbp + 0x3b0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x3b2]
call fcn.14019d7c0
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0x104
lea r9, [rbp + 0x3b0]
mov r8d, 0x104
lea rdx, [rbp + 0x7d0]
lea rcx, [rbp + 0x1a0]
call fcn.14019a34c
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x3b0]
lea r8, [rbp + 0x7d0]
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call fcn.14019bf84
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x70]
call fcn.140001370
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140047eee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x70]
call fcn.140001320
mov eax, 1
jmp 0x140047f0a
mov ecx, 0x80070057
call fcn.140004550
nop
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.140198b40
lea r11, [rsp + 0xaf0]
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