Function at 0x402d4e
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov edx, dword [ebp + 8]
push ebx
xor ecx, ecx
cmp edx, ecx
push esi
push edi
je case.default.0x402dc1
mov esi, dword [edx + 0x1c]
cmp esi, ecx
je case.default.0x402dc1
cmp dword [edx + 0xc], ecx
je case.default.0x402dc1
cmp dword [edx], ecx
jne 0x402d85
cmp dword [edx + 4], ecx
jne case.default.0x402dc1
cmp dword [esi], 0xb
jne 0x402d90
mov dword [esi], 0xc
mov eax, dword [edx + 0xc]
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x402e43
jmp dword [eax*4 + 0x403daf]
cmp dword [esi + 8], 0
jne 0x402df8
mov dword [esi], 0xc
jmp 0x402e43
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x10
jb 0x402dd6
mov eax, dword [esi + 8]
test al, 2
je 0x402e56
cmp ebx, 0x8b1f
jne 0x402e56
xor edi, edi
push edi
push edi
push edi
call fcn.00404ec5
mov dword [esi + 0x14], eax
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x18], 0x1f
mov byte [ebp - 0x17], 0x8b
push dword [esi + 0x14]
call fcn.00404ec5
add esp, 0x18
xor ebx, ebx
mov dword [esi + 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [esi], 1
mov edx, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 0x1c
jbe switch.0x00402dc1
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
and dword [esi + 0x10], 0
test al, 1
je 0x402ee7
mov eax, ebx
and eax, 0xff
shl eax, 8
mov ecx, ebx
shr ecx, 8
add eax, ecx
push 0x1f
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x402ee7
mov eax, ebx
and al, 0xf
cmp al, 8
je 0x402e95
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x403749
shr ebx, 4
mov eax, ebx
and eax, 0xf
add eax, 8
sub edi, 4
cmp eax, dword [esi + 0x1c]
mov dword [ebp - 0x10], ebx
jbe 0x402eba
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x403749
xor edi, edi
push edi
push edi
push edi
call fcn.004048c4
mov ecx, dword [ebp + 8]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
jmp 0x402e40
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
jmp 0x403c82
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x10
jb 0x402ef6
cmp bl, 8
mov dword [esi + 0x10], ebx
je 0x402f31
mov dword [edx + 0x18], str.unknown_compression_method
jmp 0x403c82
test bh, 0xe0
je 0x402f42
mov dword [edx + 0x18], str.unknown_header_flags_set
jmp 0x403c82
test bh, 2
je 0x402f67
mov byte [ebp - 0x18], bl
push 2
lea eax, [ebp - 0x18]
shr ebx, 8
push eax
mov byte [ebp - 0x17], bl
push dword [esi + 0x14]
call fcn.00404ec5
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 2
jmp case.0x402dc1.2
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
jb 0x402f73
test byte [esi + 0x11], 2
je 0x402fcd
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x16], al
mov byte [ebp - 0x18], bl
push 4
lea eax, [ebp - 0x18]
shr ebx, 0x18
push eax
mov byte [ebp - 0x15], bl
push dword [esi + 0x14]
call fcn.00404ec5
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 3
jmp case.0x402dc1.3
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x402fd9
test byte [esi + 0x11], 2
je 0x403023
mov byte [ebp - 0x18], bl
push 2
lea eax, [ebp - 0x18]
shr ebx, 8
push eax
mov byte [ebp - 0x17], bl
push dword [esi + 0x14]
call fcn.00404ec5
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 4
test byte [esi + 0x11], 4
je 0x40308c
jmp 0x403057
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x403038
test byte [esi + 0x11], 2
mov dword [esi + 0x38], ebx
je 0x403085
mov byte [ebp - 0x18], bl
push 2
lea eax, [ebp - 0x18]
shr ebx, 8
push eax
mov byte [ebp - 0x17], bl
push dword [esi + 0x14]
call fcn.00404ec5
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 5
test byte [esi + 0x11], 4
je 0x4030e0
mov eax, dword [esi + 0x38]
cmp eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jbe 0x4030a9
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4030d6
test byte [esi + 0x11], 2
je 0x4030cd
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.00404ec5
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [esi + 0x38], eax
cmp dword [esi + 0x38], 0
jne 0x403cd0
mov dword [esi], 6
test byte [esi + 0x11], 8
je 0x40313f
cmp dword [ebp - 4], 0
je 0x403cd0
xor eax, eax
mov ecx, dword [ebp - 8]
movzx ecx, byte [eax + ecx]
inc eax
test ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], eax
je 0x40310f
cmp eax, dword [ebp - 4]
jb 0x4030f8
test byte [esi + 0x11], 0x20
je 0x40312f
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.00404ec5
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
jne 0x403cd0
mov dword [esi], 7
test byte [esi + 0x11], 0x10
je 0x40319e
cmp dword [ebp - 4], 0
je 0x403cd0
xor eax, eax
mov ecx, dword [ebp - 8]
movzx ecx, byte [eax + ecx]
inc eax
test ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], eax
je 0x40316e
cmp eax, dword [ebp - 4]
jb 0x403157
test byte [esi + 0x11], 0x20
je 0x40318e
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.00404ec5
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
jne 0x403cd0
mov dword [esi], 8
test byte [esi + 0x11], 2
je 0x4031f2
jmp 0x4031ce
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x10
jb 0x4031ac
mov eax, dword [esi + 0x14]
and eax, 0xffff
cmp ebx, eax
je 0x4031eb
mov dword [edx + 0x18], str.header_crc_mismatch
jmp 0x403c82
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
xor eax, eax
push eax
push eax
push eax
call fcn.00404ec5
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], 0xb
jmp 0x402e40
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x20
jb 0x403213
mov eax, ebx
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0xe]
shl eax, 8
shr ebx, 0x18
add eax, ecx
add eax, ebx
mov dword [esi + 0x14], eax
mov dword [edx + 0x30], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 0xa
cmp dword [esi + 0xc], 0
je 0x403c8d
xor eax, eax
push eax
push eax
push eax
call fcn.004048c4
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], 0xb
mov edx, ecx
cmp dword [ebp + 0xc], 5
je 0x403cd0
cmp dword [esi + 4], 0
je 0x4032d5
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x18
mov dword [ebp - 0x10], ebx
jmp 0x402e43
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 3
jb 0x4032b6
mov eax, ebx
and eax, 1
shr ebx, 1
mov dword [esi + 4], eax
mov eax, ebx
and eax, 3
dec edi
sub eax, 0
je 0x403333
dec eax
je 0x40330f
dec eax
je 0x403307
dec eax
jne 0x403339
mov dword [edx + 0x18], str.invalid_block_type
mov dword [esi], 0x1b
jmp 0x403339
mov dword [esi], 0xf
jmp 0x403339
mov dword [esi + 0x44], 0x406da0
mov dword [esi + 0x4c], 9
mov dword [esi + 0x48], 0x4075a0
mov dword [esi + 0x50], 5
mov dword [esi], 0x12
jmp 0x403339
mov dword [esi], 0xd
shr ebx, 2
dec edi
mov dword [ebp - 0x10], ebx
dec edi
jmp 0x402e43
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
jmp 0x403370
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
mov dword [ebp - 0x10], ebx
jb 0x403351
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x403396
mov dword [edx + 0x18], str.invalid_stored_block_lengths
jmp 0x403c82
xor ebx, ebx
mov dword [esi + 0x38], eax
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 0xe
mov eax, dword [esi + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x403904
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], eax
jbe 0x4033bf
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jbe 0x4033ca
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403cd0
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [ebp - 0x14], eax
add dword [ebp - 0x1c], eax
add esp, 0xc
sub dword [esi + 0x38], eax
jmp 0x402e40
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0xe
jb 0x4033fc
mov eax, ebx
and eax, 0x1f
add eax, 0x101
mov dword [esi + 0x58], eax
shr ebx, 5
mov eax, ebx
and eax, 0x1f
inc eax
shr ebx, 5
mov dword [esi + 0x5c], eax
mov eax, ebx
and eax, 0xf
add eax, 4
shr ebx, 4
sub edi, 0xe
cmp dword [esi + 0x58], 0x11e
mov dword [esi + 0x54], eax
mov dword [ebp - 0x10], ebx
ja 0x40346b
cmp dword [esi + 0x5c], 0x1e
ja 0x40346b
and dword [esi + 0x60], 0
mov dword [esi], 0x10
jmp case.0x402dc1.16
mov dword [edx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x403c82
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 3
jb 0x403477
mov ecx, dword [esi + 0x60]
movzx ecx, word [ecx*2 + 0x407620]
xor eax, eax
mov al, bl
shr ebx, 3
mov dword [ebp - 0x10], ebx
and eax, 7
mov word [esi + ecx*2 + 0x68], ax
inc dword [esi + 0x60]
sub edi, 3
mov eax, dword [esi + 0x60]
cmp eax, dword [esi + 0x54]
jb 0x403496
jmp 0x4034dc
mov eax, dword [esi + 0x60]
movzx eax, word [eax*2 + 0x407620]
and word [esi + eax*2 + 0x68], 0
inc dword [esi + 0x60]
cmp dword [esi + 0x60], 0x13
jb 0x4034c8
lea eax, [esi + 0x528]
lea ecx, [esi + 0x64]
mov dword [ecx], eax
mov dword [esi + 0x44], eax
lea edx, [esi + 0x2e8]
push edx
lea eax, [esi + 0x4c]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [esi + 0x68]
push eax
push 0
call fcn.00404535
mov edx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x40352a
mov eax, edx
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x403c82
and dword [esi + 0x60], 0
mov dword [esi], 0x11
jmp case.0x402dc1.17
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
mov ecx, dword [esi + 0x4c]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x44]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x403539
cmp word [ebp - 0xa], 0x10
jae 0x4035c3
movzx ecx, ah
mov dword [ebp - 0x10], ecx
jmp 0x4035a4
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x10]
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, ecx
jb 0x403582
mov eax, dword [esi + 0x60]
shr ebx, cl
sub edi, ecx
mov cx, word [ebp - 0xa]
mov word [esi + eax*2 + 0x68], cx
inc dword [esi + 0x60]
mov dword [ebp - 0x10], ebx
jmp case.0x402dc1.17
jne 0x403622
movzx ecx, ah
mov dword [ebp - 0x10], ecx
jmp 0x4035ef
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x10]
add ebx, eax
inc dword [ebp - 8]
add edi, 8
lea eax, [ecx + 2]
cmp edi, eax
jb 0x4035cd
mov eax, dword [esi + 0x60]
shr ebx, cl
sub edi, ecx
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x4036ee
movzx eax, word [esi + eax*2 + 0x66]
mov dword [ebp - 0x28], eax
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
dec edi
dec edi
jmp 0x4036b2
cmp word [ebp - 0xa], 0x11
movzx eax, ah
mov dword [ebp - 0x10], eax
jne 0x403690
jmp 0x403653
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add edi, 8
add eax, 3
cmp edi, eax
jb 0x403631
mov ecx, dword [ebp - 0x10]
shr ebx, cl
push 0xfffffffffffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x4036a9
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add edi, 8
add eax, 7
cmp edi, eax
jb 0x40366e
mov ecx, dword [ebp - 0x10]
shr ebx, cl
push 0xfffffffffffffff9
mov eax, ebx
and eax, 0x7f
add eax, 0xb
shr ebx, 7
and dword [ebp - 0x28], 0
pop edx
sub edx, ecx
add edi, edx
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
add edx, dword [esi + 0x58]
add ecx, eax
cmp ecx, edx
mov dword [ebp - 0x10], ebx
ja 0x4036f7
test eax, eax
je 0x4036da
mov ecx, dword [esi + 0x60]
mov dx, word [ebp - 0x28]
mov word [esi + ecx*2 + 0x68], dx
inc dword [esi + 0x60]
dec eax
jne 0x4036c8
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
add eax, dword [esi + 0x58]
cmp dword [esi + 0x60], eax
jb 0x403558
jmp 0x403707
mov dword [edx + 0x18], str.invalid_bit_length_repeat
jmp 0x403701
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [esi], 0x1b
lea eax, [esi + 0x528]
lea ecx, [esi + 0x64]
mov dword [ecx], eax
mov dword [esi + 0x44], eax
lea edx, [esi + 0x2e8]
push edx
lea eax, [esi + 0x4c]
push eax
push ecx
push dword [esi + 0x58]
mov dword [eax], 9
lea eax, [esi + 0x68]
push eax
push 1
call fcn.00404535
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x403754
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
mov dword [esi], 0x1b
jmp 0x402e40
lea ecx, [esi + 0x64]
mov eax, dword [ecx]
mov dword [esi + 0x48], eax
lea edx, [esi + 0x2e8]
push edx
lea eax, [esi + 0x50]
push eax
push ecx
push dword [esi + 0x5c]
mov dword [eax], 6
mov eax, dword [esi + 0x58]
lea eax, [esi + eax*2 + 0x68]
push eax
push 2
call fcn.00404535
mov edx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x40379b
mov eax, edx
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x403c82
mov dword [esi], 0x12
cmp dword [ebp - 4], 6
jb 0x403803
cmp dword [ebp - 0x14], 0x102
jb 0x403803
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
push eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
call fcn.00404186
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
pop ecx
pop ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ebx
jmp 0x402e40
mov ecx, dword [esi + 0x4c]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [esi + 0x44]
mov eax, dword [eax + ecx*4]
jmp 0x403848
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x4c]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x44]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x403818
test al, al
je 0x4038dd
test al, 0xf0
jne 0x4038dd
movzx edx, ah
xor ecx, ecx
mov cl, al
mov dword [ebp - 0x28], eax
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
movzx edx, byte [ebp - 0x27]
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0xa]
add eax, ecx
mov ecx, eax
mov eax, dword [esi + 0x44]
mov eax, dword [eax + ecx*4]
jmp 0x4038c8
cmp dword [ebp - 4], 0
je 0x403ccd
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
xor ecx, ecx
mov cl, byte [ebp - 0x28]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x26]
add eax, ecx
mov ecx, dword [esi + 0x44]
mov eax, dword [ecx + eax*4]
movzx ecx, ah
add ecx, edx
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x40388a
mov ecx, edx
shr ebx, cl
sub edi, edx
mov edx, dword [ebp + 8]
movzx ecx, ah
shr ebx, cl
movzx ecx, ah
sub edi, ecx
test al, al
movzx ecx, word [ebp - 0xa]
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x38], ecx
jne 0x403900
mov dword [esi], 0x17
jmp 0x402e43
test al, 0x20
je 0x40390f
mov dword [esi], 0xb
jmp 0x402e43
test al, 0x40
je 0x40391f
mov dword [edx + 0x18], str.invalid_literal_length_code
jmp 0x403c82
and eax, 0xf
mov dword [esi + 0x40], eax
mov dword [esi], 0x13
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40396c
cmp edi, eax
jae 0x40395a
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 8]
cmp edi, dword [esi + 0x40]
jb 0x403936
mov ecx, dword [esi + 0x40]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
add dword [esi + 0x38], eax
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x14
mov ecx, dword [esi + 0x50]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [esi + 0x48]
mov eax, dword [eax + ecx*4]
jmp 0x4039b7
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x50]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x48]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x403987
test al, 0xf0
jne 0x403a44
movzx edx, ah
xor ecx, ecx
mov cl, al
mov dword [ebp - 0x28], eax
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
movzx edx, byte [ebp - 0x27]
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0xa]
add eax, ecx
mov ecx, eax
mov eax, dword [esi + 0x48]
mov eax, dword [eax + ecx*4]
jmp 0x403a2f
cmp dword [ebp - 4], 0
je 0x403ccd
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
xor ecx, ecx
mov cl, byte [ebp - 0x28]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x26]
add eax, ecx
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + eax*4]
movzx ecx, ah
add ecx, edx
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x4039f1
mov ecx, edx
shr ebx, cl
sub edi, edx
mov edx, dword [ebp + 8]
movzx ecx, ah
shr ebx, cl
movzx ecx, ah
sub edi, ecx
test al, 0x40
mov dword [ebp - 0x10], ebx
je 0x403a61
mov dword [edx + 0x18], str.invalid_distance_code
jmp 0x403c82
movzx ecx, word [ebp - 0xa]
and eax, 0xf
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], eax
mov dword [esi], 0x15
mov eax, dword [esi + 0x40]
test eax, eax
je 0x403ab8
cmp edi, eax
jae 0x403aa3
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 8]
cmp edi, dword [esi + 0x40]
jb 0x403a7f
mov ecx, dword [esi + 0x40]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
add dword [esi + 0x3c], eax
shr ebx, cl
sub edi, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 0x24]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
cmp dword [esi + 0x3c], eax
jbe 0x403ad2
mov dword [edx + 0x18], str.invalid_distance_too_far_back
jmp 0x403c82
mov dword [esi], 0x16
cmp dword [ebp - 0x14], 0
je 0x403cd0
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x3c]
cmp ecx, eax
jbe 0x403b1c
sub ecx, eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x28]
cmp dword [ebp - 0xc], ecx
jbe 0x403b0a
add eax, dword [esi + 0x20]
sub dword [ebp - 0xc], ecx
sub eax, dword [ebp - 0xc]
jmp 0x403b0f
sub eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [esi + 0x38]
cmp dword [ebp - 0xc], ecx
mov dword [ebp - 0x28], ecx
jbe 0x403b2a
jmp 0x403b27
mov eax, dword [ebp - 0x1c]
sub eax, ecx
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 0xc], ecx
jbe 0x403b35
mov dword [ebp - 0xc], ecx
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], ecx
mov edx, dword [ebp - 0x1c]
mov cl, byte [eax]
inc dword [ebp - 0x1c]
inc eax
dec dword [ebp - 0xc]
mov byte [edx], cl
jne 0x403b44
cmp dword [esi + 0x38], 0
jne 0x402e40
mov dword [esi], 0x12
jmp 0x402e40
cmp dword [ebp - 0x14], 0
je 0x403cd0
mov ecx, dword [ebp - 0x1c]
mov al, byte [esi + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x14]
mov byte [ecx], al
mov dword [esi], 0x12
jmp 0x402e43
cmp dword [esi + 8], 0
je 0x403c3f
jmp 0x403bba
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x20
jb 0x403b98
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
add dword [edx + 0x14], eax
add dword [esi + 0x18], eax
test eax, eax
mov dword [ebp - 0x20], eax
je 0x403bff
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x20]
sub eax, dword [ebp - 0x20]
cmp dword [esi + 0x10], 0
push eax
push dword [esi + 0x14]
je 0x403bec
call fcn.00404ec5
jmp 0x403bf1
call fcn.004048c4
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
add esp, 0xc
mov dword [ecx + 0x30], eax
mov edx, ecx
cmp dword [esi + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, ebx
jne 0x403c2a
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0xe]
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [esi + 0x14]
je 0x403c38
mov dword [edx + 0x18], str.incorrect_data_check
jmp 0x403c82
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 0x19
cmp dword [esi + 8], 0
je 0x403cb5
cmp dword [esi + 0x10], 0
je 0x403cb5
jmp 0x403c71
cmp dword [ebp - 4], 0
je 0x403cd0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x20
jb 0x403c53
cmp ebx, dword [esi + 0x18]
je 0x403cb1
mov dword [edx + 0x18], str.incorrect_length_check
mov dword [esi], 0x1b
jmp 0x402e43
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
push 2
jmp 0x402e50
xor ebx, ebx
xor edi, edi
mov dword [esi], 0x1a
mov dword [ebp - 0x24], 1
jmp 0x403cd0
mov dword [ebp - 0x24], 0xfffffffd
jmp 0x403cd0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
cmp dword [esi + 0x20], 0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
jne 0x403d03
cmp dword [esi], 0x18
jge 0x403d1f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
je 0x403d1f
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
call fcn.00402c76
test eax, eax
je 0x403d1f
mov dword [esi], 0x1c
push 0xfffffffffffffffc
jmp 0x402e50
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
sub eax, dword [edi + 4]
mov ebx, dword [ebp - 0x20]
sub ebx, dword [edi + 0x10]
add dword [edi + 8], eax
add dword [edi + 0x14], ebx
add dword [esi + 0x18], ebx
cmp dword [esi + 8], 0
mov dword [ebp - 0x2c], eax
je 0x403d6c
test ebx, ebx
je 0x403d6c
mov eax, dword [edi + 0xc]
push ebx
sub eax, ebx
cmp dword [esi + 0x10], 0
push eax
push dword [esi + 0x14]
je 0x403d5b
call fcn.00404ec5
jmp 0x403d60
call fcn.004048c4
mov dword [esi + 0x14], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [esi], 0xb
jne 0x403d78
mov ecx, 0x80
jmp 0x403d7a
xor ecx, ecx
mov edx, dword [esi + 4]
neg edx
sbb edx, edx
and edx, 0x40
add edx, dword [esi + 0x34]
add edx, ecx
test eax, eax
mov dword [edi + 0x2c], edx
jne 0x403d94
test ebx, ebx
je 0x403d9a
cmp dword [ebp + 0xc], 4
jne 0x403da7
cmp dword [ebp - 0x24], 0
jne 0x403da7
mov dword [ebp - 0x24], 0xfffffffb
mov eax, dword [ebp - 0x24]
jmp 0x402e51