Function at 0x4096f0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f870
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3850
call fcn.0042cb20
mov eax, dword [0x4575e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x382c], ebx
mov esi, edx
mov dword [ebp - 0x384c], esi
xor edi, edi
mov dword [ebp - 0x3824], edi
mov dword [ebp - 0x3820], edi
mov dword [ebp - 0x381c], edi
mov dword [ebp - 0x3828], edi
mov dword [ebp - 0x3844], edi
push 0x800
push edi
lea eax, [ebp - 0x2818]
push eax
call fcn.0042a280
add esp, 0xc
push 0x800
push edi
lea ecx, [ebp - 0x818]
push ecx
call fcn.0042a280
add esp, 0xc
push 0x800
push edi
lea edx, [ebp - 0x1818]
push edx
call fcn.0042a280
add esp, 0xc
push 0x800
push edi
lea eax, [ebp - 0x3818]
push eax
call fcn.0042a280
add esp, 0xc
push 0x800
push edi
lea ecx, [ebp - 0x2018]
push ecx
call fcn.0042a280
add esp, 0xc
push 0x800
push edi
lea edx, [ebp - 0x1018]
push edx
call fcn.0042a280
add esp, 0xc
push 0x800
push edi
lea eax, [ebp - 0x3018]
push eax
call fcn.0042a280
add esp, 0xc
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x409eba
cmp esi, edi
je 0x409eba
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409801
sub eax, edx
sar eax, 1
je 0x409eba
push esi
push str._r_n__Extract_files_to___s__
mov ecx, 0x45c218
call fcn.004055f0
push 0x800
push edi
lea ecx, [ebp - 0x3018]
push ecx
call fcn.0042a280
add esp, 0x14
mov eax, esi
lea ecx, [ebp - 0x3018]
call fcn.004017b0
lea eax, [ebp - 0x3018]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409851
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x301a], 0x5c
jne 0x40988b
lea eax, [ebp - 0x3018]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409874
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0x301a], di
lea edx, [ebp - 0x381c]
push edx
lea eax, [ebp - 0x3820]
push eax
push str.7ZIP
mov ecx, str.DATALIST
mov edx, ebx
call fcn.00409f00
mov dword [ebp - 0x3824], eax
lea ecx, [ebp - 0x2818]
call fcn.0040a2c0
lea edx, [ebp - 0x2818]
call fcn.00406460
push str.7z.exe
lea ecx, [ebp - 0x2818]
push ecx
push str._s_s
push 0x400
lea edx, [ebp - 0x818]
push edx
call fcn.0042984c
add esp, 0x14
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409907
lea ecx, [ebp - 0x818]
call fcn.00405c00
lea ecx, [ebp - 0x818]
push ecx
push str.Create_File___s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea edx, [ebp - 0x818]
push edx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x409983
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x3824], esi
lea eax, [ebp - 0x818]
push eax
push str.Create_File_Fail_____s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
mov dword [ebp - 0x3858], esi
push 0x4520b8
lea ecx, [ebp - 0x3858]
push ecx
call fcn.0042c6a6
push edi
lea edx, [ebp - 0x3828]
push edx
mov eax, dword [ebp - 0x381c]
push eax
mov ecx, dword [ebp - 0x3820]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409e8b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3820], edi
mov dword [ebp - 0x381c], edi
mov dword [ebp - 0x3828], edi
lea edx, [ebp - 0x381c]
push edx
lea eax, [ebp - 0x3820]
push eax
push str.7ZIPDLL
mov ecx, str.DATALIST
mov edx, dword [ebp - 0x382c]
call fcn.00409f00
mov dword [ebp - 0x3824], eax
push str.7z.dll
lea ecx, [ebp - 0x2818]
push ecx
push str._s_s
push 0x400
lea edx, [ebp - 0x1818]
push edx
call fcn.0042984c
add esp, 0x14
lea eax, [ebp - 0x1818]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409a2b
lea ecx, [ebp - 0x1818]
call fcn.00405c00
lea ecx, [ebp - 0x1818]
push ecx
push str.Create_File___s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea edx, [ebp - 0x1818]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x409aa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x3824], esi
lea eax, [ebp - 0x1818]
push eax
push str.Create_File_Fail_____s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
mov dword [ebp - 0x3848], esi
push 0x4520b8
lea ecx, [ebp - 0x3848]
push ecx
call fcn.0042c6a6
push edi
lea edx, [ebp - 0x3828]
push edx
mov eax, dword [ebp - 0x381c]
push eax
mov ecx, dword [ebp - 0x3820]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409e5c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3820], edi
mov dword [ebp - 0x381c], edi
mov dword [ebp - 0x3828], edi
lea edx, [ebp - 0x381c]
push edx
lea eax, [ebp - 0x3820]
push eax
push str.PACKAGE
mov ecx, str.DATALIST
mov edx, dword [ebp - 0x382c]
call fcn.00409f00
mov dword [ebp - 0x3824], eax
push str.package.7z
lea ecx, [ebp - 0x2818]
push ecx
push str._s_s
push 0x400
lea edx, [ebp - 0x2018]
push edx
call fcn.0042984c
add esp, 0x14
lea eax, [ebp - 0x2018]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409b49
lea ecx, [ebp - 0x2018]
call fcn.00405c00
lea ecx, [ebp - 0x2018]
push ecx
push str.Create_File___s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea edx, [ebp - 0x2018]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x409bbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x3824], esi
lea eax, [ebp - 0x2018]
push eax
push str.Create_File_Fail_____s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
mov dword [ebp - 0x3834], esi
push 0x4520b8
lea ecx, [ebp - 0x3834]
push ecx
call fcn.0042c6a6
push edi
lea edx, [ebp - 0x3828]
push edx
mov eax, dword [ebp - 0x381c]
push eax
mov ecx, dword [ebp - 0x3820]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409e2d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x381c]
push edx
lea eax, [ebp - 0x3820]
push eax
push str.SSZIPDLL
mov ecx, str.DATALIST
mov edx, dword [ebp - 0x382c]
call fcn.00409f00
mov dword [ebp - 0x3824], eax
push str.SS7Zip.dll
lea ecx, [ebp - 0x2818]
push ecx
push str._s_s
push 0x400
lea edx, [ebp - 0x1018]
push edx
call fcn.0042984c
add esp, 0x14
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409c55
lea ecx, [ebp - 0x1018]
call fcn.00405c00
lea ecx, [ebp - 0x1018]
push ecx
push str.Create_File___s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea edx, [ebp - 0x1018]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x409ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x3824], esi
lea eax, [ebp - 0x1018]
push eax
push str.Create_File_Fail_____s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
mov dword [ebp - 0x383c], esi
push 0x4520b8
lea ecx, [ebp - 0x383c]
push ecx
call fcn.0042c6a6
push edi
lea edx, [ebp - 0x3828]
push edx
mov eax, dword [ebp - 0x381c]
push eax
mov ecx, dword [ebp - 0x3820]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409dfe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
je 0x409d30
push str.SS7Zip_Extract
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
lea eax, [ebp - 0x1018]
push eax
push str.Load___s__DLL_successed___
mov ecx, 0x45c218
call fcn.004055f0
jmp 0x409d4c
lea ecx, [ebp - 0x1018]
push ecx
push str.Load___s__DLL_fail__
mov ecx, 0x45c218
call fcn.004055f0
mov ebx, dword [ebp - 0x3844]
add esp, 8
mov edx, dword [ebp - 0x384c]
push edx
lea eax, [ebp - 0x2018]
push eax
push str.x__t7z___s___o__s___aoa
push 0x400
lea ecx, [ebp - 0x3818]
push ecx
call fcn.0042984c
add esp, 0x14
lea edx, [ebp - 0x818]
push edx
push str.Extract_Command_:___s_
mov ecx, 0x45c218
call fcn.004055f0
lea eax, [ebp - 0x3818]
push eax
push str.Extract_Parameter_:___s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 0x10
cmp ebx, edi
je 0x409dbf
lea ecx, [ebp - 0x3818]
push ecx
lea edx, [ebp - 0x818]
push edx
call ebx
mov dword [ebp - 0x3824], eax
cmp esi, edi
je 0x409dca
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2818]
call fcn.00405c00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3824]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042955b
mov esp, ebp
pop ebp
ret
push str.Fail_to_write_zip_command_file.
mov ecx, 0x45c218
call fcn.004055f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3830], eax
push 0x4520b8
lea eax, [ebp - 0x3830]
push eax
call fcn.0042c6a6
push str.Fail_to_write_compressed_package_file.
mov ecx, 0x45c218
call fcn.004055f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3854], eax
push 0x4520b8
lea ecx, [ebp - 0x3854]
push ecx
call fcn.0042c6a6
push str.Fail_to_write_zip_command_file.
mov ecx, 0x45c218
call fcn.004055f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3838], eax
push 0x4520b8
lea edx, [ebp - 0x3838]
push edx
call fcn.0042c6a6
push str.Fail_to_write_zip_command_file.
mov ecx, 0x45c218
call fcn.004055f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3850], eax
push 0x4520b8
lea eax, [ebp - 0x3850]
push eax
call fcn.0042c6a6
mov dword [ebp - 0x3840], 0x57
push 0x4520b8
lea ecx, [ebp - 0x3840]
push ecx
call fcn.0042c6a6
push str.GPF_in_CSelfExtraction::Extract__
mov ecx, 0x45c218
call fcn.004055f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 0x409ddc
ret