Function at 0x40c8e4
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
test eax, eax
je 0x40c90c
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_IsChild]
mov eax, dword [0x430fec]
mov ebx, 0x430fec
mov ecx, ebx
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 8]
call fcn.0040d020
test eax, eax
jne 0x40c954
push str.Cant_get_unzip_temp_path.
push 0x9c41
push eax
push 6
lea eax, [esi + 0xd4]
call fcn.00401b49
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
jmp 0x40cced
mov eax, dword [0x430fec]
mov ecx, ebx
call dword [eax + 0xc]
mov edi, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 4], eax
push edi
push str._eo__s___silence
lea eax, [ebp - 4]
call fcn.00407c2d
mov eax, dword [esi + 0x7c]
and dword [ebp - 0x24], 0
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
push ecx
push 1
push dword [ebp - 4]
push eax
call fcn.0040d229
test eax, eax
je 0x40ccc8
cmp dword [ebp - 0x24], 0
jne 0x40ccc8
mov eax, dword [0x430fec]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
push str._sAuto.ini
lea eax, [ebp - 0x10]
call fcn.00407c2d
pop ecx
pop ecx
mov edi, str.Setup.exe
lea esi, [ebp - 0x14]
call fcn.00407f9b
mov eax, dword [0x430fec]
and dword [ebp - 0x18], 0
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
mov eax, esi
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
call fcn.0040d151
lea eax, [ebp - 0x30]
push str.label.dat
push eax
lea eax, [ebp - 8]
call fcn.0040d7f5
mov edi, dword [eax]
mov eax, dword [ebp + 8]
pop ecx
pop ecx
push str.Rising.info
mov esi, 0x42ac40
lea ecx, [ebp - 0x2c]
push esi
add eax, 0x84
push ecx
call fcn.0040d7f5
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040d7f5
push dword [eax]
call fcn.0040e966
mov ebx, eax
mov eax, dword [ebp - 0x28]
add esp, 0xc
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00408191
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.00408191
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00408191
test bl, bl
je 0x40cab9
mov eax, dword [ebp + 8]
push str.Update_partner_information_to_label.dat_file_failed.
push 0x9c42
push 0
push 6
add eax, 0xd4
call fcn.00401b49
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00408191
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408191
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408191
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00408191
jmp 0x40c949
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
mov dword [ebp - 0x3c], eax
call fcn.00407cf5
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00407a5c
mov edi, dword [ebp - 0x14]
push dword [edi - 0xc]
lea eax, [ebp - 0xc]
push edi
call fcn.00407c78
push 0x42b488
lea esi, [ebp - 4]
call fcn.00407ab1
test eax, eax
jge 0x40cb12
push str._SILENCE
call fcn.00407ab1
test eax, eax
jge 0x40cb12
push 0x42b498
mov eax, esi
push eax
call fcn.00407a5c
push str._RSDOWN
lea eax, [ebp - 4]
push eax
call fcn.00407a5c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp eax, 0xffffffff
je 0x40cb55
test al, 0x10
jne 0x40cb55
mov eax, dword [ebp + 8]
push dword [eax + 0x7c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.0040d229
cmp dword [ebp - 0x18], ebx
je 0x40cb62
mov esi, dword [ebp - 8]
call fcn.0040d329
mov eax, dword [ebp + 8]
call fcn.0040c612
test eax, eax
je 0x40cbf5
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
lea ebx, [ebp - 0x34]
lea esi, [ebp - 0x54]
mov dword [ebp - 0x34], 0x2711
call fcn.0040d8aa
mov esi, dword [ebp + 8]
lea eax, [esi + 0xa4]
push eax
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
push dword [esi + 0x8c]
lea ecx, [ebp - 0x54]
call fcn.0040e22e
add esp, 0x20
push str.IsInstalled_success
push 0
push 1
push 6
lea eax, [esi + 0xd4]
call fcn.00401b49
lea esi, [ebp - 0x54]
call fcn.0040d915
jmp 0x40cc87
cmp dword [ebp - 0x1c], 0x8000000a
jne 0x40cc6f
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
lea ebx, [ebp - 0x38]
lea esi, [ebp - 0x60]
mov dword [ebp - 0x38], 0x2716
call fcn.0040d8aa
mov esi, dword [ebp + 8]
lea eax, [esi + 0xa4]
push eax
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
push dword [esi + 0x8c]
lea ecx, [ebp - 0x60]
call fcn.0040e22e
mov dword [esi + 0x74], 1
add esp, 0x20
lea esi, [ebp - 0x60]
call fcn.0040d915
xor ebx, ebx
mov eax, dword [ebp + 8]
push str.IsInstalled_failed
push dword [ebp - 0x1c]
add eax, 0xd4
push ebx
push 6
call fcn.00401b49
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00408191
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00408191
lea eax, [edi - 0x10]
call fcn.00408191
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408191
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00408191
mov eax, dword [ebp - 0x3c]
call fcn.00408191
xor eax, eax
inc eax
jmp 0x40ccf4
push str.Failed_to_execute_sfx.exe
push dword [ebp - 0x24]
lea eax, [esi + 0xd4]
push 0
push 6
call fcn.00401b49
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00408191
lea eax, [edi - 0x10]
call fcn.00408191
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4