Function at 0x435611
Capabilities:
Delete directory

Disassembly:
push 0x24
mov eax, 0x4d1083
call fcn.004b17f0
push ecx
mov dword [ebp - 4], 4
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp + 8]
push str.PackUtils_RemoveApp__s_
push eax
call fcn.00466a00
add esp, 0xc
call fcn.00432c71
pop ecx
mov edi, str.Cannot_empty_base_dir_for__s
xor ebx, ebx
cmp dword [ebp + 0x28], ebx
je 0x435688
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.__Removing_virt_Services
call fcn.0042341f
call fcn.00432c71
pop ecx
push 1
call fcn.00422d95
pop ecx
test eax, eax
je 0x435688
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push str.ScmDirectStopServices_Remove__failed
push eax
call fcn.00466a00
pop ecx
pop ecx
call fcn.00432c71
pop ecx
cmp dword [ebp + 0x24], ebx
je 0x4356ec
push ecx
lea eax, [ebp + 0x18]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00423aca
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp + 0x14]
mov dword [ebp - 0x28], esp
mov ecx, esp
push eax
call fcn.00423aca
push ecx
mov byte [ebp - 4], 6
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.00423aca
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.00423aca
mov byte [ebp - 4], 4
call fcn.004351e2
add esp, 0x10
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str._s.VirtRegSyncExport
push eax
call fcn.00466a00
add esp, 0xc
push dword [eax]
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0042101a
cmp esi, ebx
je 0x435731
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 0x435766
cmp dword [ebp + 0x28], ebx
jne 0x435747
cmp dword [ebp + 0x2c], ebx
je 0x4358c6
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.00466a00
add esp, 0xc
call fcn.00425da4
pop ecx
pop ecx
cmp dword [ebp + 0x2c], ebx
je 0x43596e
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], 3
jge 0x43596e
call fcn.0049d1fb
push eax
lea ecx, [ebp - 0x10]
call fcn.0042149e
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
sub eax, ebx
je 0x4357d8
dec eax
je 0x4357a0
dec eax
jne 0x4357e4
lea eax, [ebp + 0x10]
jmp 0x4357db
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
call fcn.00423aca
lea eax, [ebp - 0x1c]
push eax
call fcn.00436693
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.00423aeb
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0042101a
jmp 0x4357e4
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00423aeb
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
je 0x4358a1
push ecx
mov eax, esp
mov dword [ebp - 0x30], esp
push esi
push str.__Removing_files_from__s
push eax
call fcn.00466a00
add esp, 0xc
call fcn.00432c71
pop ecx
cmp dword [esi - 0xc], ebx
je 0x4358a1
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
call fcn.00423aca
call fcn.00468970
pop ecx
cmp eax, ebx
jne 0x435871
cmp dword [ebp + 0x1c], 1
push dword [ebp + 8]
push edi
jl 0x43595c
lea eax, [ebp - 0x20]
push eax
call fcn.00466a00
mov eax, dword [eax]
add esp, 0xc
push 2
push 0x4de6b8
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.0042101a
cmp ebx, 4
je 0x4358b5
cmp ebx, 3
je 0x4358ec
xor ebx, ebx
push 0x5c
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
call fcn.00423aca
lea eax, [ebp - 0x24]
push eax
call fcn.00467040
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042101a
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 4
call fcn.0042101a
inc dword [ebp - 0x14]
jmp 0x435772
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 4
call fcn.0042101a
jmp 0x435646
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.00466a00
add esp, 0xc
call fcn.00425da4
pop ecx
pop ecx
xor esi, esi
jmp 0x435b26
push dword [ebp + 8]
lea eax, [ebp + 0x28]
push edi
push eax
call fcn.00466a00
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp + 0x20]
push eax
call fcn.00423463
mov ecx, dword [ebp + 0x28]
add ecx, 0xfffffff0
call fcn.0042101a
lea ecx, [esi - 0x10]
call fcn.0042101a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.0042101a
xor eax, eax
inc eax
call fcn.004b18c8
ret
lea eax, [ebp + 0x28]
push eax
call fcn.00466a00
add esp, 0xc
mov byte [ebp - 4], 0xb
jmp 0x435900
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x28], ebx
je 0x435a89
push dword [ebp + 8]
lea eax, [ebp + 0x24]
push str.SoftwareVOS_s
push eax
call fcn.00466a00
add esp, 8
mov ecx, esp
mov dword [ebp - 0x30], esp
mov byte [ebp - 4], 0xc
push dword [eax]
push str.__Removing_registry_from__s
push ecx
call fcn.00466a00
add esp, 0xc
call fcn.00432c71
pop ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x24]
add ecx, 0xfffffff0
call fcn.0042101a
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.00466a00
add esp, 0xc
mov byte [ebp - 4], 0xd
mov esi, dword [eax]
call fcn.00468170
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.0042101a
cmp byte [ebp + 0x27], 0
je 0x435a87
call edi
cmp dword [ebp + 0x1c], 1
push eax
push dword [ebp + 8]
push ebx
jl 0x435a75
lea eax, [ebp - 0x20]
push eax
call fcn.00466a00
mov eax, dword [eax]
add esp, 0x10
push 2
push 0x4de6b8
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0042101a
cmp esi, 4
je 0x4359cb
cmp esi, 3
jne 0x435a87
call edi
push eax
push dword [ebp + 8]
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.00466a00
add esp, 0x10
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp + 0x20]
push eax
call fcn.00423463
mov ecx, dword [ebp + 0x28]
add ecx, 0xfffffff0
jmp 0x435917
lea eax, [ebp + 0x28]
push eax
call fcn.00466a00
add esp, 0x10
mov byte [ebp - 4], 0xf
jmp 0x435a61
xor ebx, ebx
cmp dword [ebp + 0x2c], ebx
je 0x435ac1
push ecx
lea eax, [ebp + 0xc]
mov dword [ebp + 0x2c], esp
mov ecx, esp
push eax
call fcn.00423aca
call fcn.004693c0
pop ecx
cmp eax, ebx
je 0x435ac1
push dword [ebp + 8]
lea eax, [ebp + 0x28]
push str.Base_dir_could_not_be_emptied_for__s
push eax
call fcn.00466a00
add esp, 0xc
mov byte [ebp - 4], 0x10
jmp 0x435a61
cmp dword [ebp + 0x28], ebx
je 0x4358e5
push ecx
mov eax, esp
mov dword [ebp + 0x28], esp
push dword [ebp + 8]
push str.SoftwareVOS_s
push eax
call fcn.00466a00
add esp, 0xc
mov edx, SysReAllocStringLen
call fcn.00467df0
pop ecx
cmp eax, ebx
je 0x4358e5
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.00466a00
add esp, 0x10
mov ecx, dword [ebp + 0x20]
push eax
mov byte [ebp - 4], 0x11
call fcn.00423463
mov ecx, dword [ebp + 0x28]
add ecx, 0xfffffff0
call fcn.0042101a
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, esi
jmp 0x435956