Function at 0x409c1b
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.0040f7f4
test al, al
jne 0x409c45
call fcn.0040f80d
test al, al
jne 0x409c45
mov byte [ebp - 5], 1
jmp 0x409c49
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 0x409c8a
lea eax, [ebp - 0x64]
push 1
push eax
call fcn.0040c431
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401bcb
lea ecx, [ebp - 0x64]
jmp 0x409ca3
lea eax, [ebp - 0x64]
push 0x1a
push eax
call fcn.0040c020
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.0040c7f5
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 0x409cef
push dword [ebp - 0xc]
jmp 0x409cf0
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.0040c7f5
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 0x409d72
cmp byte [eax + 0x200], 0
jne 0x409d72
mov eax, dword [eax + 0x1f4]
shr eax, 0x10
cmp eax, dword [ebp - 0xc]
jge 0x409e1f
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.00403a2f
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.0040b230
mov ecx, dword [esi + 4]
add ecx, 0x1f4
mov edx, dword [ecx]
shr edx, 0x10
cmp edx, dword [ebp - 0xc]
jl 0x409de7
movzx ecx, word [ecx]
cmp eax, ecx
jle 0x409e15
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x409e15
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 0x409e24
mov edi, 0x41231c
lea eax, [ebp - 0x1c0]
lea ecx, [ebp - 0x48]
push eax
call fcn.0040c7f5
push str.Intel32
lea ecx, [ebp - 0x48]
call fcn.0040c7f5
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.00403a9e
push str.setup.dll
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], ebx
call fcn.004049b4
lea eax, [ebp - 0x48]
push eax
call fcn.0040af7b
pop ecx
mov ecx, esi
call fcn.0040a356
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x409ea4
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x409eae
mov esi, 0xffffe88e
jmp 0x40a077
cmp byte [ebp - 5], 0
je 0x409eca
lea eax, [ebp - 0x64]
push 0
push eax
mov dword [ebp - 4], 1
call fcn.00403ff1
pop ecx
pop ecx
jmp 0x409ecd
lea eax, [ebp - 0x48]
push 0
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xb0], 0x412314
mov dword [ebp - 0xa8], edi
call fcn.00403a9e
test byte [ebp - 4], 1
mov dword [ebp - 0xbc], ebx
je 0x409eff
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.0040b43c
test eax, eax
je 0x409f33
mov esi, eax
jmp 0x40a064
cmp dword [esi + 0x14], 0
je 0x409f89
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0040ac60
test eax, eax
je 0x409f89
lea ecx, [ebp - 0x2c]
call fcn.00402077
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.00402077
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x70]
call fcn.00401b39
mov esi, 0xffffe88c
jmp 0x40a064
lea eax, [ebp - 0xd]
mov ecx, esi
push eax
lea eax, [esi + 0xe0]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0040ab7c
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test al, al
je 0x40a020
lea ecx, [ebp - 0x8c]
call fcn.00402077
push dword [ebp - 0x88]
call esi
lea ecx, [ebp - 0x8c]
call fcn.00402077
mov edi, dword [ebp - 0x88]
lea ecx, [ebp - 0x2c]
call fcn.00402077
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40a020
lea ecx, [ebp - 0x2c]
call fcn.00402077
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.00402077
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x70]
call fcn.00401b39
mov esi, 0xffffe88b
jmp 0x40a064
lea ecx, [ebp - 0x2c]
call fcn.00402077
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.00402077
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