Function at 0x405456
Capabilities:
Check if file exists
Create process on windows
Delete file
Get common file path
Get file attributes
Self delete

Disassembly:
push ebp
sub esp, 0x834
lea ebp, [esp - 4]
mov eax, dword [0x41b2e4]
xor eax, ebp
mov dword [ebp + 0x834], eax
push 0x1c
mov eax, 0x416db4
call fcn.00412d49
mov eax, dword [ebp + 0x840]
mov ecx, fcn.00405a81
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x405a40
test eax, eax
je 0x405a40
push str.Preparing_data_file..._n
push 0
call fcn.00405a81
pop ecx
pop ecx
lea eax, [ebp + 0x310]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x62c]
push eax
lea eax, [ebp + 0x730]
push eax
lea eax, [ebp + 0x310]
push eax
call fcn.004053f4
push str.Generate_temp_filename_ok._n
push 0x14
call fcn.00405a81
lea eax, [ebp + 0x730]
push eax
call fcn.00405336
or esi, 0xffffffff
add esp, 0x18
cmp eax, esi
jne 0x4054fc
mov eax, esi
jmp 0x405a43
push str.Extract_resource_file_ok._n
push 0x28
call fcn.00405a81
lea eax, [ebp + 0x62c]
push eax
lea eax, [ebp + 0x730]
push eax
call fcn.00404b5c
add esp, 0x10
test eax, eax
je 0x405531
push str.Fail_to_decompress_the_data__n
push esi
call fcn.00405a81
pop ecx
pop ecx
jmp 0x4054f5
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x730]
push eax
call esi
push str.Uncompress_resource_finish._n
push 0x3c
call fcn.00405a81
lea eax, [ebp + 0x62c]
push eax
lea edi, [ebp - 0x20]
call fcn.00405272
add esp, 0xc
cmp eax, 0xffffffff
je 0x405a40
push str.Load_resource_ok._n
push 0x4b
call fcn.00405a81
mov edi, 0x310
push edi
lea eax, [ebp]
push 0
push eax
call fcn.00405fe0
push edi
push dword [ebp - 0x20]
lea eax, [ebp]
push eax
call fcn.00405c70
mov eax, dword [ebp]
add esp, 0x20
test eax, eax
jbe 0x405a13
imul eax, eax, 0x124
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp]
imul ecx, ecx, 0x124
push ecx
push 0
push eax
mov dword [ebp - 0x1c], eax
call fcn.00405fe0
mov eax, dword [ebp]
imul eax, eax, 0x124
push eax
mov eax, dword [ebp - 0x20]
add eax, edi
push eax
push dword [ebp - 0x1c]
call fcn.00405c70
push str.Get_information_of_pack_ok._n
push 0x64
call fcn.00405a81
add esp, 0x20
lea eax, [ebp + 0x62c]
push eax
call esi
mov esi, dword [ebp]
imul esi, esi, 0x124
add esi, edi
push str.Start_up_unpack_files_..._n
xor edi, edi
push edi
call fcn.00405a81
pop ecx
pop ecx
cmp dword [ebp], edi
jbe 0x405722
mov eax, dword [ebp - 0x1c]
add eax, 0x20
mov dword [ebp - 0x18], eax
push 0x10b
lea eax, [ebp + 0x415]
push 0
push eax
mov byte [ebp + 0x414], 0
call fcn.00405fe0
push ebx
lea eax, [ebp + 0x730]
push 0
push eax
call fcn.00405fe0
push 0x5c
push dword [ebp - 0x18]
call fcn.00407220
add esp, 0x20
test eax, eax
je 0x40565d
inc eax
push eax
jmp 0x405660
push dword [ebp - 0x18]
lea eax, [ebp + 0x414]
push 0x10c
push eax
call fcn.004071ae
add esp, 0xc
lea eax, [ebp + 0x414]
push eax
lea eax, [ebp + 0x310]
push eax
push 0x419044
lea eax, [ebp + 0x730]
push ebx
push eax
call fcn.00407348
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 4]
push esi
push dword [ebp - 0x20]
add eax, 0xffffffe0
push eax
lea eax, [ebp + 0x730]
push eax
mov dword [ebp - 0x28], ecx
call fcn.004051c8
add esp, 0x24
cmp eax, 0xffffffff
je 0x40599f
mov eax, dword [ebp]
inc edi
mov dword [ebp - 0x14], edi
fild dword [ebp - 0x14]
fild dword [ebp]
test eax, eax
jge 0x4056d4
fadd qword [0x419170]
fdivp st(1)
fmul qword [0x419168]
call fcn.00412e60
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push str._s_.._ok._n
lea eax, [ebp + 0x414]
push 0x10c
push eax
call fcn.00407348
lea eax, [ebp + 0x414]
push eax
push dword [ebp - 0x14]
call fcn.00405a81
add esi, dword [ebp - 0x28]
add dword [ebp - 0x18], 0x124
add esp, 0x18
cmp edi, dword [ebp]
jb 0x40561f
push str.Install_file_to_destination_..._n
push 0
call fcn.00405a81
xor edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x18], edi
cmp dword [ebp], edi
jbe 0x405877
mov esi, dword [ebp - 0x1c]
add esi, 0x20
push 0x10b
lea eax, [ebp + 0x521]
push 0
push eax
mov byte [ebp + 0x520], 0
call fcn.00405fe0
push ebx
lea eax, [ebp + 0x730]
push 0
push eax
call fcn.00405fe0
push ebx
lea eax, [ebp + 0x62c]
push 0
push eax
call fcn.00405fe0
push 0x5c
push esi
call fcn.00407220
add esp, 0x2c
test eax, eax
je 0x40578f
inc eax
push eax
jmp 0x405790
push esi
lea eax, [ebp + 0x520]
push 0x10c
push eax
call fcn.004071ae
add esp, 0xc
lea eax, [ebp + 0x520]
push eax
lea eax, [ebp + 0x310]
push eax
lea eax, [ebp + 0x730]
push 0x419044
push eax
call fcn.00405a66
lea eax, [ebp + 4]
push eax
call fcn.00407480
add esp, 0x14
push esi
test eax, eax
jbe 0x4057da
lea eax, [ebp + 4]
push eax
jmp 0x4057dd
push dword [ebp - 0x24]
lea eax, [ebp + 0x62c]
push str._s_s
push eax
call fcn.00405a66
add esp, 0x10
lea eax, [ebp + 0x62c]
push eax
lea eax, [ebp + 0x730]
push eax
call fcn.00405170
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x40599f
mov eax, dword [ebp]
inc edi
mov dword [ebp - 0x14], edi
fild dword [ebp - 0x14]
fild dword [ebp]
test eax, eax
jge 0x405826
fadd qword [0x419170]
fdivp st(1)
fmul qword [0x419168]
call fcn.00412e60
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x62c]
push eax
push str._s_.._ok._n
lea eax, [ebp + 0x520]
push 0x10c
push eax
call fcn.00407348
lea eax, [ebp + 0x520]
push eax
push dword [ebp - 0x14]
call fcn.00405a81
add esp, 0x18
add esi, 0x124
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp]
jb 0x405744
push ebx
lea eax, [ebp + 0x730]
push 0
push eax
call fcn.00405fe0
push ebx
xor esi, esi
lea eax, [ebp + 0x62c]
push esi
push eax
call fcn.00405fe0
push str.Register_install_information._n
push 0x64
call fcn.00405a81
lea eax, [ebp + 0x108]
push eax
call fcn.00407480
add esp, 0x24
test eax, eax
jbe 0x40599f
push ebx
lea eax, [ebp + 0x730]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00405fe0
lea eax, [ebp + 4]
add esp, 0xc
push eax
call fcn.00407480
test eax, eax
pop ecx
lea eax, [ebp + 0x108]
push eax
jbe 0x4058e8
lea eax, [ebp + 4]
push eax
jmp 0x4058eb
push dword [ebp - 0x24]
push str._s_s
lea eax, [ebp + 0x730]
push ebx
push eax
call fcn.00407348
lea eax, [ebp + 0x20c]
add esp, 0x14
push eax
call fcn.00407480
mov esi, eax
add esi, 0x40
push esi
call fcn.004073b5
mov dword [ebp - 0x14], eax
mov eax, dword [0x41ed28]
pop ecx
pop ecx
test eax, eax
jbe 0x40596c
lea ecx, [ebp + 0x20c]
push ecx
push eax
push str.start__u__s
push esi
push dword [ebp - 0x14]
call fcn.00407348
add esp, 0x14
lea eax, [ebp + 0x730]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40596c
push 0
push dword [ebp - 0x24]
lea eax, [ebp + 0x730]
push dword [ebp - 0x14]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x14]
call fcn.00406847
or dword [ebp - 4], 0xffffffff
pop ecx
jmp 0x40598d
push ebx
lea eax, [ebp + 0x730]
push 0
push eax
call fcn.00405fe0
add esp, 0xc
push str.Deleting_temp_files_..._n
push 0x64
call fcn.00405a81
pop ecx
pop ecx
mov esi, edi
test edi, edi
jl 0x405a04
mov eax, dword [ebp - 0x1c]
imul edi, edi, 0x124
lea edi, [edi + eax + 0x20]
push ebx
lea eax, [ebp + 0x62c]
push 0
push eax
call fcn.00405fe0
push edi
lea eax, [ebp + 0x310]
push eax
push 0x419044
lea eax, [ebp + 0x62c]
push ebx
push eax
call fcn.00407348
add esp, 0x20
lea eax, [ebp + 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec esi
sub edi, 0x124
test esi, esi
jge 0x4059c0
push str.Extract_files_successful._n
push 0x64
call fcn.00405a81
pop ecx
jmp 0x405a1d
push str.Have_not_pack_of_file__n
call fcn.00404e0f
cmp dword [ebp - 0x1c], 0
pop ecx
je 0x405a2d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x20], 0
je 0x405a3c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x405a43
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x834]
xor ecx, ebp
call fcn.00405c56
add ebp, 0x838
leave
ret