Function at 0x40cfef
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
sub esp, 0x304
lea ebp, [esp - 4]
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp + 0x304], eax
push 0x2c
mov eax, 0x4a58a7
call fcn.00486a61
mov eax, dword [ebp + 0x32c]
and dword [ebp - 0x34], 0
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], eax
xor ebx, ebx
lea eax, [ebp + 0x310]
inc ebx
push eax
lea esi, [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.004047eb
push str.CUnInstallerHelper::CreateTempCopyAndExecute__start
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00404db2
mov byte [ebp - 4], 3
call fcn.00404e64
push 0
push ebx
mov byte [ebp - 4], 2
call fcn.00404f5a
push str.CUnInstallerHelper::CreateTempCopyAndExecute__Installer_Path:
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [ebp + 0x310]
mov byte [ebp - 4], 4
call fcn.00404975
pop ecx
push 0
push 1
mov byte [ebp - 4], 2
call fcn.00404f5a
push str.CUnInstallerHelper::CreateTempCopyAndExecute__Config_File:
lea esi, [ebp - 0x2c]
call fcn.00404db2
test edi, edi
setne al
movzx eax, al
push eax
mov eax, esi
push eax
mov byte [ebp - 4], 5
call fcn.00406bc9
pop ecx
pop ecx
push 0
push 1
mov byte [ebp - 4], 2
call fcn.00404f5a
push str.CUnInstallerHelper::CreateTempCopyAndExecute__Partner:
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov ebx, dword [ebp - 0x38]
mov eax, esi
push eax
mov byte [ebp - 4], 6
call fcn.00404975
pop ecx
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push edi
mov byte [ebp - 4], 2
call fcn.00404f5a
push str.CUnInstallerHelper::CreateTempCopyAndExecute__Executed_From__Contrl_Pannel:
lea esi, [ebp - 0x2c]
call fcn.00404db2
movzx eax, byte [ebp + 0x330]
mov byte [ebp - 4], 7
push eax
mov ecx, esi
call fcn.00408b56
pop ecx
push ebx
push edi
mov byte [ebp - 4], 2
call fcn.00404f5a
push str.CUnInstallerHelper::CreateTempCopyAndExecute__Need_Elevation:
lea esi, [ebp - 0x2c]
call fcn.00404db2
movzx eax, byte [ebp + 0x408]
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00408b56
pop ecx
push ebx
push edi
mov byte [ebp - 4], 2
call fcn.00404f5a
xor eax, eax
push 0x206
mov word [ebp + 0xfc], ax
lea eax, [ebp + 0xfe]
push ebx
push eax
call fcn.004864e0
add esp, 0xc
lea eax, [ebp + 0xfc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp + 0x328], 8
mov eax, dword [ebp + 0x314]
jae 0x40d188
lea eax, [ebp + 0x314]
push 0x5c
push eax
call fcn.004821bd
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d1dd
push ebx
push edi
lea esi, [ebp + 0x1c]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x310]
call fcn.00404f5a
lea edi, [ebp + 0x334]
call fcn.00402184
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x304]
xor ecx, ebp
call fcn.004812cc
add ebp, 0x308
leave
ret
add eax, 2
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x40d1e2
sub eax, edx
lea edi, [ebp + 0xfc]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x40d1f6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp + 0xfc]
rep movsb byte es:[edi], byte [esi]
push eax
lea esi, [ebp + 0xc4]
call fcn.00404db2
mov byte [ebp - 4], 9
cmp dword [ebp + 0xdc], 8
mov ecx, dword [ebp + 0xc8]
jae 0x40d23c
lea ecx, [ebp + 0xc8]
cmp dword [ebp + 0x328], 8
mov eax, dword [ebp + 0x314]
jae 0x40d251
lea eax, [ebp + 0x314]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
cmp al, bl
jne 0x40d295
push str.CUnInstallerHelper::CreateTempCopyAndExecute__FAIL_to_copy_uninstaller.exe_to_TEMP
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0xa
call fcn.00404e64
xor edi, edi
inc edi
push ebx
push edi
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0xc4]
call fcn.00404f5a
jmp 0x40d196
xor eax, eax
mov dword [ebp + 0xc0], 7
mov dword [ebp + 0xbc], ebx
mov word [ebp + 0xac], ax
lea eax, [ebp + 0x310]
push eax
mov byte [ebp - 4], 0xb
call fcn.00403547
cmp eax, 0xffffffff
je 0x40d2f7
inc eax
push eax
push ebx
lea eax, [ebp + 0x310]
push eax
lea esi, [ebp - 0x2c]
call fcn.00403572
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0xc
call fcn.00404ae1
xor edi, edi
push ebx
inc edi
push edi
mov byte [ebp - 4], 0xb
call fcn.00404f5a
jmp 0x40d2fa
xor edi, edi
inc edi
lea eax, [ebp + 0xc4]
push eax
call fcn.00403547
cmp eax, 0xffffffff
je 0x40d33a
inc eax
push eax
push ebx
lea eax, [ebp + 0xc4]
push eax
lea esi, [ebp - 0x2c]
call fcn.00403572
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 0xd
call fcn.00404ae1
push ebx
push edi
mov byte [ebp - 4], 0xb
call fcn.00404f5a
mov esi, str.GenericWndApi.dll
push esi
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.00403cd2
push esi
lea eax, [ebp + 0xc4]
push eax
lea eax, [ebp + 0x54]
push eax
mov byte [ebp - 4], 0xe
call fcn.00403cd2
add esp, 0x18
mov byte [ebp - 4], 0xf
cmp dword [ebp + 0x6c], 8
mov ecx, dword [ebp + 0x58]
jae 0x40d378
lea ecx, [ebp + 0x58]
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
jae 0x40d387
lea eax, [ebp + 0x74]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
cmp al, bl
jne 0x40d3d5
push str.CUnInstallerHelper::CreateTempCopyAndExecute__FAIL_to_copy_GenericWndApi.dll_to_TEMP
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x10
call fcn.00404e64
push ebx
push edi
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x54]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x70]
call fcn.00404f5a
lea esi, [ebp + 0xa8]
jmp 0x40d27c
mov esi, str.UninstallRes
push esi
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.00403cd2
add esp, 0xc
push esi
lea eax, [ebp + 0xc4]
push eax
mov byte [ebp - 4], 0x11
call fcn.004048a5
xor eax, eax
mov dword [ebp + 0xa4], 7
mov dword [ebp + 0xa0], ebx
mov word [ebp + 0x90], ax
mov byte [ebp - 4], 0x12
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40d428
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x8c]
push eax
call fcn.0041f9e6
test al, al
je 0x40d46a
push 0x4b3d78
lea esi, [ebp - 0x2c]
call fcn.00404db2
lea eax, [ebp + 0xc4]
push eax
mov eax, esi
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp + 0x8c]
mov dword [ebp - 0x34], edi
call fcn.0041ff9c
mov byte [ebp - 0xd], 1
test al, al
je 0x40d46d
mov byte [ebp - 0xd], bl
mov dword [ebp - 4], 0x12
test byte [ebp - 0x34], 1
je 0x40d484
push ebx
push edi
lea esi, [ebp - 0x2c]
call fcn.00404f5a
cmp byte [ebp - 0xd], bl
je 0x40d4fb
mov byte [ebp - 0xd], bl
push ebx
push edi
lea esi, [ebp + 0x8c]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x38]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x54]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x70]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0xa8]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0xc4]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x1c]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x310]
call fcn.00404f5a
lea edi, [ebp + 0x334]
call fcn.00402184
mov al, byte [ebp - 0xd]
jmp 0x40d1ba
mov edx, dword [ebp - 0x30]
push 0x4b3d7c
lea ecx, [ebp]
call fcn.004095cb
push dword [ebp - 0x38]
lea ecx, [ebp]
mov byte [ebp - 4], 0x14
call fcn.0040a98f
xor eax, eax
mov dword [ebp + 0xf8], 7
mov dword [ebp + 0xf4], ebx
mov word [ebp + 0xe4], ax
mov edx, dword [ebp - 0x30]
push str.Installation_Bundles_Bundle_InstallFolderName
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
call fcn.004095cb
add esp, 0xc
push 0x4aec58
mov byte [ebp - 4], 0x16
call fcn.00404e3a
push ebx
test eax, eax
push edi
lea esi, [ebp - 0x2c]
setne byte [ebp - 0xd]
mov byte [ebp - 4], 0x15
call fcn.00404f5a
mov edi, 0x4b3dcc
cmp byte [ebp - 0xd], bl
je 0x40d5e8
push str.__XPIPATH_
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
mov edx, dword [ebp - 0x30]
push str.Installation_Bundles_Bundle_InstallFolderName
lea ecx, [ebp - 0x2c]
call fcn.004095cb
pop ecx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x17
call fcn.004048ce
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
call fcn.00404f5a
push edi
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_XPIPATH
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x18
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0x15
call fcn.00404f5a
cmp byte [ebp + 0x330], bl
je 0x40d65a
push 0x4aec58
lea eax, [ebp]
call fcn.00404e3a
test eax, eax
je 0x40d65a
cmp byte [ebp + 0x35a], bl
jne 0x40d65a
push str.__UNINSTALLPAGE_
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
lea ecx, [ebp + 0xe0]
call fcn.004048ce
push edi
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_UNINSTALLPAGE
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x19
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0x15
call fcn.00404f5a
mov edx, dword [ebp - 0x30]
push str.Installation_FolderName
lea ecx, [ebp - 0x2c]
call fcn.004095cb
mov byte [ebp - 4], 0x1a
mov dword [esp], 0x4aec58
call fcn.00404e3a
push ebx
test eax, eax
push 1
lea esi, [ebp - 0x2c]
setne byte [ebp - 0xd]
mov byte [ebp - 4], 0x15
call fcn.00404f5a
cmp byte [ebp - 0xd], bl
je 0x40d706
push str.__DEP_
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
mov edx, dword [ebp - 0x30]
push str.Installation_FolderName
lea ecx, [ebp - 0x2c]
call fcn.004095cb
pop ecx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x1b
call fcn.004048ce
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
call fcn.00404f5a
push edi
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_DEP
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x1c
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0x15
call fcn.00404f5a
cmp byte [ebp + 0x359], bl
je 0x40d741
push str.__REGISTERSATB
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_REGISTERSATB
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x1d
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0x15
call fcn.00404f5a
cmp byte [ebp + 0x35d], bl
je 0x40d77c
push str.__PROMPT
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_PROMPT
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x1e
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0x15
call fcn.00404f5a
cmp byte [ebp + 0x35e], bl
je 0x40d7b7
push str.__OFFLINE
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_OFFLINE
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x1f
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0x15
call fcn.00404f5a
push str.__EXECUTEUNINSTALL
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_EXECUTEUNINSTALL
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x20
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0x15
call fcn.00404f5a
cmp byte [ebp + 0x356], bl
je 0x40d839
push str.__CHANGEPROFILE
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x37c]
lea ecx, [ebp + 0xe0]
call fcn.004048ce
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_CHANGEPROFILE
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x21
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0x15
call fcn.00404f5a
push str.__PARTNER_
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
mov eax, dword [ebp - 0x38]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0xe0]
call fcn.004048ce
push 0x4b0d74
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_PARTNER
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x22
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0x15
call fcn.00404f5a
push str.__APPDIR_
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0xa8]
lea ecx, [ebp + 0xe0]
call fcn.004048ce
push edi
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
push str.__FROMELEVATION
lea eax, [ebp + 0xe0]
push eax
call fcn.004048a5
cmp byte [ebp + 0x408], bl
je 0x40d931
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_FROMELEVATION
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x23
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0x15
call fcn.00404f5a
cmp dword [ebp + 0xf8], 8
mov edi, dword [ebp + 0xe4]
push ebx
jae 0x40d911
lea edi, [ebp + 0xe4]
sub esp, 0x1c
lea eax, [ebp + 0xfc]
mov esi, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.00404db2
mov ecx, edi
call fcn.004093d7
add esp, 0x20
jmp 0x40d955
cmp dword [ebp + 0xf8], 8
mov eax, dword [ebp + 0xe4]
jae 0x40d946
lea eax, [ebp + 0xe4]
push ebx
push eax
lea ecx, [ebp + 0xfc]
call fcn.00408baf
pop ecx
pop ecx
push str.Executing_uninstaller_from_TEMP_with_params:
lea esi, [ebp - 0x2c]
mov byte [ebp - 0xd], al
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [ebp + 0xe0]
mov byte [ebp - 4], 0x24
call fcn.00404975
pop ecx
xor edi, edi
push edi
push 1
call fcn.00404f5a
push edi
push 1
mov esi, ebx
call fcn.00404f5a
push edi
push 1
lea esi, [ebp]
call fcn.00404f5a
mov al, byte [ebp - 0xd]
xor ebx, ebx
mov byte [ebp - 0xd], al
inc edi
jmp 0x40d48c