Function at 0x402b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
and esp, 0xfffffff0
sub esp, 0x20
mov edi, dword [ebp + 8]
call dbg.__main
mov dword [esp], str.DZX0_v1.5:_Data_decompressor_by_Einar_Saukas
call sym._puts
cmp edi, 1
mov edx, dword [ebp + 0xc]
mov eax, 1
jle 0x402b8d
nop
mov esi, dword [edx + eax*4]
cmp byte [esi], 0x2d
jne 0x402b82
cmp byte [esi + 1], 0x66
je 0x402b70
mov dword [esp], 2
call dword [0x40301c]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Error:_Invalid_parameter__s_n
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call sym._exit
lea esi, [esi]
nop
cmp byte [esi + 2], 0
jne 0x402b3e
add eax, 1
mov ebx, 1
cmp edi, eax
jne 0x402b30
lea ecx, [eax + 1]
cmp ecx, edi
je 0x402c89
lea ecx, [eax + 2]
cmp ecx, edi
jne 0x402da4
mov ecx, dword [edx + eax*4]
mov dword [0x405410], ecx
mov eax, dword [edx + eax*4 + 4]
mov dword [0x405414], eax
mov eax, dword [0x405410]
mov dword [esp + 4], 0x404188
mov dword [esp], eax
call sym._fopen
mov dword [0x4053f4], eax
test eax, eax
je 0x402d71
test ebx, ebx
je 0x402c39
mov eax, dword [0x405414]
mov dword [esp + 4], 0x4041d8
mov dword [esp], eax
call sym._fopen
mov dword [0x40541c], eax
test eax, eax
je 0x402d3e
call sym._decompress
mov eax, dword [0x4053f4]
mov dword [esp], eax
call sym._fclose
mov eax, dword [0x40541c]
mov dword [esp], eax
call sym._fclose
mov eax, dword [0x4053fc]
mov dword [esp], str.File_decompressed_from__lu_to__lu_bytes__n
mov dword [esp + 8], eax
mov eax, dword [0x405408]
mov dword [esp + 4], eax
call sym._printf
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x405414]
mov dword [esp + 4], 0x404188
mov dword [esp], eax
call sym._fopen
test eax, eax
je 0x402bd0
mov ebx, dword [0x405414]
mov dword [esp], 2
call dword [0x40301c]
mov dword [esp + 4], str.Error:_Already_existing_output_file__s_n
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call sym._exit
mov esi, dword [edx + eax*4]
or edx, 0xffffffff
xor eax, eax
mov ecx, edx
mov dword [0x405410], esi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [0x405408], eax
cmp eax, 4
jbe 0x402d05
lea eax, [esi + ecx - 5]
mov dword [esp + 4], str..zx0
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x402d05
or edx, 0xffffffff
mov edi, esi
mov ecx, edx
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
lea edi, [edx - 1]
mov dword [esp], edi
mov dword [0x405408], edi
call sym._malloc
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [0x405414], eax
mov dword [esp + 0x1c], eax
call sym._strcpy
mov edx, dword [esp + 0x1c]
mov byte [edx + edi - 4], 0
jmp 0x402baa
mov dword [esp], 2
call dword [0x40301c]
mov dword [esp + 8], 0x24
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Error:_Cannot_infer_output_filename_n
call sym._fwrite
mov dword [esp], 1
call sym._exit
mov ebx, dword [0x405414]
mov dword [esp], 2
call dword [0x40301c]
mov dword [esp + 4], str.Error:_Cannot_create_output_file__s_n
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call sym._exit
mov ebx, dword [0x405410]
mov dword [esp], 2
call dword [0x40301c]
mov dword [esp + 4], str.Error:_Cannot_access_input_file__s_n
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call sym._exit
mov ebx, dword [edx]
mov dword [esp], 2
call dword [0x40301c]
mov dword [esp + 4], str.Usage:__s___f__input.zx0__output__n___f______Force_overwrite_of_output_file_n
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call sym._exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop