Function at 0x40edb0
Capabilities:
Check if file exists
Delete directory
Delete file
Delete registry key
Delete registry value
Get common file path
Move file
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55bc55
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x149c
call fcn.00539330
mov eax, dword [0x5b4450]
xor eax, esp
mov dword [esp + 0x1498], eax
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, esp
push eax
lea eax, [esp + 0x14b0]
mov dword fs:[0], eax
xor edi, edi
push edi
lea eax, [esp + 0x48]
push str.Tool_UninstallDelete
push eax
call fcn.0040ac70
add esp, 0xc
mov dword [esp + 0x14b8], edi
call fcn.00442c4d
mov ebx, dword [eax + 4]
push 0x206
lea edx, [esp + 0x882]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], edi
mov word [esp + 0x888], cx
call fcn.005373f0
add esp, 0xc
push 0x208
lea eax, [esp + 0x268]
push edi
push eax
call fcn.005373f0
add esp, 0xc
call fcn.0044033f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40ee75
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x14b8], 1
call fcn.0044033f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40eea7
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x14b8], 2
mov eax, dword [ebx + 0x140]
cmp dword [eax + 0x5c], edi
je 0x40f031
lea esi, [esp + 0x18]
call fcn.0040be70
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
mov eax, dword [esp + 0x18]
setne byte [esp + 0x3b]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ef01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x3b], 0
mov eax, dword [ebx + 0x140]
lea esi, [esp + 0x18]
je 0x40efa7
call fcn.0040be70
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x14bc], 3
call fcn.00401520
mov byte [esp + 0x14b8], 2
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 0x40ef55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x140]
lea esi, [esp + 0x18]
call fcn.0040be70
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x14bc], 4
call fcn.00401520
mov byte [esp + 0x14b8], 2
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 0x40f051
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f051
call fcn.0040be40
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x14bc], 5
call fcn.00401520
mov byte [esp + 0x14b8], 2
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 0x40efe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x140]
lea esi, [esp + 0x18]
call fcn.0040be40
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x14bc], 6
call fcn.00401520
mov byte [esp + 0x14b8], 2
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 0x40f051
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f051
lea ecx, [ebx + 0xe8]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401520
add ebx, 0xec
push ebx
lea ecx, [esp + 0x24]
call fcn.00401520
mov esi, dword [esp + 0x30]
cmp dword [esi - 0xc], edi
je 0x40f07d
lea edx, [esp + 0x14]
push edx
push 0xf003f
push edi
push str.SOFTWARECanonPrnUninst
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x40f0fd
push 1
push str.return___08x
lea eax, [esp + 0x4c]
push 2
push eax
call fcn.0040aed0
mov byte [esp + 0x14c8], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0bb
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov byte [esp + 0x14b8], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0df
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x14b8], 0xffffffff
call fcn.0040ae50
mov eax, 1
jmp 0x40fd2d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push esi
mov edi, 1
push eax
mov dword [esp + 0x3c], 0x208
mov dword [esp + 0x40], edi
call ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x2c]
push 0
push edi
push ecx
mov dword [esp + 0x3c], 0x208
call ebx
mov edx, dword [esp + 0x14]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x200
lea ecx, [esp + 0x12a8]
push 0
push ecx
mov dword [esp + 0x60], pe_nt_image_headers32
call fcn.005373f0
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x12b8]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x40f1c4
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
push 0xf003f
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f227
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push str.return___08x
lea edx, [esp + 0x4c]
push 2
push edx
call fcn.0040aed0
add edi, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x14b8], 1
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f0bb
mov ecx, dword [edi]
push edi
jmp 0x40f0b4
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.exePath
mov edi, 0x208
mov esi, 1
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
call ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x880]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push str.IcnPath
push ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
call ebx
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.00414fb0
mov eax, dword [esp + 0x1c]
add esp, 8
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, str.SOFTWARECanonPrnUninst
mov esi, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00415170
test eax, eax
je 0x40f2db
cmp dword [esp + 0x2c], 1
jne 0x40f2db
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40f2db
mov edi, str.SOFTWARECANON_
call fcn.00415170
test eax, eax
je 0x40f2db
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x34]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
push 0xf003f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f3cf
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push str.exePath
mov edi, 0x208
mov esi, 1
push edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
call ebx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x880]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.IcnPath
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
call ebx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push esi
push ecx
call fcn.00414fb0
mov edx, dword [esp + 0x1c]
add esp, 8
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, str.SOFTWARECanonPrnUninst
mov esi, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00415170
test eax, eax
je 0x40f3be
cmp dword [esp + 0x2c], 1
jne 0x40f3be
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
push esi
call ebx
test eax, eax
jne 0x40f3be
mov edi, str.SOFTWARECANON_
call fcn.00415170
test eax, eax
je 0x40f3be
push edi
push esi
call ebx
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov esi, dword [esp + 0x40]
mov edx, dword [esi + 0x140]
mov eax, dword [edx + 0x5c]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp + 0x18], 1
test eax, eax
jne 0x40f6e2
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa8e]
push ecx
mov word [esp + 0xa90], ax
call fcn.005373f0
add esp, 0xc
mov dword [esp + 0x14], 0
mov edx, dword [esi + 0xe8]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea eax, [esp + 0xa8c]
push str._sUninstall_s
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0xa90]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f4be
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.Publisher
push eax
call esi
mov ecx, dword [esp + 0x14]
push str.DisplayName
push ecx
call esi
mov edx, dword [esp + 0x14]
push str.DisplayVersion
push edx
call esi
mov eax, dword [esp + 0x14]
push str.DisplayIcon
push eax
call esi
mov ecx, dword [esp + 0x14]
push str.UninstallString
push ecx
call esi
lea edx, [esp + 0xa84]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [esp + 0x14]
push eax
call edi
call fcn.0040bea0
call fcn.004121d0
test eax, eax
jne 0x40f6e2
push 0x208
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.005373f0
add esp, 0xc
call fcn.0040fd60
mov esi, eax
push str.Canon_Printer_Uninstaller
push esi
push str._s_s
push esi
call ebx
add esp, 0x10
test esi, esi
je 0x40f5a1
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0xe8]
push str..LNK
push str.Uninstaller
push eax
push esi
lea ecx, [esp + 0x6c]
push str._s_s__s_s
push ecx
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x18
lea edx, [esp + 0x5c]
push edx
call edi
test eax, eax
je 0x40f54f
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f557
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x20]
push str..LNK
push str.Uninstaller
push ecx
push esi
lea edx, [esp + 0x6c]
push str._s_s__s_s
push edx
call ebx
add esp, 0x18
lea eax, [esp + 0x5c]
push eax
call edi
test eax, eax
je 0x40f5a1
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f599
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40f5a1
mov dword [esp + 0x1c], 0
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x208
lea edx, [esp + 0x60]
push 0
push edx
call fcn.005373f0
add esp, 0xc
push 0x208
lea eax, [esp + 0xe98]
push 0
push eax
call fcn.005373f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
lea ecx, [esp + 0x87c]
push ecx
lea edx, [esp + 0x60]
push edx
call esi
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.00401210
mov bl, 7
mov byte [esp + 0x14b8], bl
mov ecx, dword [esp + 0x2c]
push 0x5c
push ecx
call fcn.00534819
add esp, 8
test eax, eax
jne 0x40f617
or eax, 0xffffffff
jmp 0x40f61d
sub eax, dword [esp + 0x2c]
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x34]
call fcn.00413a00
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x14bc], 8
call fcn.00401520
mov byte [esp + 0x14b8], bl
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 0x40f665
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0xe98]
push edx
call esi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f6ba
cmp word [esp + 0x5c], 0
je 0x40f6ba
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f6b2
lea eax, [esp + 0xe94]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40f6ba
mov dword [esp + 0x18], 0
mov byte [esp + 0x14b8], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x208
lea ecx, [esp + 0x678]
push 0
push ecx
call fcn.005373f0
add esp, 0xc
push 0x208
lea edx, [esp + 0xc90]
push 0
push edx
call fcn.005373f0
add esp, 0xc
push 0x208
lea eax, [esp + 0x470]
push 0
push eax
call fcn.005373f0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x10a0]
push 0
push ecx
call fcn.005373f0
add esp, 0xc
push 0x104
lea edx, [esp + 0x10a0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x140]
cmp dword [ecx + 0x5c], 0
je 0x40f9e2
lea edx, [esp + 0x264]
push edx
lea ecx, [esp + 0x20]
call fcn.00401210
mov byte [esp + 0x14b8], 9
call fcn.0044033f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f79e
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x3c], edi
mov byte [esp + 0x14b8], 0xa
call fcn.0044033f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f7d0
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x4c], esi
mov bl, 0xb
mov byte [esp + 0x14b8], bl
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x40f80f
push pe_nt_image_headers32
lea ecx, [esp + 0x50]
call fcn.00401760
mov esi, dword [esp + 0x4c]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 3
or eax, ecx
jge 0x40f830
push 3
lea ecx, [esp + 0x40]
call fcn.00401760
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push pe_nt_image_headers32
push esi
push 3
push edi
push ecx
call fcn.00535da8
mov eax, dword [edi - 8]
add esp, 0x24
push eax
push edi
call fcn.005343a3
add esp, 8
test eax, eax
js 0x40fa36
cmp eax, dword [edi - 8]
jg 0x40fa36
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.005343a3
add esp, 8
test eax, eax
js 0x40fa36
cmp eax, dword [esi - 8]
jg 0x40fa36
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.00413a80
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x14bc], 0xc
call fcn.00401520
mov byte [esp + 0x14b8], bl
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f8ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x40fa36
cmp ecx, edx
jg 0x40fa36
cmp word [eax + ecx*2], 0x5c
jne 0x40f95c
lea eax, [edx - 1]
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x24]
call fcn.00413a00
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x14bc], 0xd
call fcn.00401520
mov byte [esp + 0x14b8], bl
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f958
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x268]
push 0x104
push ecx
call fcn.00535afa
add esi, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x14b8], 0xa
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40f996
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x14b8], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x14b8], 2
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 0x40f9e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x58], 0
je 0x40fa4e
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 0x5e0], 0
jne 0x40fa4e
lea edx, [esp + 0x109c]
push 0x5c
push edx
call fcn.00534819
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, eax
add esp, 8
lea eax, [esp + 0x264]
lea ecx, [esp + 0x674]
test esi, esi
je 0x40fa40
push esi
push eax
push 0x58b914
push ecx
call edi
add esp, 0x10
xor edx, edx
mov word [esi], dx
jmp 0x40fa73
push 0x80070057
call fcn.004010a0
push 0x58c7b0
push eax
push str._s_s
push ecx
jmp 0x40fa6e
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x58c7b0
lea edx, [esp + 0x268]
push edx
push str._s_s
lea eax, [esp + 0x680]
push eax
call edi
add esp, 0x10
push str.Uninst.ini
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0xc94]
push str._s_s
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add esp, 0x10
push 0x104
lea eax, [esp + 0x470]
push eax
call esi
push 0x104
lea ecx, [esp + 0x470]
push ecx
call esi
test eax, eax
jne 0x40fb3e
push eax
push str.return___08x
lea edx, [esp + 0x4c]
push 2
push edx
call fcn.0040aed0
mov byte [esp + 0x14c8], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fafb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x14b8], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x14b8], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x40fd2d
push str.UNINSTAL.tmp
lea ecx, [esp + 0x470]
push ecx
mov edx, ecx
push str._s_s
push edx
call edi
add esp, 0x10
push 0x80
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x46c]
push ecx
call ebx
lea edx, [esp + 0x674]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fbf9
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x5e0], 0
lea ecx, [esp + 0x674]
je 0x40fbd4
push ecx
call ebx
test eax, eax
jne 0x40fbf9
push eax
push str.return___08x
push 2
lea edx, [esp + 0x50]
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.00401500
lea ecx, [esp + 0x30]
call fcn.00401500
jmp 0x40fb23
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
lea eax, [esp + 0x470]
push eax
push ecx
call esi
test eax, eax
je 0x40fc19
push 4
push 0
lea edx, [esp + 0x474]
push edx
call esi
lea ecx, [esp + 0xc8c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fc29
lea edx, [esp + 0xc8c]
push edx
call ebx
mov esi, eax
jmp 0x40fc2e
push 0
push str.return___08x
push 2
lea eax, [esp + 0x50]
push eax
jmp 0x40fbb5
mov esi, 1
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x40]
call fcn.00401210
mov ebx, dword [esp + 0x40]
lea edx, [esp + 0x3c]
lea ecx, [ebx + 0x118]
push edx
mov byte [esp + 0x14bc], 0xe
call fcn.00401520
mov byte [esp + 0x14b8], 2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 1
jne 0x40fcb2
lea ecx, [ebx + 0x1d0]
push ecx
lea edx, [esp + 0x268]
push edx
lea eax, [ebx + 0x3d8]
push str._s_s
push eax
call edi
mov dword [ebx + 0x1cc], esi
mov esi, dword [esp + 0x28]
add esp, 0x10
push esi
push str.return___08x
lea ecx, [esp + 0x4c]
push 2
push ecx
call fcn.0040aed0
mov byte [esp + 0x14c8], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fcef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x14b8], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x14b8], 0xffffffff
call fcn.0040ae50
mov eax, esi
mov ecx, dword [esp + 0x14b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1498]
xor ecx, esp
call fcn.005337cb
mov esp, ebp
pop ebp
ret