Function at 0x433790
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5668e8
mov eax, dword fs:[0]
push eax
sub esp, 0xe78
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0xe70], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0xe88]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0x24]
push str.CUNINSTALLERApp::ExitInstance
push eax
mov ebx, ecx
call fcn.00401190
add esp, 0xc
mov dword [esp + 0xe90], 0
cmp dword [ebx + 0x868], 0
je 0x433801
xor edi, edi
call fcn.00419080
mov eax, dword [ebx + 0x160]
lea esi, [ebx + 0x160]
mov ecx, 0x5988ec
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433838
test dx, dx
je 0x433834
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433838
add eax, 4
add ecx, 4
test dx, dx
jne 0x433812
xor eax, eax
jmp 0x43383d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4338e9
push 0x5988ec
lea ecx, [esp + 0x18]
call fcn.00404f00
push str.uninst.ini
lea ecx, [esp + 0x1c]
push esi
push ecx
mov byte [esp + 0xe9c], 1
call fcn.004105a0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xe94], 2
call fcn.004063a0
mov byte [esp + 0xe90], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4338ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [esp + 0xe90], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4338e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0041b970
mov ecx, dword [ebx + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebx + 0x144], 0
je 0x433981
call fcn.00448c3f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43391e
push 0x80004005
call fcn.00404160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x39
mov byte [esp + 0xe94], 3
call fcn.00448b35
test eax, eax
je 0x433951
push 0x39
push eax
lea ecx, [esp + 0x1c]
call fcn.00405160
mov esi, dword [esp + 0x14]
mov edi, dword [ebx + 0x144]
push esi
call fcn.00410a70
lea eax, [esi - 0x10]
mov byte [esp + 0xe90], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebx + 0x644]
xor edi, edi
cmp esi, edi
je 0x4339ac
call fcn.0044b52d
mov dword [eax + 0xc], esi
mov eax, dword [ebx + 0x648]
cmp eax, edi
je 0x4339ac
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx + 0x648], edi
cmp dword [ebx + 0x5e8], edi
je 0x4339da
mov eax, dword [ebx + 0x5f0]
cmp eax, edi
je 0x4339c3
mov ecx, dword [eax + 4]
call ecx
mov edx, dword [ebx + 0x5e8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x4339da
mov dword [ebx + 0x5e8], edi
cmp dword [ebx + 0x1c8], 1
jne 0x433d4e
mov eax, dword [ebx + 0x884]
cmp dword [eax - 0xc], 0
lea edi, [ebx + 0x884]
jge 0x4339fe
or eax, 0xffffffff
jmp 0x433a19
push 0x595ff0
push eax
call fcn.0053d6a8
add esp, 8
test eax, eax
jne 0x433a15
or eax, 0xffffffff
jmp 0x433a19
sub eax, dword [edi]
sar eax, 1
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x433bef
push 0x208
lea edx, [esp + 0xc78]
push 0
push edx
call fcn.00541d20
add esp, 0xc
push 0x208
lea eax, [esp + 0xa70]
push 0
push eax
call fcn.00541d20
add esp, 0xc
push 0x208
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.00541d20
add esp, 0xc
push 0
push 0
push 0
push 0
push 0x104
lea edx, [esp + 0xa80]
push edx
push 0x104
lea eax, [esp + 0xc90]
push eax
lea esi, [ebx + 0x3d4]
push esi
call fcn.0053e03b
add esp, 0x24
push 0
push 0
lea ecx, [esp + 0xa74]
push ecx
lea edx, [esp + 0xc80]
push edx
lea eax, [esp + 0x54]
push 0x104
push eax
call fcn.0053f63d
add esp, 0x18
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [esp + 0x28]
call fcn.00456c9a
push edi
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0xe9c], 4
call fcn.00434560
add esp, 0xc
mov byte [esp + 0xe90], 5
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.00456d41
mov edi, eax
mov byte [esp + 0xe90], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433b37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x433bd6
nop
lea ecx, [esp + 0x28]
call fcn.004568ec
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x2c]
call eax
test eax, eax
jne 0x433bce
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00456f84
mov eax, dword [eax]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x433b97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00456f84
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x433bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x433b40
lea ecx, [esp + 0x28]
mov byte [esp + 0xe90], 0
call fcn.00456ccc
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x433c07
push 0x20
lea esi, [ebx + 0x3d4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x666]
push edx
mov word [esp + 0x668], cx
call fcn.00541d20
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x86e]
push ecx
mov word [esp + 0x870], ax
call fcn.00541d20
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x256]
push eax
mov word [esp + 0x258], dx
call fcn.00541d20
add esp, 0xc
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [esp + 0x878]
push ecx
push 0x104
lea edx, [esp + 0x678]
push edx
push esi
call fcn.0053e03b
add esp, 0x24
push 0
push 0
lea eax, [esp + 0x86c]
push eax
lea ecx, [esp + 0x668]
push ecx
lea edx, [esp + 0x25c]
push 0x104
push edx
call fcn.0053f63d
add esp, 0x18
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp dword [esp + 0x1c], 0
je 0x433d21
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x4e]
push edx
mov word [esp + 0x50], cx
call fcn.00541d20
add esp, 0xc
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.UninstLocale.ini
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x20
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x44]
push ecx
call edi
push str.InsCmn.dll
lea edx, [esp + 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x20
lea eax, [esp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x24c]
push ecx
call edi
mov eax, dword [ebx + 0x118]
sub eax, 0x10
push eax
call fcn.00406410
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], esi
push 0x5c
push esi
mov byte [esp + 0xe98], 6
call fcn.0053dda2
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x5c
push esi
call fcn.0053dda2
add esp, 8
test eax, eax
jne 0x433d95
or eax, 0xffffffff
jmp 0x433d99
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.00410460
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xe94], 7
call fcn.004063a0
mov byte [esp + 0xe90], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433de2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call esi
push 0x208
lea ecx, [esp + 0x458]
push 0
push ecx
call fcn.00541d20
add esp, 0xc
lea ecx, [esp + 0x454]
call fcn.0041abb0
lea edx, [esp + 0x454]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.Canon_
lea eax, [esp + 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x454]
push ecx
call esi
mov eax, dword [ebx + 0x5e0]
test eax, eax
je 0x433e5c
mov edx, dword [ebx + 0x148]
push 0
push edx
push 0x8001
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, ebx
call fcn.004572c7
mov esi, eax
test esi, esi
jne 0x433e6f
mov esi, dword [ebx + 0x148]
push esi
push str.return___08x
lea eax, [esp + 0x28]
push 2
push eax
call fcn.00401410
lea eax, [edi - 0x10]
add esp, 0x10
mov byte [esp + 0xe90], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433ea8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov dword [esp + 0xe90], 0xffffffff
call fcn.00401370
mov eax, esi
mov ecx, dword [esp + 0xe88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe70]
xor ecx, esp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret