Function at 0x408d47
Capabilities:
Delete file
Get common file path
Read .ini file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push edi
and dword [ebp - 0x370], 0
and dword [ebp - 0x35c], 0
and dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0x4e20
and dword [ebp - 4], 0
and dword [ebp - 0x358], 0
mov al, byte [0x410f90]
mov byte [ebp - 0x20c], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x410f90]
mov byte [ebp - 0x108], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x410f90]
mov byte [ebp - 0x878], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x877]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x410f90]
mov byte [ebp - 0x32c], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x32b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x410f90]
mov byte [ebp - 0x770], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x76f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x410f90]
mov byte [ebp - 0x350], al
xor eax, eax
lea edi, [ebp - 0x34f]
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
mov al, byte [0x410f90]
mov byte [ebp - 0x36c], al
xor eax, eax
lea edi, [ebp - 0x36b]
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
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push 0x4115c0
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [0x4119e0], eax
push 0x104
push 0x411b20
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push 0x411b20
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [0x4119d8], eax
push 0
push 0
push dword [ebp - 0x214]
push dword [0x4119d8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 1
pop eax
test eax, eax
je 0x408f58
push 0
lea eax, [ebp - 0x354]
push eax
push 4
lea eax, [ebp - 0x36c]
push eax
push dword [0x4119d8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x408eeb
push str.Could_not_read_the_source_SFX.
call fcn.00406228
pop ecx
movsx eax, byte [ebp - 0x36c]
cmp eax, 0x5b
jne 0x408f1d
movsx eax, byte [ebp - 0x36b]
cmp eax, 0x46
jne 0x408f1d
movsx eax, byte [ebp - 0x36a]
cmp eax, 0x45
jne 0x408f1d
movsx eax, byte [ebp - 0x369]
cmp eax, 0x5d
jne 0x408f1d
jmp 0x408f58
push 1
push 0
push 0xfffffffffffffffd
push dword [0x4119d8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0x7a120
jle 0x408f53
push str.Could_not_get_file_info._This_archive_is_likely_corrupted.
call fcn.00406228
pop ecx
jmp 0x408eb3
mov eax, dword [ebp - 0x214]
mov dword [ebp - 4], eax
push 1
pop eax
test eax, eax
je 0x408ffd
push 0
lea eax, [ebp - 0x354]
push eax
push 4
lea eax, [ebp - 0x36c]
push eax
push dword [0x4119d8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x408f99
push str.Could_not_read_the_source_SFX.
call fcn.00406228
pop ecx
movsx eax, byte [ebp - 0x36c]
cmp eax, 0x50
jne 0x408fcb
movsx eax, byte [ebp - 0x36b]
cmp eax, 0x4b
jne 0x408fcb
movsx eax, byte [ebp - 0x36a]
cmp eax, 3
jne 0x408fcb
movsx eax, byte [ebp - 0x369]
cmp eax, 4
jne 0x408fcb
jmp 0x408ffd
push 1
push 0
push 0xfffffffffffffffd
push dword [0x4119d8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xc3500
jle 0x408ff8
push str.Could_not_get_file_info._This_archive_is_likely_corrupted.
call fcn.00406228
pop ecx
jmp 0x408f61
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x214]
add eax, 4
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 4]
mov dword [0x410f70], eax
push 0
push 0
push dword [ebp - 0x214]
push dword [0x4119d8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 4
push 0x1000
mov eax, dword [ebp - 0x358]
inc eax
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [0x4119d0], eax
push 0
lea eax, [ebp - 0x354]
push eax
push dword [ebp - 0x358]
push dword [0x4119d0]
push dword [0x4119d8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
push 0
push 0x40d6b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
push 0
push 0
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [0x4115a8], eax
cmp dword [0x4115a8], 0xffffffff
jne 0x4090cd
push str.Cant_write_temp_file
call fcn.00406228
pop ecx
push 0
lea eax, [ebp - 0x774]
push eax
push dword [ebp - 0x358]
push dword [0x4119d0]
push dword [0x4115a8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [0x4115a8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x108]
push eax
push 0
push str.ZipSize
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x410f74], eax
lea eax, [ebp - 0x108]
push eax
push 0
push str.Delete
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x410f78], eax
lea eax, [ebp - 0x108]
push eax
push 0
push str.NoGUI
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x410e64], eax
lea eax, [ebp - 0x108]
push eax
push 0
push str.Debug
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x410e6c], eax
lea eax, [ebp - 0x108]
push eax
push 0xff
push 0x40dd50
push str.Unnamed_Archive
push str.Name
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 0xff
push 0x40de50
push 0x410f90
push str.Exec
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 0x104
push 0x4113a0
push 0x410f90
push str.DefaultPath
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 0x400
push 0x410fa0
push 0x410f90
push str.Intro
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 6
lea eax, [ebp - 0x228]
push eax
push str.FALSE
push str.AutoExtract
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 6
lea eax, [ebp - 0x340]
push eax
push str.FALSE
push str.OpenFolder
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 0x80
push 0x40df54
push 0x410f90
push 0x40d620
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 0xff
push 0x40e454
push 0x410f90
push str.Author
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push 1
pop eax
test eax, eax
je 0x409324
push dword [ebp - 0x210]
push str.Shortcut_d
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x400
lea eax, [ebp - 0x770]
push eax
push 0x410f90
lea eax, [ebp - 0x350]
push eax
push 0x40d6b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x770]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jne 0x4092ff
jmp 0x409324
lea eax, [ebp - 0x770]
push eax
push 0x4119e8
call fcn.00409d67
pop ecx
pop ecx
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
jmp 0x4092a0
mov eax, dword [ebp - 0x35c]
movsx eax, byte [eax + 0x410fa0]
test eax, eax
je 0x409382
mov eax, dword [ebp - 0x35c]
movsx eax, byte [eax + 0x410fa0]
cmp eax, 0x5c
jne 0x409373
mov eax, dword [ebp - 0x35c]
movsx eax, byte [eax + 0x410fa1]
cmp eax, 0x6e
jne 0x409373
mov eax, dword [ebp - 0x35c]
mov byte [eax + 0x410fa0], 0x20
mov eax, dword [ebp - 0x35c]
mov byte [eax + 0x410fa1], 0xa
mov eax, dword [ebp - 0x35c]
inc eax
mov dword [ebp - 0x35c], eax
jmp 0x409324
push 0x40d608
lea eax, [ebp - 0x228]
push eax
call fcn.0040680b
pop ecx
pop ecx
test eax, eax
jne 0x4093a3
mov dword [0x410e58], 1
push 0x4113a0
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jne 0x4093dd
cmp dword [0x410e58], 0
je 0x4093cd
push str._temp_
push 0x4113a0
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x4093dd
push str._curdir_
push 0x4113a0
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x4113a0
call fcn.00406b82
pop ecx
push eax
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x32c]
push eax
push 0x4113a0
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x4113a0
push 0x411a00
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x4113a0
call fcn.00407278
pop ecx
push eax
push 0x4113a0
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x411a00
call fcn.00407278
pop ecx
push eax
push 0x411a00
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x40d608
lea eax, [ebp - 0x340]
push eax
call fcn.0040680b
pop ecx
pop ecx
test eax, eax
jne 0x409467
mov dword [0x410e5c], 1
push 0x8000
push 0
push dword [0x4119d0]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
leave
ret