Function at 0x440aad
Capabilities:
Delete directory

Disassembly:
push 0x24
mov eax, 0x4e0c00
call fcn.004bffd8
push ecx
mov dword [ebp - 4], 4
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp + 8]
xor ebx, ebx
push str.PackUtils_RemoveApp__s_
push eax
mov dword [ebp - 0x18], ebx
call fcn.0046bd30
add esp, 0xc
call fcn.0043d95c
pop ecx
mov edi, str.Cannot_empty_base_dir_for__s
cmp dword [ebp + 0x28], ebx
je 0x440b31
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.__Removing_virt_Services
call fcn.004247eb
call fcn.0043d95c
pop ecx
push 1
mov ecx, 0x529f50
call fcn.00423ea1
pop ecx
cmp eax, ebx
je 0x440b31
cmp eax, 5
je 0x440b31
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push str.ScmDirectStopServices_Remove__failed
push eax
call fcn.0046bd30
pop ecx
pop ecx
call fcn.0043d95c
pop ecx
cmp dword [ebp + 0x24], ebx
je 0x440b95
push ecx
lea eax, [ebp + 0x18]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00424ed8
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp + 0x14]
mov dword [ebp - 0x28], esp
mov ecx, esp
push eax
call fcn.00424ed8
push ecx
mov byte [ebp - 4], 6
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.00424ed8
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.00424ed8
mov byte [ebp - 4], 4
call fcn.004406a8
add esp, 0x10
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str._s.VirtRegSyncExport
push eax
call fcn.0046bd30
add esp, 0xc
push dword [eax]
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0042201a
cmp esi, ebx
je 0x440bda
push 1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 0x18]
cmp dword [eax - 0xc], ebx
je 0x440c0f
cmp dword [ebp + 0x28], ebx
jne 0x440bf0
cmp dword [ebp + 0x2c], ebx
je 0x440d63
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x30], esp
push dword [ebp + 8]
push str.RemovingApp:AppID_s
push eax
call fcn.0046bd30
add esp, 0xc
call fcn.004275f5
pop ecx
pop ecx
cmp dword [ebp + 0x2c], ebx
je 0x440e0b
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], 2
jge 0x440e0b
call fcn.004ab443
push eax
lea ecx, [ebp - 0x10]
call fcn.0042249e
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
sub eax, ebx
je 0x440c46
dec eax
jne 0x440c52
lea eax, [ebp + 0x10]
jmp 0x440c49
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00424ef9
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
je 0x440d1d
push ecx
mov eax, esp
mov dword [ebp - 0x30], esp
push esi
push str.__Removing_files_from__s
push eax
call fcn.0046bd30
add esp, 0xc
call fcn.0043d95c
pop ecx
cmp dword [esi - 0xc], ebx
je 0x440d1d
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
call fcn.00424ed8
call fcn.0046dac0
pop ecx
cmp eax, ebx
jne 0x440ced
cmp dword [ebp - 0x18], 5
jl 0x440d31
cmp dword [ebp + 0x1c], 1
push dword [ebp + 8]
push edi
jl 0x440df9
lea eax, [ebp - 0x20]
push eax
call fcn.0046bd30
mov eax, dword [eax]
add esp, 0xc
push 2
push str.Fatal
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.0042201a
cmp ebx, 4
je 0x440d50
cmp ebx, 3
je 0x440d89
xor ebx, ebx
push 0x5c
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
call fcn.00424ed8
lea eax, [ebp - 0x24]
push eax
call fcn.0046c140
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042201a
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 4
call fcn.0042201a
inc dword [ebp - 0x14]
jmp 0x440c1b
inc dword [ebp - 0x18]
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 4
call fcn.0042201a
jmp 0x440ae7
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 4
call fcn.0042201a
xor ebx, ebx
jmp 0x440ae7
push ebx
push ecx
mov eax, esp
mov dword [ebp + 0x28], esp
push dword [ebp + 8]
push str.StoppingApp:AppID_s
push eax
call fcn.0046bd30
add esp, 0xc
call fcn.004275f5
pop ecx
pop ecx
xor esi, esi
jmp 0x440fc3
push dword [ebp + 8]
lea eax, [ebp + 0x28]
push edi
push eax
call fcn.0046bd30
add esp, 0xc
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 0x20]
push eax
call fcn.0042482f
mov ecx, dword [ebp + 0x28]
add ecx, 0xfffffff0
call fcn.0042201a
lea ecx, [esi - 0x10]
call fcn.0042201a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.0042201a
xor eax, eax
inc eax
call fcn.004c00b0
ret
lea eax, [ebp + 0x28]
push eax
call fcn.0046bd30
add esp, 0xc
mov byte [ebp - 4], 0xa
jmp 0x440d9d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x28], ebx
je 0x440f26
push dword [ebp + 8]
lea eax, [ebp + 0x24]
push str.SoftwareVOS_s
push eax
call fcn.0046bd30
add esp, 8
mov ecx, esp
mov dword [ebp - 0x30], esp
mov byte [ebp - 4], 0xb
push dword [eax]
push str.__Removing_registry_from__s
push ecx
call fcn.0046bd30
add esp, 0xc
call fcn.0043d95c
pop ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x24]
add ecx, 0xfffffff0
call fcn.0042201a
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, str.Cannot_delete_registry_key_for__s:__d
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push str.SoftwareVOS_s
push eax
call fcn.0046bd30
add esp, 0xc
mov byte [ebp - 4], 0xc
mov esi, dword [eax]
call fcn.0046d170
neg eax
sbb al, al
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
inc al
add ecx, 0xfffffff0
mov byte [ebp + 0x27], al
call fcn.0042201a
cmp byte [ebp + 0x27], 0
je 0x440f24
call edi
cmp dword [ebp + 0x1c], 1
push eax
push dword [ebp + 8]
push ebx
jl 0x440f12
lea eax, [ebp - 0x20]
push eax
call fcn.0046bd30
mov eax, dword [eax]
add esp, 0x10
push 2
push str.Fatal
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0042201a
cmp esi, 4
je 0x440e68
cmp esi, 3
jne 0x440f24
call edi
push eax
push dword [ebp + 8]
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.0046bd30
add esp, 0x10
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0x20]
push eax
call fcn.0042482f
mov ecx, dword [ebp + 0x28]
add ecx, 0xfffffff0
jmp 0x440db4
lea eax, [ebp + 0x28]
push eax
call fcn.0046bd30
add esp, 0x10
mov byte [ebp - 4], 0xe
jmp 0x440efe
xor ebx, ebx
cmp dword [ebp + 0x2c], ebx
je 0x440f5e
push ecx
lea eax, [ebp + 0xc]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
call fcn.00424ed8
call fcn.0046e420
pop ecx
cmp eax, ebx
je 0x440f5e
push dword [ebp + 8]
lea eax, [ebp + 0x28]
push str.Base_dir_could_not_be_emptied_for__s
push eax
call fcn.0046bd30
add esp, 0xc
mov byte [ebp - 4], 0xf
jmp 0x440efe
cmp dword [ebp + 0x28], ebx
je 0x440d82
push ecx
mov eax, esp
mov dword [ebp + 0x28], esp
push dword [ebp + 8]
push str.SoftwareVOS_s
push eax
call fcn.0046bd30
add esp, 0xc
mov edx, SysReAllocStringLen
call fcn.0046ce10
pop ecx
cmp eax, ebx
je 0x440d82
call edi
push eax
push dword [ebp + 8]
lea eax, [ebp + 0x28]
push str.Registry_key_could_not_be_emptied_for__s:__d
push eax
call fcn.0046bd30
add esp, 0x10
mov ecx, dword [ebp + 0x20]
push eax
mov byte [ebp - 4], 0x10
call fcn.0042482f
mov ecx, dword [ebp + 0x28]
add ecx, 0xfffffff0
call fcn.0042201a
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.0042201a
mov eax, esi
jmp 0x440df3