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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
call fcn.0040f5e0
test al, al
jne 0x4090bb
call fcn.0040f5f9
test al, al
jne 0x4090bb
mov byte [ebp - 5], 1
jmp 0x4090bf
and byte [ebp - 5], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x1f4], 0x90001
jb 0x409527
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x41230c
mov dword [ebp - 0x18], 0x412314
call fcn.00401a43
cmp byte [ebp - 5], 0
mov ebx, 0x412308
mov dword [ebp - 0x2c], ebx
jne 0x409118
lea eax, [ebp - 0xa8]
push 1
push eax
call fcn.0040c128
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ba8
lea ecx, [ebp - 0xa8]
jmp 0x409137
lea eax, [ebp - 0xa8]
push 0x1a
push eax
call fcn.0040bd17
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ba8
lea ecx, [ebp - 0xa8]
call fcn.00401b16
push str.InstallShieldProfessionalRunTime_
lea ecx, [ebp - 0x2c]
call fcn.0040c4ec
and byte [ebp - 0x40], 0
xor eax, eax
lea edi, [ebp - 0x3f]
push 0x41409c
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.00410880
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 0x40917d
push dword [ebp - 0xc]
jmp 0x40917e
push eax
lea eax, [ebp - 0x40]
push str._02d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040c4ec
and byte [ebp - 0x2cc], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x2cb]
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 - 0x2cc]
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 0x4091fa
cmp byte [eax + 0x200], 0
jne 0x4091fa
mov eax, dword [eax + 0x1f4]
shr eax, 0x10
cmp eax, dword [ebp - 0xc]
jge 0x4092a7
and byte [ebp - 0x1c8], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c7]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x412314
push str.Intel32
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x58], 0x41230c
mov dword [ebp - 0x50], edi
call fcn.0040399e
push str.iKernel.dll
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], ebx
call fcn.0040481e
lea eax, [ebp - 0x1c8]
mov ecx, esi
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b00f
mov ecx, dword [esi + 4]
add ecx, 0x1f4
mov edx, dword [ecx]
shr edx, 0x10
cmp edx, dword [ebp - 0xc]
jl 0x40926f
movzx ecx, word [ecx]
cmp eax, ecx
jle 0x40929d
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40929d
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
lea ecx, [ebp - 0x64]
call fcn.00401b16
jmp 0x4092ac
mov edi, 0x412314
lea eax, [ebp - 0x2cc]
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040c4ec
push str.Intel32
lea ecx, [ebp - 0x2c]
call fcn.0040c4ec
push 0x414188
lea ecx, [ebp - 0x2c]
call fcn.0040481e
lea eax, [ebp - 0x2c]
push 0
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xb8], 0x41230c
mov dword [ebp - 0xb0], edi
call fcn.00403a0d
push str.setup.dll
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc4], ebx
call fcn.0040481e
lea eax, [ebp - 0xc4]
push 4
push eax
call fcn.00409935
pop ecx
test al, al
pop ecx
jne 0x409500
lea eax, [ebp - 0x2c]
push eax
call fcn.0040acd8
pop ecx
mov ecx, esi
call fcn.00409c4d
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x40934a
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x409354
mov esi, 0xffffe88e
jmp 0x4094ae
cmp byte [ebp - 5], 0
je 0x409370
lea eax, [ebp - 0x80]
push 0
push eax
mov dword [ebp - 4], 1
call fcn.00403e5b
pop ecx
pop ecx
jmp 0x409373
lea eax, [ebp - 0x2c]
push 0
push eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x9c], 0x41230c
mov dword [ebp - 0x94], edi
call fcn.00403a0d
test byte [ebp - 4], 1
mov dword [ebp - 0xa8], ebx
je 0x4093a5
lea ecx, [ebp - 0x80]
call fcn.00401b16
push 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x58], 0x41230c
mov dword [ebp - 0x50], edi
call fcn.00401a43
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0x64], ebx
call fcn.0040b21b
test eax, eax
je 0x4093d9
mov esi, eax
jmp 0x40949b
cmp dword [esi + 0x14], 0
je 0x409432
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.0040a9bd
test eax, eax
je 0x409432
lea ecx, [ebp - 0x64]
call fcn.00401ffc
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x64]
push eax
call fcn.00404135
mov esi, eax
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x8c]
call fcn.00401b16
mov esi, 0xffffe88c
jmp 0x40949b
lea ecx, [ebp - 0xc4]
call fcn.00401ffc
mov esi, dword [ebp - 0xc0]
lea ecx, [ebp - 0x64]
call fcn.00401ffc
push esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4094c1
lea ecx, [ebp - 0x64]
call fcn.00401ffc
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x64]
push eax
call fcn.00404135
mov esi, eax
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x8c]
call fcn.00401b16
mov esi, 0xffffe88b
lea ecx, [ebp - 0x64]
call fcn.00401b16
lea ecx, [ebp - 0xa8]
call fcn.00401b16
lea ecx, [ebp - 0xc4]
call fcn.00401b16
lea ecx, [ebp - 0x2c]
jmp 0x409806
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x64]
push eax
call fcn.00404135
mov esi, eax
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x8c]
call fcn.00401b16
lea ecx, [ebp - 0x64]
call fcn.00401b16
lea ecx, [ebp - 0xa8]
call fcn.00401b16
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc4]
push eax
call fcn.00401ba8
lea ecx, [ebp - 0xc4]
call fcn.00401b16
lea ecx, [ebp - 0x2c]
call fcn.00401b16
jmp 0x40991c
mov ecx, esi
call fcn.00409c4d
mov eax, dword [esi + 0xd4]
cmp eax, edi
je 0x409929
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x409929
cmp dword [esi + 0x14], edi
je 0x40985a
lea eax, [ebp - 6]
and byte [ebp - 6], 0
push eax
lea eax, [esi + 0xe0]
lea ebx, [esi + 0xc4]
lea edi, [esi + 0x34]
push eax
push ebx
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0040cc01
add esp, 0xc
mov ecx, esi
push eax
call fcn.0040a775
lea ecx, [ebp - 0x80]
mov byte [ebp - 0xd], al
call fcn.00401b16
cmp byte [ebp - 0xd], 0
je 0x409812
cmp byte [ebp - 5], 0
je 0x4095b3
lea eax, [ebp - 0x80]
push 0
push eax
mov dword [ebp - 4], 2
call fcn.00403e5b
pop ecx
pop ecx
jmp 0x4095b5
mov eax, edi
mov edi, 0x41230c
push 0
push eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x94], 0x412314
call fcn.00403a0d
test byte [ebp - 4], 2
mov ebx, 0x412308
mov dword [ebp - 0xa8], ebx
je 0x4095f1
lea ecx, [ebp - 0x80]
call fcn.00401b16
push 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], 0x412314
call fcn.00401a43
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0x48], ebx
call fcn.0040b21b
test eax, eax
je 0x409625
mov esi, eax
jmp 0x4097f8
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0040a9bd
test eax, eax
je 0x40967b
lea ecx, [ebp - 0x48]
call fcn.00401ffc
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x48]
push eax
call fcn.00404135
mov esi, eax
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x8c]
call fcn.00401b16
mov esi, 0xffffe88c
jmp 0x4097f8
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], 0x412314
call fcn.00401a43
cmp byte [ebp - 5], 0
mov dword [ebp - 0x2c], ebx
je 0x409703
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401ba8
lea eax, [ebp - 0x48]
lea ecx, [esi + 0x58]
push eax
call fcn.00401ba8
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x48]
push eax
call fcn.00404135
mov edi, eax
mov ecx, edi
call fcn.00401ffc
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x8c]
call fcn.00401b16
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401ba8
lea ecx, [ebp - 0x2c]
call fcn.00401b16
lea ecx, [ebp - 0x48]
call fcn.00401b16
lea ecx, [ebp - 0xa8]
jmp 0x409837
lea eax, [esi + 0xc4]
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040cc01
add esp, 0xc
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401ba8
lea ecx, [ebp - 0x80]
call fcn.00401b16
lea ecx, [ebp - 0x2c]
call fcn.00401ffc
push dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call ebx
lea ecx, [ebp - 0x2c]
call fcn.00401ffc
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x48]
call fcn.00401ffc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x44]
call edi
test eax, eax
jne 0x4096b0
push dword [0x414348]
lea eax, [esi + 0x34]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00404b36
add esp, 0xc
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401ba8
lea ecx, [ebp - 0x80]
call fcn.00401b16
lea ecx, [ebp - 0x2c]
call fcn.00401ffc
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xc], eax
call fcn.00401ffc
push dword [ebp - 0xc]
push dword [ebp - 0x44]
call edi
test eax, eax
jne 0x4096b0
lea ecx, [ebp - 0x48]
call fcn.00401ffc
push dword [ebp - 0x44]
call ebx
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x48]
push eax
call fcn.00404135
mov esi, eax
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x8c]
call fcn.00401b16
lea ecx, [ebp - 0x2c]
call fcn.00401b16
mov esi, 0xffffe88b
lea ecx, [ebp - 0x48]
call fcn.00401b16
lea ecx, [ebp - 0xa8]
call fcn.00401b16
mov eax, esi
jmp 0x40992e
cmp byte [ebp - 6], 0
je 0x40983e
push dword [0x414348]
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00404b36
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.00401ba8
lea ecx, [ebp - 0x80]
call fcn.00401b16
jmp 0x409891
push ebx
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0040cc01
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.00401ba8
lea ecx, [ebp - 0x80]
jmp 0x409837
push dword [ebp + 8]
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00403e5b
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0040b21b
lea ecx, [ebp - 0x80]
mov edi, eax
call fcn.00401b16
test edi, edi
je 0x409886
mov eax, edi
jmp 0x40992e
push dword [ebp + 8]
lea ecx, [esi + 0x58]
call fcn.00401ba8
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401ffc
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x4098b2
mov eax, 0xffffe88d
jmp 0x40992e
push str.FindCorrectLauncher
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x409920
and byte [ebp - 0x1c8], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00401ffc
push dword [esi + 0x50]
mov edi, dword [edi + 4]
lea eax, [ebp - 0x1c8]
push dword [esi + 0x14]
push eax
push edi
call ebx
test eax, eax
jne 0x409920
cmp byte [ebp - 0x1c8], al
je 0x409913
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.004045d6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40992e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xffffe88e
pop edi
pop esi
pop ebx
leave
ret 4