Function at 0x4026c0
Capabilities:
Check if file exists
Create cabinet on windows
Extract cabinet on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x580
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x402719
cmp word [ebx], 0x2d
jne 0x402719
movzx eax, word [ebx + 2]
sub eax, 0x64
cmp ax, 0x12
ja case.0x40298d.1
movzx eax, ax
jmp dword [eax*4 + 0x4054c4]
mov dword [0x407018], 1
mov ebx, edi
lea edi, [ebx + 4]
mov ebx, dword [ebx + 8]
sub esi, 1
test ebx, ebx
jne 0x4026d9
cmp esi, 2
jle case.0x40298d.1
cmp word [ebx], 0
je case.0x40298d.1
cmp word [ebx + 2], 0
je 0x402890
nop
mov dword [esp], str.Usage:_cabarc__options__command_file.cab__files...___dest_dir__n_nCommands:_n___L___List_the_contents_of_the_cabinet_n___N___Create_a_new_cabinet_n___X___Extract_files_from_the_cabinet_into_dest_dir_n_nOptions:_n___d_size__Set_maximum_disk_size_n___h_______Display_this_help_n___i_id____Set_cabinet_id_n___m_type__Set_compression_type__mszipnone__n___p_______Preserve_directory_names_n___r_______Recurse_into_directories_n___s_size__Reserve_space_in_the_cabinet_header_n___v_______More_verbose_output_n
call sym._wine_dbg_printf
mov ebx, 1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [0x40700c], 1
jmp 0x40270a
mov dword [esp + 8], 0xa
lea ebx, [edi + 4]
sub esi, 1
mov dword [esp + 4], 0
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [0x407010], eax
jmp 0x40270c
mov dword [0x407014], 1
jmp 0x40270a
mov dword [esp + 4], str.none
mov eax, dword [edi + 8]
mov ebx, dword [sym.imp.ucrtbase.dll_wcscmp]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x402868
mov dword [section..data], eax
lea ebx, [edi + 4]
sub esi, 1
jmp 0x40270c
mov dword [esp + 8], 0xa
lea ebx, [edi + 4]
sub esi, 1
mov dword [esp + 4], 0
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [0x40701c], eax
jmp 0x40270c
mov dword [esp], str.Usage:_cabarc__options__command_file.cab__files...___dest_dir__n_nCommands:_n___L___List_the_contents_of_the_cabinet_n___N___Create_a_new_cabinet_n___X___Extract_files_from_the_cabinet_into_dest_dir_n_nOptions:_n___d_size__Set_maximum_disk_size_n___h_______Display_this_help_n___i_id____Set_cabinet_id_n___m_type__Set_compression_type__mszipnone__n___p_______Preserve_directory_names_n___r_______Recurse_into_directories_n___s_size__Reserve_space_in_the_cabinet_header_n___v_______More_verbose_output_n
xor ebx, ebx
call sym._wine_dbg_printf
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
lea ebx, [edi + 4]
sub esi, 1
mov dword [esp + 4], 0
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [0x404004], eax
cmp eax, 0xc34f
jg 0x40270c
mov dword [esp], str.cabarc:_Cabinet_size_must_be_at_least_50000_n
call sym._wine_dbg_printf
jmp 0x40273c
mov dword [esp + 4], str.mszip
mov eax, dword [edi + 8]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x402dd0
mov eax, 1
jmp 0x4027be
mov edx, dword [edi + 8]
xor eax, eax
call sym._strdupWtoA
mov dword [ebp - 0x54c], eax
mov ecx, eax
lea eax, [ebp - 0x548]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x538]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x104
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
sub esp, 0x10
test eax, eax
je 0x402cdf
mov edx, dword [ebp - 0x548]
test edx, edx
je 0x402cdf
lea eax, [esi - 2]
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x550], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x554], edx
mov dword [esp], ecx
mov ecx, dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [ebp - 0x558], ecx
call ecx
mov edx, dword [ebp - 0x554]
cmp dword [ebp - 0x550], 1
lea eax, [edi + 0xc]
mov byte [edx], 0
je 0x40296a
mov dword [ebp - 0x554], ebx
lea edx, [edi + esi*4]
mov ecx, eax
mov dword [ebp + 8], esi
mov esi, edx
nop
mov edx, dword [ecx]
movzx ebx, word [edx]
test bx, bx
je 0x40295a
lea esi, [esi]
cmp bx, 0x2f
jne 0x40294e
mov ebx, 0x5c
mov word [edx], bx
movzx ebx, word [edx + 2]
add edx, 2
test bx, bx
jne 0x402940
add ecx, 4
cmp ecx, esi
jne 0x402930
mov ebx, dword [ebp - 0x554]
mov esi, dword [ebp + 8]
mov dword [section..bss], eax
lea eax, [ebp - 0x434]
mov dword [0x407008], eax
movzx eax, word [ebx]
sub eax, 0x4c
cmp ax, 0x2c
ja case.0x40298d.1
movzx eax, ax
jmp dword [eax*4 + 0x405510]
cmp dword [ebp - 0x550], 1
je 0x4029c8
add edi, 8
mov edx, dword [edi + esi*4 - 0xc]
cmp word [edx], 0
je 0x4029c8
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x4029ac
cmp word [eax - 2], 0x5c
jne 0x4029c8
xor eax, eax
mov dword [0x407004], edx
mov dword [edi + esi*4 - 0xc], eax
test byte [0x404008], 8
jne 0x402e40
lea eax, [ebp - 0x330]
mov dword [esp + 0x1c], 0xffffffff
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], sym._fdi_lseek
mov dword [esp + 0x14], sym._fdi_close
mov dword [esp + 0x10], sym._fdi_write
mov dword [esp + 0xc], sym._fdi_read
mov dword [esp + 8], sym._fdi_open
mov dword [esp + 4], sym._cab_free
mov dword [esp], sym._cab_alloc
call sym._FDICreate
mov dword [esp + 0x18], 0
mov esi, eax
lea eax, [ebp - 0x538]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], sym._extract_notify
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [0x407008]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._FDICopy
test eax, eax
jne 0x402a7c
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
test byte [0x404008], 4
jne 0x402e8a
mov dword [esp], esi
call sym._FDIDestroy
jmp 0x402741
mov eax, dword [0x404004]
lea esi, [ebp - 0x10e]
xor edi, edi
mov dword [ebp - 0x32c], 0x7fffffff
mov dword [ebp - 0x324], 0
lea ebx, [ebp - 0x330]
mov dword [ebp - 0x330], eax
mov eax, dword [0x407010]
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x328], eax
mov eax, dword [0x40701c]
mov dword [ebp - 0x31c], 0
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x538]
mov dword [ebp - 0x318], 0
mov byte [ebp - 0x30e], 0
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x558]
call eax
mov dword [esp], esi
call sym._strlen
mov ecx, 0x5c
mov edx, 1
mov word [ebp + eax - 0x10e], cx
lea ecx, [ebp - 0x434]
lea eax, [ebp - 0x20e]
call sym._format_cab_name
lea eax, [ebp - 0x544]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], sym._fci_get_temp
mov dword [esp + 0x24], sym._fci_delete
mov dword [esp + 0x20], sym._fci_lseek
mov dword [esp + 0x1c], sym._fci_close
mov dword [esp + 0x18], sym._fci_write
mov dword [esp + 0x14], sym._fci_read
mov dword [esp + 0x10], sym._fci_open
mov dword [esp + 0xc], sym._cab_free
mov dword [esp + 8], sym._cab_alloc
mov dword [esp + 4], sym._fci_file_placed
mov dword [esp], eax
call sym._FCICreate
mov ebx, dword [section..bss]
mov esi, eax
mov edx, dword [ebx]
test edx, edx
jne 0x402bd6
jmp 0x402c2a
mov dword [esp + 8], sym._fci_status
mov dword [esp + 4], sym._fci_get_next_cab
mov dword [esp], esi
call sym._FCIFlushFolder
mov edx, dword [ebx + 4]
add ebx, 4
test edx, edx
je 0x402ee0
mov dword [esp + 4], 0x405402
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x402bb0
mov edi, dword [ebx]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x402d82
test al, 0x10
je 0x402d72
mov edx, dword [0x407018]
test edx, edx
je 0x402d24
mov edx, edi
mov eax, esi
call sym._add_directory
mov edi, eax
test edi, edi
jne 0x402bc8
mov ebx, 1
mov dword [esp], esi
call sym._FCIDestroy
jmp 0x402741
lea eax, [ebp - 0x330]
mov dword [esp + 0x1c], 0xffffffff
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], sym._fdi_lseek
mov dword [esp + 0x14], sym._fdi_close
mov dword [esp + 0x10], sym._fdi_write
mov dword [esp + 0xc], sym._fdi_read
mov dword [esp + 8], sym._fdi_open
mov dword [esp + 4], sym._cab_free
mov dword [esp], sym._cab_alloc
call sym._FDICreate
mov dword [esp + 0x18], 0
mov esi, eax
lea eax, [ebp - 0x538]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], sym._list_notify
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [0x407008]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._FDICopy
test eax, eax
jne 0x402a7c
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
jmp 0x402a7c
test byte [0x404008], 2
je 0x40273c
mov eax, dword [ebp - 0x54c]
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0xc], str.cannot_get_full_name_for__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404008
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40273c
test edi, edi
je 0x402e36
mov eax, edi
shr eax, 0x10
je 0x402e21
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x402d5d
mov eax, edi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 4], eax
mov dword [esp], str.cabarc:_Cannot_add__s__its_a_directory__use__r_for_recursive_add__n
call sym._wine_dbg_printf
jmp 0x402c2a
mov edx, edi
mov eax, esi
call sym._add_file
mov edi, eax
jmp 0x402c26
test edi, edi
je 0x402ecc
mov eax, edi
shr eax, 0x10
je 0x402eb7
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x402dbb
mov eax, edi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 4], eax
mov dword [esp], str.cannot_open__s_n
call sym._wine_dbg_printf
jmp 0x402c2a
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x402ed6
mov eax, ebx
shr eax, 0x10
je 0x402e78
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x402e0c
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 4], eax
mov dword [esp], str.cabarc:_Unknown_compression_type__s_n
call sym._wine_dbg_printf
jmp 0x40273c
mov dword [esp + 4], edi
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402d5d
mov eax, str._null_
jmp 0x402d5d
mov eax, dword [ebp - 0x54c]
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0xc], str.Extracting_file_s__from_cabinet__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404008
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4029d5
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402e0c
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.FDICopy___failed:_code__u_n
mov dword [esp + 8], str.extract_cabinet
mov dword [esp + 4], 0x404008
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x402a7c
mov dword [esp + 4], edi
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402dbb
mov eax, str._null_
jmp 0x402dbb
mov eax, str._null_
jmp 0x402e0c
test edi, edi
je 0x402c2a
mov dword [esp + 0xc], sym._fci_status
xor ebx, ebx
mov dword [esp + 8], sym._fci_get_next_cab
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._FCIFlushCabinet
test eax, eax
jne 0x402c2f
mov eax, dword [0x407008]
call sym._wine_dbgstr_an.constprop.0
mov dword [esp], str.cabarc:_Failed_to_create_cabinet__s_n
mov dword [esp + 4], eax
call sym._wine_dbg_printf
jmp 0x402c2a