Function at 0x417980
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 0x564a15
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x149c
call fcn.00542ad0
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x1498], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
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.00401190
add esp, 0xc
push 0x208
mov dword [esp + 0x14bc], edi
lea ecx, [esp + 0x60]
push edi
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.00541d20
add esp, 0xc
call fcn.0044b52d
mov ebx, dword [eax + 4]
push 0x206
lea eax, [esp + 0x882]
xor edx, edx
push edi
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], edi
mov word [esp + 0x888], dx
call fcn.00541d20
add esp, 0xc
push 0x208
lea ecx, [esp + 0x60]
push edi
push ecx
call fcn.00541d20
add esp, 0xc
call fcn.00448c3f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x417a65
push 0x80004005
call fcn.00404160
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.00448c3f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x417a97
push 0x80004005
call fcn.00404160
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 0x417c21
lea esi, [esp + 0x18]
call fcn.00414820
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 0x417af1
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 0x417b97
call fcn.00414820
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x14bc], 3
call fcn.004063a0
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 0x417b45
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.00414820
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x14bc], 4
call fcn.004063a0
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 0x417c41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x417c41
call fcn.004147f0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x14bc], 5
call fcn.004063a0
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 0x417bd6
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.004147f0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x14bc], 6
call fcn.004063a0
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 0x417c41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x417c41
lea ecx, [ebx + 0xe8]
push ecx
lea ecx, [esp + 0x34]
call fcn.004063a0
add ebx, 0xec
push ebx
lea ecx, [esp + 0x24]
call fcn.004063a0
mov esi, dword [esp + 0x30]
cmp dword [esi - 0xc], edi
je 0x417c6d
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 0x417ced
push 1
push str.return___08x
lea eax, [esp + 0x4c]
push 2
push eax
call fcn.00401410
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 0x417cab
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 0x417ccf
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.00401370
mov eax, 1
jmp 0x418924
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x60]
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 + 0x60]
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
push 0x200
lea edx, [esp + 0x12a8]
push 0
push edx
call fcn.00541d20
mov eax, dword [esp + 0x20]
add esp, 0xc
push esi
push eax
mov dword [esp + 0x5c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x14]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x14]
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 0x417dae
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 0x417e11
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.00401410
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 0x417cab
mov ecx, dword [edi]
push edi
jmp 0x417ca4
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x60]
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.0041dd40
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.0041df30
test eax, eax
je 0x417ec2
cmp dword [esp + 0x2c], 1
jne 0x417ec2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x417ec2
mov edi, str.SOFTWARECANON_
call fcn.0041df30
test eax, eax
je 0x417ec2
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 0x417fb3
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x60]
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.0041dd40
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.0041df30
test eax, eax
je 0x417fa2
cmp dword [esp + 0x2c], 1
jne 0x417fa2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
push esi
call ebx
test eax, eax
jne 0x417fa2
mov edi, str.SOFTWARECANON_
call fcn.0041df30
test eax, eax
je 0x417fa2
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 + 0x3c]
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 0x4182ee
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa8e]
push ecx
mov word [esp + 0xa90], ax
call fcn.00541d20
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 0x4180a2
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
push 0x208
lea ecx, [esp + 0x268]
push 0
push ecx
call fcn.00541d20
add esp, 0xc
call fcn.00414850
call fcn.0041aea0
test eax, eax
jne 0x4182ee
call fcn.00418950
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 0x41819b
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0xe8]
push str..LNK
push str.Uninstaller
push eax
push esi
lea ecx, [esp + 0x274]
push str._s_s__s_s
push ecx
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x18
lea edx, [esp + 0x264]
push edx
call edi
test eax, eax
je 0x418140
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x418148
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 + 0x274]
push str._s_s__s_s
push edx
call ebx
add esp, 0x18
lea eax, [esp + 0x264]
push eax
call edi
test eax, eax
je 0x41819b
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x418193
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41819b
mov dword [esp + 0x1c], 0
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x208
lea edx, [esp + 0xe98]
push 0
push edx
call fcn.00541d20
add esp, 0xc
push 0x208
lea eax, [esp + 0x268]
push 0
push eax
call fcn.00541d20
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
lea ecx, [esp + 0x87c]
push ecx
lea edx, [esp + 0x268]
push edx
call esi
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x30]
call fcn.00404f00
mov bl, 7
mov byte [esp + 0x14b8], bl
mov ecx, dword [esp + 0x2c]
push 0x5c
push ecx
call fcn.0053dda2
add esp, 8
test eax, eax
jne 0x41821a
or eax, 0xffffffff
jmp 0x418220
sub eax, dword [esp + 0x2c]
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x34]
call fcn.00410460
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x14bc], 8
call fcn.004063a0
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 0x418268
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 + 0x264]
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4182c6
cmp word [esp + 0x264], 0
je 0x4182c6
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4182be
lea eax, [esp + 0xe94]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4182c6
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 0x4182ee
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.00541d20
add esp, 0xc
push 0x208
lea edx, [esp + 0xc90]
push 0
push edx
call fcn.00541d20
add esp, 0xc
push 0x208
lea eax, [esp + 0x470]
push 0
push eax
call fcn.00541d20
add esp, 0xc
push 0x208
lea ecx, [esp + 0x10a0]
push 0
push ecx
call fcn.00541d20
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 + 0x3c]
mov ecx, dword [eax + 0x140]
cmp dword [ecx + 0x5c], 0
je 0x4185e8
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x20]
call fcn.00404f00
mov byte [esp + 0x14b8], 9
call fcn.00448c3f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4183a7
push 0x80004005
call fcn.00404160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x40], edi
mov byte [esp + 0x14b8], 0xa
call fcn.00448c3f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4183d9
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 + 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 0x418418
push pe_nt_image_headers32
lea ecx, [esp + 0x50]
call fcn.00405520
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 0x418439
push 3
lea ecx, [esp + 0x44]
call fcn.00405520
mov edi, dword [esp + 0x40]
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.0053e03b
mov eax, dword [edi - 8]
add esp, 0x24
push eax
push edi
call fcn.0053dae6
add esp, 8
test eax, eax
js 0x418639
cmp eax, dword [edi - 8]
jg 0x418639
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.0053dae6
add esp, 8
test eax, eax
js 0x418639
cmp eax, dword [esi - 8]
jg 0x418639
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004104e0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x14bc], 0xc
call fcn.004063a0
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 0x4184f5
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 0x418639
cmp ecx, edx
jg 0x418639
cmp word [eax + ecx*2], 0x5c
jne 0x418565
lea eax, [edx - 1]
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x24]
call fcn.00410460
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x14bc], 0xd
call fcn.004063a0
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 0x418561
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 + 0x60]
push 0x104
push ecx
call fcn.0053e407
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 0x41859c
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 0x4185c0
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 0x4185e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x58], 0
je 0x418651
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + 0x5dc], 0
jne 0x418651
lea edx, [esp + 0x109c]
push 0x5c
push edx
call fcn.0053dda2
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, eax
add esp, 8
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x674]
test esi, esi
je 0x418643
push esi
push eax
push 0x594b70
push ecx
call edi
add esp, 0x10
xor edx, edx
mov word [esi], dx
jmp 0x418673
push 0x80070057
call fcn.00404160
push 0x5975b8
push eax
push str._s_s
push ecx
jmp 0x41866e
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x5975b8
lea edx, [esp + 0x60]
push edx
push str._s_s
lea eax, [esp + 0x680]
push eax
call edi
add esp, 0x10
push str.Uninst.ini
lea ecx, [esp + 0x60]
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 0x41873b
push eax
push str.return___08x
lea edx, [esp + 0x4c]
push 2
push edx
call fcn.00401410
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 0x4186f8
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 0x418720
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.00401370
xor eax, eax
jmp 0x418924
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 0x4187f6
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x5dc], 0
lea ecx, [esp + 0x674]
je 0x4187d1
push ecx
call ebx
test eax, eax
jne 0x4187f6
push eax
push str.return___08x
push 2
lea edx, [esp + 0x50]
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.00405310
lea ecx, [esp + 0x30]
call fcn.00405310
jmp 0x418720
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
lea eax, [esp + 0x470]
push eax
push ecx
call esi
test eax, eax
je 0x418816
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 0x418826
lea edx, [esp + 0xc8c]
push edx
call ebx
mov esi, eax
jmp 0x41882b
push 0
push str.return___08x
push 2
lea eax, [esp + 0x50]
push eax
jmp 0x4187b2
mov esi, 1
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x44]
call fcn.00404f00
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0x40]
lea ecx, [ebx + 0x118]
push edx
mov byte [esp + 0x14bc], 0xe
call fcn.004063a0
mov byte [esp + 0x14b8], 2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41887d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 1
jne 0x4188a9
lea ecx, [ebx + 0x1cc]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [ebx + 0x3d4]
push str._s_s
push eax
call edi
mov dword [ebx + 0x1c8], 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.00401410
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 0x4188e6
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 0x41890e
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.00401370
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.0053ca73
mov esp, ebp
pop ebp
ret