Function at 0x40e770
Capabilities:
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cf70
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x448684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x354], eax
mov dword [ebp - 4], 1
xor ebx, ebx
push 0x103
lea ecx, [ebp - 0x123]
push ebx
push ecx
mov dword [ebp - 0x334], ebx
mov byte [ebp - 0x124], bl
call fcn.00412950
add esp, 0xc
push 4
xor eax, eax
push 0x1000
push 0x105
push eax
mov byte [ebp - 0x20], bl
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [ebp + 0x40], 0x10
mov eax, dword [ebp + 0x2c]
jae 0x40e80b
lea eax, [ebp + 0x2c]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
mov esi, eax
push 0
push esi
call edi
push 0
lea edx, [ebp - 0x330]
push edx
push 4
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e89e
lea esp, [esp]
cmp byte [ebp - 0x20], 0x5b
jne 0x40e868
cmp byte [ebp - 0x1f], 0x5a
jne 0x40e868
cmp byte [ebp - 0x1e], 0x41
jne 0x40e868
cmp byte [ebp - 0x1d], 0x5d
je 0x40e8dc
push 1
push 0
push 0xfffffffffffffffd
push esi
call edi
inc ebx
cmp ebx, 0xf4240
jg 0x40eaea
push 0
lea ecx, [ebp - 0x330]
push ecx
push 4
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e850
mov dword [ebp - 0x334], ebx
push 0x1e
push str.Could_not_read_the_source_SFX.
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x338], 0xf
mov dword [ebp - 0x33c], 0
mov byte [ebp - 0x34c], 0
call fcn.004055e0
push 0x443ba4
lea eax, [ebp - 0x350]
push eax
call fcn.00412c01
push 0
lea ecx, [ebp - 0x330]
push ecx
push 4
lea edx, [ebp - 0x20]
push edx
push esi
mov dword [ebp - 0x334], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e948
lea esp, [esp]
cmp byte [ebp - 0x20], 0x5b
jne 0x40e918
cmp byte [ebp - 0x1f], 0x5a
jne 0x40e918
cmp byte [ebp - 0x1e], 0x58
jne 0x40e918
cmp byte [ebp - 0x1d], 0x5d
je 0x40e969
push 1
push 0
push 0xfffffffffffffffd
push esi
call edi
inc ebx
cmp ebx, 0x16e360
jg 0x40eae0
push 0
lea eax, [ebp - 0x330]
push eax
push 4
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e900
push str.Could_not_read_the_source_SFX.
lea ecx, [ebp - 0x350]
call fcn.00406860
push 0x443ba4
lea edx, [ebp - 0x350]
push edx
call fcn.00412c01
mov eax, dword [ebp - 0x334]
push 0
push 0
mov edi, ebx
push eax
sub edi, eax
push esi
add edi, 4
mov dword [0x449e78], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
push 0x1000
lea eax, [edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
lea ecx, [ebp - 0x330]
push ecx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x24], 0x10
mov eax, dword [ebp + 0x10]
jae 0x40e9bb
lea eax, [ebp + 0x10]
lea edx, [ebp - 0x124]
push edx
push 0
push 0x43e634
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ea32
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x32c]
push str.Cant_write_temp_file___s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x350]
call fcn.00406860
push 0x443ba4
lea ecx, [ebp - 0x350]
push ecx
call fcn.00412c01
push 0
lea edx, [ebp - 0x358]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x354]
lea eax, [ebp - 0x124]
push eax
call fcn.0040afc0
push 0x8000
xor edi, edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
mov esi, 0x10
cmp dword [ebp + 0x24], esi
jb 0x40ea93
mov edx, dword [ebp + 0x10]
push edx
call fcn.004127b1
add esp, 4
mov ebx, 0xf
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x20], edi
mov byte [ebp + 0x10], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x40], esi
jb 0x40eaba
mov eax, dword [ebp + 0x2c]
push eax
call fcn.004127b1
add esp, 4
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x3c], edi
mov byte [ebp + 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004126c6
mov esp, ebp
pop ebp
ret
push str.Could_not_get_file_info._This_archive_is_likely_corrupted.
jmp 0x40ea16
push 0x3a
push str.Could_not_get_file_info._This_archive_is_likely_corrupted.
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x338], 0xf
mov dword [ebp - 0x33c], 0
mov byte [ebp - 0x34c], 0
call fcn.004055e0
push 0x443ba4
lea edx, [ebp - 0x350]
push edx
jmp 0x40ea2d