Function at 0x40545f
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, 0x416ce4
call fcn.00412c79
mov eax, dword [ebp + 0x840]
mov ecx, fcn.00405a97
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x405a56
test eax, eax
je 0x405a56
push str.Preparing_data_file..._n
push 0
call fcn.00405a97
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.004053fd
push str.Generate_temp_filename_ok._n
push 0x14
call fcn.00405a97
lea eax, [ebp + 0x730]
push eax
call fcn.0040533f
or esi, 0xffffffff
add esp, 0x18
cmp eax, esi
jne 0x405505
mov eax, esi
jmp 0x405a59
push str.Extract_resource_file_ok._n
push 0x28
call fcn.00405a97
lea eax, [ebp + 0x62c]
push eax
lea eax, [ebp + 0x730]
push eax
call fcn.00404b5c
add esp, 0x10
test eax, eax
je 0x40553a
push str.Fail_to_decompress_the_data__n
push esi
call fcn.00405a97
pop ecx
pop ecx
jmp 0x4054fe
lea eax, [ebp + 0x730]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.Uncompress_resource_finish._n
push 0x3c
call fcn.00405a97
lea eax, [ebp + 0x62c]
push eax
lea edi, [ebp - 0x28]
call fcn.0040527b
add esp, 0xc
cmp eax, esi
je 0x4054fe
push str.Load_resource_ok._n
push 0x4b
call fcn.00405a97
push 0x310
lea eax, [ebp]
push 0
push eax
call fcn.00408840
mov esi, dword [ebp - 0x28]
mov ecx, 0xc4
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp]
xor edi, edi
add esp, 0x14
cmp eax, edi
jbe 0x405a30
imul eax, eax, 0x124
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp]
imul eax, eax, 0x124
push eax
push edi
push dword [ebp - 0x24]
call fcn.00408840
mov eax, dword [ebp]
imul eax, eax, 0x124
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x310
push eax
push dword [ebp - 0x24]
call fcn.00409230
push str.Get_information_of_pack_ok._n
push 0x64
call fcn.00405a97
add esp, 0x20
lea eax, [ebp + 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp]
imul esi, esi, 0x124
push str.Start_up_unpack_files_..._n
push edi
add esi, 0x310
call fcn.00405a97
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp], edi
jbe 0x405730
mov edi, dword [ebp - 0x24]
add edi, 0x20
push 0x10b
lea eax, [ebp + 0x521]
push 0
push eax
mov byte [ebp + 0x520], 0
call fcn.00408840
push ebx
lea eax, [ebp + 0x730]
push 0
push eax
call fcn.00408840
push 0x5c
push edi
call fcn.00406e40
add esp, 0x20
test eax, eax
je 0x405668
inc eax
push eax
jmp 0x405669
push edi
lea eax, [ebp + 0x520]
push 0x10c
push eax
call fcn.00406dcf
add esp, 0xc
lea eax, [ebp + 0x520]
push eax
lea eax, [ebp + 0x310]
push eax
push 0x419044
lea eax, [ebp + 0x730]
push ebx
push eax
call fcn.00406e6d
mov eax, dword [edi - 4]
push esi
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [edi - 0x20]
push eax
lea eax, [ebp + 0x730]
push eax
call fcn.004051d1
add esp, 0x24
cmp eax, 0xffffffff
je 0x4059b4
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp]
fild dword [ebp - 0x14]
fild dword [ebp]
test eax, eax
jge 0x4056dd
fadd qword [0x419170]
fdivp st(1)
fmul qword [0x419168]
call fcn.00412d90
push edi
push str._s_.._ok._n
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x520]
push 0x10c
push eax
call fcn.00406e6d
lea eax, [ebp + 0x520]
push eax
push dword [ebp - 0x18]
call fcn.00405a97
mov eax, dword [ebp - 0x14]
add esi, dword [ebp - 0x1c]
add esp, 0x18
add edi, 0x124
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp]
jb 0x40562c
xor edi, edi
push str.Install_file_to_destination_..._n
push edi
call fcn.00405a97
xor esi, esi
pop ecx
pop ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp], edi
jbe 0x40588f
mov eax, dword [ebp - 0x24]
add eax, 0x20
mov dword [ebp - 0x1c], eax
push 0x10b
lea eax, [ebp + 0x415]
push edi
push eax
mov byte [ebp + 0x414], 0
call fcn.00408840
push ebx
lea eax, [ebp + 0x730]
push edi
push eax
call fcn.00408840
push ebx
lea eax, [ebp + 0x62c]
push edi
push eax
call fcn.00408840
push 0x5c
push dword [ebp - 0x1c]
call fcn.00406e40
add esp, 0x2c
cmp eax, edi
je 0x40579e
inc eax
push eax
jmp 0x4057a1
push dword [ebp - 0x1c]
lea eax, [ebp + 0x414]
push 0x10c
push eax
call fcn.00406dcf
add esp, 0xc
lea eax, [ebp + 0x414]
push eax
lea eax, [ebp + 0x310]
push eax
lea eax, [ebp + 0x730]
push 0x419044
push eax
call fcn.00405a7c
lea eax, [ebp + 4]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4057dd
sub eax, edx
push dword [ebp - 0x1c]
je 0x4057f1
lea eax, [ebp + 4]
push eax
jmp 0x4057f4
push dword [ebp - 0x20]
lea eax, [ebp + 0x62c]
push str._s_s
push eax
call fcn.00405a7c
add esp, 0x10
lea eax, [ebp + 0x62c]
push eax
lea eax, [ebp + 0x730]
push eax
call fcn.00405179
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x4059b9
mov eax, dword [ebp]
inc esi
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fild dword [ebp]
test eax, eax
jge 0x40583d
fadd qword [0x419170]
fdivp st(1)
fmul qword [0x419168]
call fcn.00412d90
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x62c]
push eax
push str._s_.._ok._n
lea eax, [ebp + 0x414]
push 0x10c
push eax
call fcn.00406e6d
lea eax, [ebp + 0x414]
push eax
push dword [ebp - 0x18]
call fcn.00405a97
add dword [ebp - 0x1c], 0x124
add esp, 0x18
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp]
jb 0x405754
push ebx
lea eax, [ebp + 0x730]
push edi
push eax
call fcn.00408840
push ebx
lea eax, [ebp + 0x62c]
push edi
push eax
call fcn.00408840
push str.Register_install_information._n
push 0x64
call fcn.00405a97
lea eax, [ebp + 0x108]
add esp, 0x20
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4058c3
sub eax, ecx
je 0x4059b9
push ebx
lea eax, [ebp + 0x730]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00408840
lea eax, [ebp + 4]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4058ec
sub eax, edx
lea eax, [ebp + 0x108]
push eax
je 0x405904
lea eax, [ebp + 4]
push eax
jmp 0x405907
push dword [ebp - 0x20]
push str._s_s
lea eax, [ebp + 0x730]
push ebx
push eax
call fcn.00406e6d
lea eax, [ebp + 0x20c]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405925
sub eax, edx
lea esi, [eax + 0x40]
push esi
call fcn.00406eda
mov dword [ebp - 0x18], eax
mov eax, dword [0x41ed48]
pop ecx
cmp eax, edi
jbe 0x405989
lea ecx, [ebp + 0x20c]
push ecx
push eax
push str.start__u__s
push esi
push dword [ebp - 0x18]
call fcn.00406e6d
add esp, 0x14
lea eax, [ebp + 0x730]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405989
push edi
push dword [ebp - 0x20]
lea eax, [ebp + 0x730]
push dword [ebp - 0x18]
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x18]
call fcn.00406468
pop ecx
jmp 0x4059a1
push ebx
lea eax, [ebp + 0x730]
push edi
push eax
call fcn.00408840
add esp, 0xc
jmp 0x4059b6
xor edi, edi
mov esi, dword [ebp - 0x14]
push str.Deleting_temp_files_..._n
push 0x64
call fcn.00405a97
cmp esi, edi
pop ecx
pop ecx
mov dword [ebp - 0x20], esi
jl 0x405a21
mov eax, dword [ebp - 0x24]
imul esi, esi, 0x124
lea esi, [esi + eax + 0x20]
push ebx
lea eax, [ebp + 0x62c]
push edi
push eax
call fcn.00408840
push esi
lea eax, [ebp + 0x310]
push eax
push 0x419044
lea eax, [ebp + 0x62c]
push ebx
push eax
call fcn.00406e6d
add esp, 0x20
lea eax, [ebp + 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec dword [ebp - 0x20]
sub esi, 0x124
cmp dword [ebp - 0x20], edi
jge 0x4059db
push str.Extract_files_successful._n
push 0x64
call fcn.00405a97
pop ecx
jmp 0x405a3a
push str.Have_not_pack_of_file__n
call fcn.00404e18
pop ecx
cmp dword [ebp - 0x24], edi
je 0x405a49
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x405a59
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.00405c6c
add ebp, 0x838
leave
ret