Function at 0x4517c2
Capabilities:
Delete file
Move file

Disassembly:
push 0x128
mov eax, 0x4a7fdb
call fcn.0045a4e9
xor eax, eax
mov ebx, eax
mov dword [ebp - 0xf8], ebx
mov esi, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 4], eax
call fcn.0045072f
test al, al
jne 0x451809
call fcn.0045075f
test al, al
mov eax, SysReAllocStringLen
je 0x45180e
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push 0x20019
push str.Software
push eax
lea ecx, [ebp - 0x114]
call fcn.004018f0
test eax, eax
jne 0x451ab2
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], eax
push 0x2001f
push str.InstallShieldPendingOperation
push dword [ebp - 0x114]
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 1
call fcn.004018f0
test eax, eax
jne 0x451aa7
push str.Count
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x108]
call fcn.0043f44b
mov ecx, dword [ebp - 0xfc]
xor edx, edx
test eax, eax
cmovne ecx, edx
xor edi, edi
inc edi
mov dword [ebp - 0xfc], ecx
cmp ecx, edi
jb 0x451a97
push 0
lea eax, [ebp - 0xf1]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x4ae018
mov dword [ebp - 0x98], 0x4ae020
call fcn.00404200
push 0
lea eax, [ebp - 0xf1]
push eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf0], 0x4ae018
mov dword [ebp - 0xc8], 0x4ae020
call fcn.00404200
mov eax, 0x104
push edi
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x90]
push str.dest_d
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea eax, [ebp - 0x50]
push str.source_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x134]
push 0x104
push eax
lea ecx, [ebp - 0xf0]
call fcn.0044367c
mov ecx, dword [eax]
or ebx, 1
mov byte [ebp - 4], 4
mov dword [ebp - 0xf8], ebx
mov byte [eax + 4], 1
call fcn.0040a0f0
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push dword [eax]
lea ecx, [ebp - 0x108]
call fcn.0043f481
test eax, eax
jne 0x4519c8
push 0x104
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0044367c
mov ecx, dword [eax]
or ebx, 2
mov dword [ebp - 4], 5
mov dword [ebp - 0xf8], ebx
mov byte [eax + 4], 1
call fcn.0040a0f0
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push dword [eax]
lea ecx, [ebp - 0x108]
call fcn.0043f481
mov byte [ebp - 0xf1], 1
test eax, eax
je 0x4519cf
mov byte [ebp - 0xf1], 0
mov dword [ebp - 4], 4
test bl, 2
je 0x4519ef
and ebx, 0xfffffffd
lea ecx, [ebp - 0x128]
mov dword [ebp - 0xf8], ebx
call fcn.00409574
mov dword [ebp - 4], 3
test bl, 1
je 0x451a09
lea ecx, [ebp - 0x134]
and ebx, 0xfffffffe
call fcn.00409574
cmp byte [ebp - 0xf1], 0
je 0x451a70
cmp dword [ebp - 0xdc], 0
lea eax, [ebp - 0xbc]
jne 0x451a38
cmp dword [ebp - 0xa8], 8
cmovae eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x451a70
cmp dword [ebp - 0xd8], 8
lea ecx, [ebp - 0xec]
cmovae ecx, dword [ebp - 0xec]
cmp dword [ebp - 0xa8], 8
push 1
cmovae eax, dword [ebp - 0xbc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x451a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0xf0]
call fcn.00401b80
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.00401b80
inc edi
cmp edi, dword [ebp - 0xfc]
jbe 0x45189a
push str.InstallShieldPendingOperation
lea ecx, [ebp - 0x114]
call fcn.00420009
lea ecx, [ebp - 0x108]
call fcn.004018c0
lea ecx, [ebp - 0x114]
call fcn.004018c0
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovle eax, esi
call fcn.0045a498
ret