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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449480
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3858
call fcn.00435250
mov eax, dword [0x4625e0]
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 - 0x3834], ebx
mov edi, edx
mov dword [ebp - 0x3850], edi
xor esi, esi
mov dword [ebp - 0x3820], esi
mov dword [ebp - 0x381c], esi
mov dword [ebp - 0x3824], esi
mov dword [ebp - 0x382c], esi
mov dword [ebp - 0x3828], 0xffffffff
mov dword [ebp - 0x3830], esi
push 0x800
push esi
lea eax, [ebp - 0x2818]
push eax
call fcn.00431f90
add esp, 0xc
push 0x800
push esi
lea ecx, [ebp - 0x1018]
push ecx
call fcn.00431f90
add esp, 0xc
push 0x800
push esi
lea edx, [ebp - 0x3018]
push edx
call fcn.00431f90
add esp, 0xc
push 0x800
push esi
lea eax, [ebp - 0x3818]
push eax
call fcn.00431f90
add esp, 0xc
push 0x800
push esi
lea ecx, [ebp - 0x1818]
push ecx
call fcn.00431f90
add esp, 0xc
push 0x800
push esi
lea edx, [ebp - 0x818]
push edx
call fcn.00431f90
add esp, 0xc
push 0x800
push esi
lea eax, [ebp - 0x2018]
push eax
call fcn.00431f90
add esp, 0xc
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x406e6a
cmp edi, esi
je 0x406e6a
mov eax, edi
lea edx, [eax + 2]
jmp 0x406720
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406720
sub eax, edx
sar eax, 1
je 0x406e6a
push edi
push str._r_n__Extract_files__7Zip_Extract__to___s__
mov ecx, 0x467200
call fcn.00405f70
push 0x800
push esi
lea ecx, [ebp - 0x2018]
push ecx
call fcn.00431f90
add esp, 0x14
mov eax, edi
lea ecx, [ebp - 0x2018]
call fcn.00401790
lea eax, [ebp - 0x2018]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406770
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x201a], 0x5c
jne 0x4067aa
lea eax, [ebp - 0x2018]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406793
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0x201a], si
lea edx, [ebp - 0x3824]
push edx
lea eax, [ebp - 0x381c]
push eax
push str.7ZIP
push ebx
mov ecx, str.DATALIST
call fcn.00406f20
mov dword [ebp - 0x3820], eax
lea ecx, [ebp - 0x2818]
call fcn.004072e0
lea edx, [ebp - 0x2818]
call fcn.00407e20
push str.7z.exe
lea ecx, [ebp - 0x2818]
push ecx
push 0x454448
push 0x400
lea edx, [ebp - 0x1018]
push edx
call fcn.00431065
add esp, 0x14
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406825
lea ecx, [ebp - 0x1018]
call fcn.004075c0
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x3828], edi
cmp edi, 0xffffffff
jne 0x40688c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x3820], esi
lea edx, [ebp - 0x1018]
push edx
push str.Create_File_Fail_____s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
mov dword [ebp - 0x3860], esi
push 0x45cadc
lea eax, [ebp - 0x3860]
push eax
call fcn.0043527b
push esi
lea ecx, [ebp - 0x382c]
push ecx
mov edx, dword [ebp - 0x3824]
push edx
mov ebx, dword [ebp - 0x381c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x467200
test eax, eax
lea eax, [ebp - 0x1018]
push eax
je 0x406e40
push str.Create_File_success___s_
call fcn.00405f70
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x4068dc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x381c], esi
mov dword [ebp - 0x3824], esi
mov dword [ebp - 0x382c], esi
mov dword [ebp - 0x3828], 0xffffffff
lea ecx, [ebp - 0x3824]
push ecx
lea edx, [ebp - 0x381c]
push edx
push str.7ZIPDLL
mov eax, dword [ebp - 0x3834]
push eax
mov ecx, str.DATALIST
call fcn.00406f20
mov dword [ebp - 0x3820], eax
push str.7z.dll
lea ecx, [ebp - 0x2818]
push ecx
push 0x454448
push 0x400
lea edx, [ebp - 0x3018]
push edx
call fcn.00431065
add esp, 0x14
lea eax, [ebp - 0x3018]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406963
lea ecx, [ebp - 0x3018]
call fcn.004075c0
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea ecx, [ebp - 0x3018]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x3828], edi
cmp edi, 0xffffffff
jne 0x4069ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x3820], esi
lea edx, [ebp - 0x3018]
push edx
push str.Create_File_Fail_____s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
mov dword [ebp - 0x383c], esi
push 0x45cadc
lea eax, [ebp - 0x383c]
push eax
call fcn.0043527b
push esi
lea ecx, [ebp - 0x382c]
push ecx
mov edx, dword [ebp - 0x3824]
push edx
mov ebx, dword [ebp - 0x381c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406e0a
lea eax, [ebp - 0x3018]
push eax
push str.Create_file_success___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x406a1a
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x381c], esi
mov dword [ebp - 0x3824], esi
mov dword [ebp - 0x382c], esi
mov dword [ebp - 0x3828], 0xffffffff
lea ecx, [ebp - 0x3824]
push ecx
lea edx, [ebp - 0x381c]
push edx
push str.PACKAGE
mov eax, dword [ebp - 0x3834]
push eax
mov ecx, str.DATALIST
call fcn.00406f20
mov dword [ebp - 0x3820], eax
push str.package.7z
lea ecx, [ebp - 0x2818]
push ecx
push 0x454448
push 0x400
lea edx, [ebp - 0x1818]
push edx
call fcn.00431065
add esp, 0x14
lea eax, [ebp - 0x1818]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406aa1
lea ecx, [ebp - 0x1818]
call fcn.004075c0
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea ecx, [ebp - 0x1818]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x3828], edi
cmp edi, 0xffffffff
jne 0x406b08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x3820], esi
lea edx, [ebp - 0x1818]
push edx
push str.Create_File_Fail_____s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
mov dword [ebp - 0x3840], esi
push 0x45cadc
lea eax, [ebp - 0x3840]
push eax
call fcn.0043527b
push esi
lea ecx, [ebp - 0x382c]
push ecx
mov edx, dword [ebp - 0x3824]
push edx
mov ebx, dword [ebp - 0x381c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x467200
test eax, eax
je 0x406dd9
lea eax, [ebp - 0x1818]
push eax
push str.Create_file_success___s_
call fcn.00405f70
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x406b58
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x381c], esi
mov dword [ebp - 0x3824], esi
mov dword [ebp - 0x382c], esi
mov dword [ebp - 0x3828], 0xffffffff
lea ecx, [ebp - 0x3824]
push ecx
lea edx, [ebp - 0x381c]
push edx
push str.SSZIPDLL
mov eax, dword [ebp - 0x3834]
push eax
mov ecx, str.DATALIST
call fcn.00406f20
mov dword [ebp - 0x3820], eax
push str.SS7Zip.dll
lea ecx, [ebp - 0x2818]
push ecx
push 0x454448
push 0x400
lea edx, [ebp - 0x818]
push edx
call fcn.00431065
add esp, 0x14
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406bdf
lea ecx, [ebp - 0x818]
call fcn.004075c0
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea ecx, [ebp - 0x818]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x3828], edi
cmp edi, 0xffffffff
jne 0x406c46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x3820], esi
lea edx, [ebp - 0x818]
push edx
push str.Create_File_Fail_____s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
mov dword [ebp - 0x3848], esi
push 0x45cadc
lea eax, [ebp - 0x3848]
push eax
call fcn.0043527b
push esi
lea ecx, [ebp - 0x382c]
push ecx
mov edx, dword [ebp - 0x3824]
push edx
mov ebx, dword [ebp - 0x381c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x467200
test eax, eax
lea eax, [ebp - 0x818]
push eax
je 0x406daf
push str.Create_file_success___s_
call fcn.00405f70
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x406c96
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x3828], 0xffffffff
mov dword [ebp - 0x381c], esi
lea ecx, [ebp - 0x818]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x3830], ebx
cmp ebx, esi
je 0x406d79
push str.SS7Zip_Extract
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea edx, [ebp - 0x818]
push edx
push str.Load___s__DLL_successed___
mov ecx, 0x467200
call fcn.00405f70
mov eax, dword [ebp - 0x3850]
push eax
lea ecx, [ebp - 0x1818]
push ecx
push str.x__t7z___s___o__s___aoa
push 0x400
lea edx, [ebp - 0x3818]
push edx
call fcn.00431065
add esp, 0x1c
lea eax, [ebp - 0x1018]
push eax
push str.Extract_Command_:___s_
mov ecx, 0x467200
call fcn.00405f70
lea ecx, [ebp - 0x3818]
push ecx
push str.Extract_Parameter_:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 0x10
cmp edi, esi
je 0x406d63
lea edx, [ebp - 0x3818]
push edx
lea eax, [ebp - 0x1018]
push eax
call edi
mov dword [ebp - 0x3820], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x406ec9
mov dword [ebp - 0x3820], 0xd
mov dword [ebp - 4], 0xffffffff
jmp 0x406ec9
lea ecx, [ebp - 0x818]
push ecx
push str.Load___s__DLL_fail__
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3858], eax
push 0x45cadc
lea edx, [ebp - 0x3858]
push edx
call fcn.0043527b
push str.Fail_to_create_DLL_file___s_
call fcn.00405f70
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3838], eax
push 0x45cadc
lea ecx, [ebp - 0x3838]
push ecx
call fcn.0043527b
lea edx, [ebp - 0x1818]
push edx
push str.Fail_to_create_package_file___s_
call fcn.00405f70
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x385c], eax
push 0x45cadc
lea eax, [ebp - 0x385c]
push eax
call fcn.0043527b
lea ecx, [ebp - 0x3018]
push ecx
push str.Fail_to_create_7_zip_DLL___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3854], eax
push 0x45cadc
lea edx, [ebp - 0x3854]
push edx
call fcn.0043527b
push str.Fail_to_create_zip_command_file.__s_
call fcn.00405f70
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3844], eax
push 0x45cadc
lea ecx, [ebp - 0x3844]
push ecx
call fcn.0043527b
mov dword [ebp - 0x384c], 0x57
push 0x45cadc
lea edx, [ebp - 0x384c]
push edx
call fcn.0043527b
mov eax, dword [ebp - 0x3868]
mov dword [ebp - 0x3820], eax
mov dword [ebp - 4], 0xffffffff
mov eax, 0x406e9e
ret
cmp ebx, esi
je 0x406ed4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2818]
call fcn.004075c0
mov eax, dword [ebp - 0x3820]
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.00431056
mov esp, ebp
pop ebp
ret