Function at 0x10031624
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.0x10031353
mov esi, dword [edx + 0x1c]
cmp esi, ecx
je case.default.0x10031353
cmp dword [edx + 0xc], ecx
je case.default.0x10031353
cmp dword [edx], ecx
jne 0x10031317
cmp dword [edx + 4], ecx
jne case.default.0x10031353
cmp dword [esi], 0xb
jne 0x10031322
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 0x100313d5
jmp dword [eax*4 + 0x10032341]
cmp dword [esi + 8], 0
jne 0x1003138a
mov dword [esi], 0xc
jmp 0x100313d5
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031368
mov eax, dword [esi + 8]
test al, 2
je 0x100313e8
cmp ebx, 0x8b1f
jne 0x100313e8
xor edi, edi
push edi
push edi
push edi
call fcn.100301fc
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.100301fc
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.0x10031353
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
and dword [esi + 0x10], 0
test al, 1
je 0x10031479
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 0x10031479
mov eax, ebx
and al, 0xf
cmp al, 8
je 0x10031427
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x10031cdb
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 0x1003144c
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x10031cdb
xor edi, edi
push edi
push edi
push edi
call fcn.1002fe96
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 0x100313d2
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
jmp 0x10032214
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031488
cmp bl, 8
mov dword [esi + 0x10], ebx
je 0x100314c3
mov dword [edx + 0x18], str.unknown_compression_method
jmp 0x10032214
test bh, 0xe0
je 0x100314d4
mov dword [edx + 0x18], str.unknown_header_flags_set
jmp 0x10032214
test bh, 2
je 0x100314f9
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.100301fc
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.0x10031353.2
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031505
test byte [esi + 0x11], 2
je 0x1003155f
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.100301fc
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.0x10031353.3
cmp dword [ebp - 4], 0
je 0x10032262
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 0x1003156b
test byte [esi + 0x11], 2
je 0x100315b5
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.100301fc
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 0x1003161e
jmp 0x100315e9
cmp dword [ebp - 4], 0
je 0x10032262
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 0x100315ca
test byte [esi + 0x11], 2
mov dword [esi + 0x38], ebx
je 0x10031617
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.100301fc
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 0x10031672
mov eax, dword [esi + 0x38]
cmp eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jbe 0x1003163b
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10031668
test byte [esi + 0x11], 2
je 0x1003165f
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.100301fc
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 0x10032262
mov dword [esi], 6
test byte [esi + 0x11], 8
je 0x100316d1
cmp dword [ebp - 4], 0
je 0x10032262
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 0x100316a1
cmp eax, dword [ebp - 4]
jb 0x1003168a
test byte [esi + 0x11], 0x20
je 0x100316c1
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.100301fc
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 0x10032262
mov dword [esi], 7
test byte [esi + 0x11], 0x10
je 0x10031730
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031700
cmp eax, dword [ebp - 4]
jb 0x100316e9
test byte [esi + 0x11], 0x20
je 0x10031720
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.100301fc
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 0x10032262
mov dword [esi], 8
test byte [esi + 0x11], 2
je 0x10031784
jmp 0x10031760
cmp dword [ebp - 4], 0
je 0x10032262
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 0x1003173e
mov eax, dword [esi + 0x14]
and eax, 0xffff
cmp ebx, eax
je 0x1003177d
mov dword [edx + 0x18], str.header_crc_mismatch
jmp 0x10032214
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
xor eax, eax
push eax
push eax
push eax
call fcn.100301fc
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], 0xb
jmp 0x100313d2
cmp dword [ebp - 4], 0
je 0x10032262
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 0x100317a5
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 0x1003221f
xor eax, eax
push eax
push eax
push eax
call fcn.1002fe96
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 0x10032262
cmp dword [esi + 4], 0
je 0x10031867
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x18
mov dword [ebp - 0x10], ebx
jmp 0x100313d5
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031848
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 0x100318c5
dec eax
je 0x100318a1
dec eax
je 0x10031899
dec eax
jne 0x100318cb
mov dword [edx + 0x18], str.invalid_block_type
mov dword [esi], 0x1b
jmp 0x100318cb
mov dword [esi], 0xf
jmp 0x100318cb
mov dword [esi + 0x44], 0x10072888
mov dword [esi + 0x4c], 9
mov dword [esi + 0x48], 0x10073088
mov dword [esi + 0x50], 5
mov dword [esi], 0x12
jmp 0x100318cb
mov dword [esi], 0xd
shr ebx, 2
dec edi
mov dword [ebp - 0x10], ebx
dec edi
jmp 0x100313d5
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
jmp 0x10031902
cmp dword [ebp - 4], 0
je 0x10032262
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 0x100318e3
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x10031928
mov dword [edx + 0x18], str.invalid_stored_block_lengths
jmp 0x10032214
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 0x10031e96
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], eax
jbe 0x10031951
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jbe 0x1003195c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10032262
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x1c]
call fcn.10056df0
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 0x100313d2
cmp dword [ebp - 4], 0
je 0x10032262
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 0x1003198e
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 0x100319fd
cmp dword [esi + 0x5c], 0x1e
ja 0x100319fd
and dword [esi + 0x60], 0
mov dword [esi], 0x10
jmp case.0x10031353.16
mov dword [edx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x10032214
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031a09
mov ecx, dword [esi + 0x60]
movzx ecx, word [ecx*2 + 0x10073108]
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 0x10031a28
jmp 0x10031a6e
mov eax, dword [esi + 0x60]
movzx eax, word [eax*2 + 0x10073108]
and word [esi + eax*2 + 0x68], 0
inc dword [esi + 0x60]
cmp dword [esi + 0x60], 0x13
jb 0x10031a5a
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.100323f3
mov edx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x10031abc
mov eax, edx
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x10032214
and dword [esi + 0x60], 0
mov dword [esi], 0x11
jmp case.0x10031353.17
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031acb
cmp word [ebp - 0xa], 0x10
jae 0x10031b55
movzx ecx, ah
mov dword [ebp - 0x10], ecx
jmp 0x10031b36
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031b14
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.0x10031353.17
jne 0x10031bb4
movzx ecx, ah
mov dword [ebp - 0x10], ecx
jmp 0x10031b81
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031b5f
mov eax, dword [esi + 0x60]
shr ebx, cl
sub edi, ecx
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x10031c80
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 0x10031c44
cmp word [ebp - 0xa], 0x11
movzx eax, ah
mov dword [ebp - 0x10], eax
jne 0x10031c22
jmp 0x10031be5
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031bc3
mov ecx, dword [ebp - 0x10]
shr ebx, cl
push 0xfffffffffffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x10031c3b
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031c00
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 0x10031c89
test eax, eax
je 0x10031c6c
mov ecx, dword [esi + 0x60]
mov dx, word [ebp - 0x28]
mov word [esi + ecx*2 + 0x68], dx
inc dword [esi + 0x60]
dec eax
jne 0x10031c5a
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
add eax, dword [esi + 0x58]
cmp dword [esi + 0x60], eax
jb 0x10031aea
jmp 0x10031c99
mov dword [edx + 0x18], str.invalid_bit_length_repeat
jmp 0x10031c93
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.100323f3
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x10031ce6
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
mov dword [esi], 0x1b
jmp 0x100313d2
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.100323f3
mov edx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x10031d2d
mov eax, edx
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x10032214
mov dword [esi], 0x12
cmp dword [ebp - 4], 6
jb 0x10031d95
cmp dword [ebp - 0x14], 0x102
jb 0x10031d95
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.10030d47
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 0x100313d2
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 0x10031dda
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031daa
test al, al
je 0x10031e6f
test al, 0xf0
jne 0x10031e6f
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 0x10031e5a
cmp dword [ebp - 4], 0
je 0x1003225f
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 0x10031e1c
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 0x10031e92
mov dword [esi], 0x17
jmp 0x100313d5
test al, 0x20
je 0x10031ea1
mov dword [esi], 0xb
jmp 0x100313d5
test al, 0x40
je 0x10031eb1
mov dword [edx + 0x18], str.invalid_literal_length_code
jmp 0x10032214
and eax, 0xf
mov dword [esi + 0x40], eax
mov dword [esi], 0x13
mov eax, dword [esi + 0x40]
test eax, eax
je 0x10031efe
cmp edi, eax
jae 0x10031eec
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031ec8
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 0x10031f49
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10031f19
test al, 0xf0
jne 0x10031fd6
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 0x10031fc1
cmp dword [ebp - 4], 0
je 0x1003225f
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 0x10031f83
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 0x10031ff3
mov dword [edx + 0x18], str.invalid_distance_code
jmp 0x10032214
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 0x1003204a
cmp edi, eax
jae 0x10032035
cmp dword [ebp - 4], 0
je 0x10032262
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 0x10032011
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 0x10032064
mov dword [edx + 0x18], str.invalid_distance_too_far_back
jmp 0x10032214
mov dword [esi], 0x16
cmp dword [ebp - 0x14], 0
je 0x10032262
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x3c]
cmp ecx, eax
jbe 0x100320ae
sub ecx, eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x28]
cmp dword [ebp - 0xc], ecx
jbe 0x1003209c
add eax, dword [esi + 0x20]
sub dword [ebp - 0xc], ecx
sub eax, dword [ebp - 0xc]
jmp 0x100320a1
sub eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [esi + 0x38]
cmp dword [ebp - 0xc], ecx
mov dword [ebp - 0x28], ecx
jbe 0x100320bc
jmp 0x100320b9
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 0x100320c7
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 0x100320d6
cmp dword [esi + 0x38], 0
jne 0x100313d2
mov dword [esi], 0x12
jmp 0x100313d2
cmp dword [ebp - 0x14], 0
je 0x10032262
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 0x100313d5
cmp dword [esi + 8], 0
je 0x100321d1
jmp 0x1003214c
cmp dword [ebp - 4], 0
je 0x10032262
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 0x1003212a
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 0x10032191
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 0x1003217e
call fcn.100301fc
jmp 0x10032183
call fcn.1002fe96
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 0x100321bc
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 0x100321ca
mov dword [edx + 0x18], str.incorrect_data_check
jmp 0x10032214
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 0x19
cmp dword [esi + 8], 0
je 0x10032247
cmp dword [esi + 0x10], 0
je 0x10032247
jmp 0x10032203
cmp dword [ebp - 4], 0
je 0x10032262
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 0x100321e5
cmp ebx, dword [esi + 0x18]
je 0x10032243
mov dword [edx + 0x18], str.incorrect_length_check
mov dword [esi], 0x1b
jmp 0x100313d5
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 0x100313e2
xor ebx, ebx
xor edi, edi
mov dword [esi], 0x1a
mov dword [ebp - 0x24], 1
jmp 0x10032262
mov dword [ebp - 0x24], 0xfffffffd
jmp 0x10032262
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 0x10032295
cmp dword [esi], 0x18
jge 0x100322b1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
je 0x100322b1
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
call fcn.10031208
test eax, eax
je 0x100322b1
mov dword [esi], 0x1c
push 0xfffffffffffffffc
jmp 0x100313e2
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 0x100322fe
test ebx, ebx
je 0x100322fe
mov eax, dword [edi + 0xc]
push ebx
sub eax, ebx
cmp dword [esi + 0x10], 0
push eax
push dword [esi + 0x14]
je 0x100322ed
call fcn.100301fc
jmp 0x100322f2
call fcn.1002fe96
mov dword [esi + 0x14], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [esi], 0xb
jne 0x1003230a
mov ecx, 0x80
jmp 0x1003230c
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 0x10032326
test ebx, ebx
je 0x1003232c
cmp dword [ebp + 0xc], 4
jne 0x10032339
cmp dword [ebp - 0x24], 0
jne 0x10032339
mov dword [ebp - 0x24], 0xfffffffb
mov eax, dword [ebp - 0x24]
jmp 0x100313e3