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

Disassembly:
push ebp
sub esp, 0x304
lea ebp, [esp - 4]
mov eax, dword [0x50e7dc]
xor eax, ebp
mov dword [ebp + 0x304], eax
push 0x48
mov eax, 0x4c51d4
call fcn.0049f542
mov eax, dword [ebp + 0x32c]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
xor esi, esi
lea eax, [ebp + 0x310]
inc esi
push eax
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], esi
call fcn.00404bf2
push str.CUnInstallerHelper::CreateTempCopyAndExecute__start
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00404bd0
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 3
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004058b3
push str.CUnInstallerHelper::CreateTempCopyAndExecute__Installer_Path:
lea ecx, [ebp - 0x54]
call fcn.00404bd0
lea eax, [ebp + 0x310]
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 4
call fcn.00401985
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004058b3
push str.CUnInstallerHelper::CreateTempCopyAndExecute__Config_File:
lea ecx, [ebp - 0x54]
call fcn.00404bd0
cmp edi, ebx
setne al
movzx eax, al
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 5
call fcn.00401927
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004058b3
push str.CUnInstallerHelper::CreateTempCopyAndExecute__Partner:
lea ecx, [ebp - 0x54]
call fcn.00404bd0
push dword [ebp - 0x34]
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 6
call fcn.00401985
pop ecx
pop ecx
push ebx
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x54]
call fcn.004058b3
push str.CUnInstallerHelper::CreateTempCopyAndExecute__Executed_From__Contrl_Pannel:
lea ecx, [ebp - 0x54]
call fcn.00404bd0
movzx eax, byte [ebp + 0x330]
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 7
call fcn.004018c5
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004058b3
push str.CUnInstallerHelper::CreateTempCopyAndExecute__Need_Elevation:
lea ecx, [ebp - 0x54]
call fcn.00404bd0
movzx eax, byte [ebp + 0x408]
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 8
call fcn.004018c5
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004058b3
xor eax, eax
push 0x206
mov word [ebp + 0xfc], ax
lea eax, [ebp + 0xfe]
push ebx
push eax
call fcn.0049f650
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 0x41d869
lea eax, [ebp + 0x314]
push 0x5c
push eax
call fcn.004a16ad
pop ecx
pop ecx
cmp eax, ebx
jne 0x41d8be
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0x310]
call fcn.004058b3
lea ecx, [ebp + 0x334]
call fcn.0041d577
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.0049f533
add ebp, 0x308
leave
ret
add eax, 2
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x41d8c3
sub eax, edx
lea edi, [ebp + 0xfc]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x41d8d7
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 ecx, [ebp + 0xc4]
call fcn.00404bd0
mov byte [ebp - 4], 9
cmp dword [ebp + 0xdc], 8
mov ecx, dword [ebp + 0xc8]
jae 0x41d91d
lea ecx, [ebp + 0xc8]
cmp dword [ebp + 0x328], 8
mov eax, dword [ebp + 0x314]
jae 0x41d932
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 0x41d97e
push str.CUnInstallerHelper::CreateTempCopyAndExecute__FAIL_to_copy_uninstaller.exe_to_TEMP
lea ecx, [ebp - 0x54]
call fcn.00404bd0
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0xa
call fcn.004017f5
xor esi, esi
pop ecx
inc esi
lea ecx, [ebp - 0x54]
push ebx
push esi
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0xc4]
call fcn.004058b3
jmp 0x41d877
push ebx
lea ecx, [ebp + 0x8c]
mov dword [ebp + 0xa4], 7
call fcn.00405ece
lea eax, [ebp + 0x310]
push eax
mov byte [ebp - 4], 0xb
call fcn.0041bfc3
or edi, 0xffffffff
cmp eax, edi
je 0x41d9e2
inc eax
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x310]
call fcn.00404cd6
push edi
push ebx
push eax
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], 0xc
call fcn.00405301
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.004058b3
jmp 0x41d9e5
xor esi, esi
inc esi
lea eax, [ebp + 0xc4]
push eax
call fcn.0041bfc3
cmp eax, edi
je 0x41da27
inc eax
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0xc4]
call fcn.00404cd6
push edi
push ebx
push eax
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 0xd
call fcn.00405301
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.004058b3
mov edi, 0x4e53a8
push edi
lea eax, [ebp + 0xc4]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.0041011e
add esp, 0xc
push ebx
lea ecx, [ebp + 0xa8]
mov dword [ebp + 0xc0], 7
call fcn.00405ece
push 0x4d51f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.00404bd0
push str.ScriptHelperInstaller
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x10
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0xa8]
push eax
mov byte [ebp - 4], 0x11
call fcn.004032fb
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.004058b3
cmp dword [ebp + 0xbc], ebx
je 0x41dabf
push edi
lea ecx, [ebp + 0xa8]
call fcn.004052dd
cmp dword [ebp + 0x88], 8
mov ecx, dword [ebp + 0x74]
jae 0x41dace
lea ecx, [ebp + 0x74]
cmp dword [ebp + 0xc0], 8
mov eax, dword [ebp + 0xac]
jae 0x41dae3
lea eax, [ebp + 0xac]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
cmp al, bl
jne 0x41db3c
push str.CUnInstallerHelper::CreateTempCopyAndExecute__FAIL_to_copy_ScriptHelper.exe_to_TEMP
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x12
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0xa8]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0x70]
call fcn.004058b3
lea ecx, [ebp + 0x8c]
jmp 0x41d965
mov edi, str.UninstallRes
push edi
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.0041011e
add esp, 0xc
push edi
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 0x13
call fcn.004052dd
push 7
pop edi
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], edi
call fcn.00405ece
mov byte [ebp - 4], 0x14
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x41db84
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp]
call fcn.004298f6
test al, al
je 0x41dbc0
push 0x4da40c
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp + 0xc4]
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp]
mov dword [ebp - 0x38], esi
call fcn.00429b1c
mov byte [ebp - 0xd], 1
test al, al
je 0x41dbc3
mov byte [ebp - 0xd], bl
mov dword [ebp - 4], 0x14
test byte [ebp - 0x38], 1
je 0x41dbda
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004058b3
cmp byte [ebp - 0xd], bl
je 0x41dc51
mov byte [ebp - 0xd], bl
push ebx
push esi
lea ecx, [ebp]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0xa8]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0x70]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0x8c]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0xc4]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0x310]
call fcn.004058b3
lea ecx, [ebp + 0x334]
call fcn.0041d577
mov al, byte [ebp - 0xd]
jmp 0x41d89b
push str.Installation_UninstallPage
push dword [ebp - 0x30]
lea eax, [ebp + 0x1c]
push eax
call fcn.004024ff
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x34]
mov byte [ebp - 4], 0x16
call fcn.0040382a
add esp, 0x14
push ebx
lea ecx, [ebp + 0xe0]
mov dword [ebp + 0xf8], edi
call fcn.00405ece
push str.Installation_Bundles_Bundle_InstallFolderName
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x17
call fcn.004024ff
add esp, 0xc
push 0x4d51f0
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.00404d1c
push ebx
test eax, eax
push esi
lea ecx, [ebp - 0x2c]
setne byte [ebp - 0xd]
mov byte [ebp - 4], 0x17
call fcn.004058b3
mov edi, 0x4e550c
cmp byte [ebp - 0xd], bl
je 0x41dd47
push str.__XPIPATH_
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.Installation_Bundles_Bundle_InstallFolderName
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.004024ff
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x19
call fcn.00405c92
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
push edi
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_XPIPATH
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x1a
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
cmp byte [ebp + 0x330], bl
je 0x41ddbf
push 0x4d51f0
lea ecx, [ebp + 0x1c]
call fcn.00404d1c
test eax, eax
je 0x41ddbf
cmp byte [ebp + 0x35a], bl
jne 0x41ddbf
push str.__UNINSTALLPAGE_
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0xe0]
call fcn.00405c92
push edi
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_UNINSTALLPAGE
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x1b
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
push str.Installation_FolderName
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.004024ff
add esp, 0xc
push 0x4d51f0
mov ecx, eax
mov byte [ebp - 4], 0x1c
call fcn.00404d1c
push ebx
test eax, eax
push esi
lea ecx, [ebp - 0x2c]
setne byte [ebp - 0xd]
mov byte [ebp - 4], 0x17
call fcn.004058b3
cmp byte [ebp - 0xd], bl
je 0x41de76
push str.__DEP_
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.Installation_FolderName
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.004024ff
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x1d
call fcn.00405c92
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
push edi
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_DEP
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x1e
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
cmp byte [ebp + 0x359], bl
je 0x41deb7
push str.__REGISTERSATB
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_REGISTERSATB
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x1f
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
cmp byte [ebp + 0x35d], bl
je 0x41def8
push str.__PROMPT
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_PROMPT
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x20
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
cmp byte [ebp + 0x35e], bl
je 0x41df39
push str.__OFFLINE
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_OFFLINE
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x21
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
push str.__EXECUTEUNINSTALL
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_EXECUTEUNINSTALL
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x22
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
cmp byte [ebp + 0x356], bl
je 0x41dfc8
push str.__CHANGEPROFILE
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x37c]
push eax
lea ecx, [ebp + 0xe0]
call fcn.00405c92
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_CHANGEPROFILE
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x23
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
push str.__PARTNER_
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x34]
lea ecx, [ebp + 0xe0]
call fcn.00405c92
push 0x4d53a4
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_PARTNER
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x24
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
push str.__APPDIR_
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x8c]
push eax
lea ecx, [ebp + 0xe0]
call fcn.00405c92
push edi
lea ecx, [ebp + 0xe0]
call fcn.004052dd
push str.__FROMELEVATION
lea ecx, [ebp + 0xe0]
call fcn.004052dd
cmp byte [ebp + 0x408], bl
je 0x41e0c8
push str.CUnInstallerHelper::CreateTempCopyAndExecute__ADD_FROMELEVATION
lea ecx, [ebp - 0x2c]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x25
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.004058b3
cmp dword [ebp + 0xf8], 8
mov edi, dword [ebp + 0xe4]
push ebx
jae 0x41e0aa
lea edi, [ebp + 0xe4]
sub esp, 0x1c
lea eax, [ebp + 0xfc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.00404bd0
call fcn.00401e9e
add esp, 0x20
jmp 0x41e0f1
cmp dword [ebp + 0xf8], 8
mov eax, dword [ebp + 0xe4]
jae 0x41e0dd
lea eax, [ebp + 0xe4]
push 0xffffffffffffffff
push ebx
push ebx
push eax
lea eax, [ebp + 0xfc]
push eax
call fcn.004019da
add esp, 0x14
push str.Executing_uninstaller_from_TEMP_with_params:
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd], al
call fcn.00404bd0
lea eax, [ebp + 0xe0]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x26
call fcn.00401985
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0xe0]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.004058b3
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x41dbe2