Function at 0x409a43
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040f7e9
test al, al
jne 0x409a6d
call fcn.0040f802
test al, al
jne 0x409a6d
mov byte [ebp - 5], 1
jmp 0x409a71
and byte [ebp - 5], 0
push 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], 0x412314
mov dword [ebp - 0x34], 0x41231c
call fcn.00401a66
cmp byte [ebp - 5], 0
mov ebx, 0x412310
mov dword [ebp - 0x48], ebx
jne 0x409ab2
lea eax, [ebp - 0x64]
push 1
push eax
call fcn.0040c411
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401bcb
lea ecx, [ebp - 0x64]
jmp 0x409acb
lea eax, [ebp - 0x64]
push 0x1a
push eax
call fcn.0040c000
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401bcb
lea ecx, [ebp - 0x64]
call fcn.00401b39
push str.InstallShieldProfessionalRunTime_
lea ecx, [ebp - 0x48]
call fcn.0040c7d5
and byte [ebp - 0xa0], 0
xor eax, eax
lea edi, [ebp - 0x9f]
push 0x4140a8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00410d3a
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
pop ecx
mov eax, dword [eax + 0x1f4]
shr eax, 0x10
cmp eax, dword [ebp - 0xc]
jge 0x409b17
push dword [ebp - 0xc]
jmp 0x409b18
push eax
lea eax, [ebp - 0xa0]
push str._02d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0x48]
push eax
call fcn.0040c7d5
and byte [ebp - 0x1c0], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x1bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
movzx eax, word [eax + 0x1f4]
push eax
lea eax, [ebp - 0x1c0]
push str._02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi + 4]
add esp, 0xc
test byte [eax + 0x1fc], 1
je 0x409b9a
cmp byte [eax + 0x200], 0
jne 0x409b9a
mov eax, dword [eax + 0x1f4]
shr eax, 0x10
cmp eax, dword [ebp - 0xc]
jge 0x409c47
and byte [ebp - 0x2c4], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c3]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x41231c
push str.Intel32
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x58], 0x412314
mov dword [ebp - 0x50], edi
call fcn.00403a6c
push str.iKernel.dll
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], ebx
call fcn.004049b4
lea eax, [ebp - 0x2c4]
mov ecx, esi
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040b234
mov ecx, dword [esi + 4]
add ecx, 0x1f4
mov edx, dword [ecx]
shr edx, 0x10
cmp edx, dword [ebp - 0xc]
jl 0x409c0f
movzx ecx, word [ecx]
cmp eax, ecx
jle 0x409c3d
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x409c3d
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
lea ecx, [ebp - 0x64]
call fcn.00401b39
jmp 0x409c4c
mov edi, 0x41231c
lea eax, [ebp - 0x1c0]
lea ecx, [ebp - 0x48]
push eax
call fcn.0040c7d5
push str.Intel32
lea ecx, [ebp - 0x48]
call fcn.0040c7d5
push 0x4141a4
lea ecx, [ebp - 0x48]
call fcn.004049b4
lea eax, [ebp - 0x48]
push 0
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x80], 0x412314
mov dword [ebp - 0x78], edi
call fcn.00403adb
push str.setup.dll
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], ebx
call fcn.004049b4
lea eax, [ebp - 0x48]
push eax
call fcn.0040af7f
pop ecx
mov ecx, esi
call fcn.0040a14b
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x409ccc
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x409cd6
mov esi, 0xffffe88e
jmp 0x409e9f
cmp byte [ebp - 5], 0
je 0x409cf2
lea eax, [ebp - 0x64]
push 0
push eax
mov dword [ebp - 4], 1
call fcn.00403ff1
pop ecx
pop ecx
jmp 0x409cf5
lea eax, [ebp - 0x48]
push 0
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xb0], 0x412314
mov dword [ebp - 0xa8], edi
call fcn.00403adb
test byte [ebp - 4], 1
mov dword [ebp - 0xbc], ebx
je 0x409d27
lea ecx, [ebp - 0x64]
call fcn.00401b39
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x412314
mov dword [ebp - 0x18], edi
call fcn.00401a66
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0x2c], ebx
call fcn.0040b440
test eax, eax
je 0x409d5b
mov esi, eax
jmp 0x409e8c
cmp dword [esi + 0x14], 0
je 0x409db1
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0040ac64
test eax, eax
je 0x409db1
lea ecx, [ebp - 0x2c]
call fcn.00401f9d
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004042cb
mov esi, eax
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x70]
call fcn.00401b39
mov esi, 0xffffe88c
jmp 0x409e8c
lea eax, [ebp - 0xd]
mov ecx, esi
push eax
lea eax, [esi + 0xe0]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0040ab6b
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test al, al
je 0x409e48
lea ecx, [ebp - 0x8c]
call fcn.00401f9d
push dword [ebp - 0x88]
call esi
lea ecx, [ebp - 0x8c]
call fcn.00401f9d
mov edi, dword [ebp - 0x88]
lea ecx, [ebp - 0x2c]
call fcn.00401f9d
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x409e48
lea ecx, [ebp - 0x2c]
call fcn.00401f9d
push dword [ebp - 0x28]
call esi
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004042cb
mov esi, eax
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x70]
call fcn.00401b39
mov esi, 0xffffe88b
jmp 0x409e8c
lea ecx, [ebp - 0x2c]
call fcn.00401f9d
push dword [ebp - 0x28]
call esi
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004042cb
mov esi, eax
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x70]
call fcn.00401b39
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
call fcn.00401bcb
xor esi, esi
lea ecx, [ebp - 0x2c]
call fcn.00401b39
lea ecx, [ebp - 0xbc]
call fcn.00401b39
lea ecx, [ebp - 0x8c]
call fcn.00401b39
lea ecx, [ebp - 0x48]
call fcn.00401b39
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4