Function at 0x478c20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea31e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a8
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x2c], ebx
clc
jae 0x478c4c
mov dl, 0x8d
mov esi, 0x930
lea edi, [esi + 0x930]
push str.setup_setup.e
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.005bc6b6
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x274]
push ecx
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x478ca6
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push eax
push 0x664c58
push ecx
call fcn.00503c60
mov eax, dword [eax]
mov byte [ebp - 4], 1
push eax
call fcn.004ff630
add esp, 0x10
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
jmp 0x479344
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.setup_setup.exe
lea edx, [ebp - 0x18]
push edi
push edx
call fcn.005bc6b6
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x3b4]
push eax
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or edi, 0xffffffff
cmp eax, edi
jne 0x478d05
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push edx
push 0x664bfc
push eax
call fcn.00503c60
mov eax, dword [eax]
mov byte [ebp - 4], 3
push eax
call fcn.004ff630
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
jmp 0x478eef
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x134]
call fcn.00525cc1
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x128]
push edx
call fcn.00525cc1
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x128]
push eax
call fcn.00525d59
test eax, eax
je 0x478d77
test esp, ecx
invalid
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push ecx
push edx
lea eax, [ebp - 0x2c]
push 0x664b90
push eax
call fcn.00503c60
mov eax, dword [eax]
mov byte [ebp - 4], 4
push eax
call fcn.004ff630
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
jmp 0x478eef
mov ecx, dword [0x6707bc]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x10]
push str.mksetup.ini
push edx
mov byte [ebp - 4], 5
call fcn.004ff490
mov eax, dword [ebp - 0x10]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
clc
jae 0x478da3
jnp 0x478d31
lea ecx, [ebp - 0xd4]
call fcn.005bae68
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
call fcn.005bae68
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.005bae68
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.005bae68
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 9
call fcn.005bae68
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.005bae68
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xb
call fcn.005bae68
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xc
call fcn.005bae68
lea ecx, [ebp - 0x44]
push ebx
lea edx, [ebp - 0x84]
push ecx
lea eax, [ebp - 0xac]
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0xd4]
push eax
push ecx
push edx
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.00479370
test eax, eax
je 0x478e79
lea ebp, [edi + edi*8]
invalid
cmp dword [ebp - 0x3c], ebx
jle 0x478e4f
push 0x664b68
call fcn.004ff630
add esp, 4
jmp 0x478e79
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x44]
push eax
lea edx, [ebp - 0x98]
push ecx
lea eax, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x70]
push eax
push ecx
push ebx
mov ecx, esi
call fcn.00479370
test eax, eax
jne 0x478f07
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xc
call fcn.005bae9b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xb
call fcn.005bae9b
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.005bae9b
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 9
call fcn.005bae9b
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.005bae9b
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.005bae9b
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
call fcn.005bae9b
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 5
call fcn.005bae9b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.005bc421
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.005bc421
mov dword [ebp - 4], edi
jmp 0x479350
mov edx, dword [esi + 0x128]
mov eax, dword [esi + 0x124]
push edx
push eax
lea ecx, [ebp - 0x11c]
push 0x664b5c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x6707bc]
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov edx, dword [esi + 0x3fc]
lea edi, [esi + 0x3fc]
mov byte [ebp - 4], 0xf
cmp dword [edx - 8], ebx
je 0x47929e
push 0x5c
mov ecx, edi
call fcn.005b88e6
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x478fb6
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.005b886e
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
call fcn.005bc55a
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.005bc421
mov ecx, dword [edi]
lea edx, [ebp - 0x30]
mov eax, dword [ecx - 8]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
mov ecx, edi
dec eax
push eax
push edx
call fcn.005b87f2
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x11
call fcn.005bc55a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call fcn.005bc421
jmp 0x478fcc
push 0x674ee0
lea ecx, [ebp - 0x1c]
call fcn.005bc5aa
push edi
lea ecx, [ebp - 0x24]
call fcn.005bc55a
mov eax, dword [0x6707bc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x12
stc
jb 0x478fdc
rcpps xmm1, xmmword [ebp + 0x5153d84d]
push ebx
lea ecx, [ebp - 0x28]
push ebx
push ecx
mov ecx, esi
call fcn.0040c40f
test eax, eax
je 0x479290
mov edx, dword [0x6756b0]
lea eax, [ebp - 0xe8]
push edx
push 0x64aafc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push ecx
push edx
push str.ExeFileName
push str.Info
call edi
test eax, eax
je 0x47926e
lea eax, [esi + 0x930]
push 0x649fbc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.005bc6b6
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
push ecx
push eax
push str.LibDir
push str.Info
call edi
test eax, eax
lea ecx, [ebp - 0x30]
sete byte [ebp - 0x1d]
call fcn.005bc421
cmp byte [ebp - 0x1d], bl
jne 0x47926e
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push edx
push eax
push str.PrgDir
push str.Info
call edi
test eax, eax
je 0x47926e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
push ecx
push edx
push str.PrgFileName
push str.Info
call edi
test eax, eax
je 0x47926e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xe8]
push eax
push ecx
push str.PEConvertCode
push str.Info
call edi
test eax, eax
je 0x47926e
mov edx, dword [esi + 0xfc]
lea eax, [esi + 0xfc]
cmp dword [edx - 8], ebx
jne 0x4790f0
push 0x674ee0
lea ecx, [ebp - 0x48]
call fcn.005bc48f
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0x13
jmp 0x479108
lea ecx, [ebp - 0x11c]
lea edx, [ebp - 0x30]
push ecx
push eax
push edx
call fcn.005bc6b6
mov dword [ebp - 0x2c], 2
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
push ecx
push eax
push str.AppTitle
push str.Info
call edi
test eax, eax
mov al, byte [ebp - 0x2c]
sete byte [ebp - 0x1d]
test al, 2
je 0x479138
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
and al, 0xfd
mov dword [ebp - 0x2c], eax
call fcn.005bc421
mov al, byte [ebp - 0x2c]
mov dword [ebp - 4], 0x12
test al, 1
je 0x47914e
lea ecx, [ebp - 0x48]
call fcn.005bc421
cmp byte [ebp - 0x1d], bl
jne 0x47926e
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
push edx
push eax
push str.SetupFile
push str.Info
call edi
test eax, eax
je 0x47926e
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
push ebx
push ecx
push str.PrgLibFiles
push edx
mov ecx, esi
call fcn.0047cc80
test eax, eax
je 0x47926e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xd4]
push ebx
push eax
push str.SetupLibFiles
push ecx
mov ecx, esi
call fcn.0047cc80
test eax, eax
je 0x47926e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x5c]
push ebx
push edx
push str.PrgLibDependFiles
push eax
mov ecx, esi
call fcn.0047cc80
test eax, eax
je 0x47926e
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xac]
push ebx
push ecx
push str.SetupLibDependFiles
push edx
mov ecx, esi
call fcn.0047cc80
test eax, eax
je 0x47926e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x98]
push ebx
push eax
push str.PrgOtherFiles
push ecx
mov ecx, esi
call fcn.0047cc80
test eax, eax
je 0x47926e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x84]
push ebx
push edx
push str.SetupOtherFiles
push eax
mov ecx, esi
call fcn.0047cc80
test eax, eax
je 0x47926e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xc0]
lea edx, [ebp - 0x44]
push ecx
push edx
push str.OcxFiles
push eax
mov ecx, esi
call fcn.0047cc80
test eax, eax
je 0x47926e
mov ecx, dword [ebp - 0x10]
push 1
push ebx
push str.setup
push ecx
push str.mksetup
mov ecx, esi
call fcn.00403e70
test eax, eax
je 0x47927b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.005bc421
jmp 0x4792ab
push 0x664a74
call fcn.004ff630
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call 0x47928a
add dword [esp], 6
ret
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.005bc421
jmp 0x4792ab
push 0x664a1c
call fcn.004ff630
add esp, 4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.005bc421
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
call fcn.005bc421
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xc
call fcn.005bae9b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xb
call fcn.005bae9b
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.005bae9b
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 9
call fcn.005bae9b
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.005bae9b
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.005bae9b
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
call fcn.005bae9b
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 5
call fcn.005bae9b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.005bc421
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.005bc421
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005bc421
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret