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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2c
push edi
test eax, eax
je 0x1007a2d5
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x1007a2d5
cmp dword [eax + 0xc], 0
je 0x1007a2d5
cmp dword [eax], 0
jne 0x10078df4
cmp dword [eax + 4], 0
jne 0x1007a2d5
cmp dword [edi], 0xb
jne 0x10078dff
mov dword [edi], 0xc
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x10]
push ebx
mov ebx, dword [edi + 0x38]
push ebp
mov ebp, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [edi]
push esi
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], 0
cmp ecx, 0x1e
jbe switch.0x10078e47
mov eax, 0xfffffffe
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
jmp dword [ecx*4 + 0x1007a2e0]
cmp dword [edi + 8], 0
jne 0x10078e5f
mov dword [edi], 0xc
jmp 0x1007a15c
cmp esi, 0x10
jae 0x10078e84
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x10
jb 0x10078e64
test byte [edi + 8], 2
je 0x10078ed1
cmp ebx, 0x8b1f
jne 0x10078ed1
push 0
xor edx, edx
xor ecx, ecx
call fcn.1007a3c0
add esp, 4
mov edx, 2
lea ecx, [esp + 0x1c]
mov dword [edi + 0x18], eax
mov byte [esp + 0x1c], 0x1f
mov byte [esp + 0x1d], 0x8b
call fcn.1007a3d0
mov edx, dword [esp + 0x10]
xor ebx, ebx
mov dword [edi + 0x18], eax
xor esi, esi
mov dword [edi], 1
jmp 0x1007a15c
mov eax, dword [edi + 0x20]
mov dword [edi + 0x10], 0
test eax, eax
je 0x10078ee6
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x10078f95
movzx eax, bl
shl eax, 8
mov ecx, ebx
shr ecx, 8
add eax, ecx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
jne 0x10078f95
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x10078f2c
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x1007a156
mov eax, dword [edi + 0x24]
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
sub esi, 4
add ecx, 8
test eax, eax
jne 0x10078f7d
mov dword [edi + 0x24], ecx
mov edx, 1
shl edx, cl
xor eax, eax
xor ecx, ecx
mov dword [edi + 0x14], edx
xor edx, edx
call fcn.1007a6b0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [edi], ebx
xor ebx, ebx
xor esi, esi
jmp 0x1007a15c
cmp ecx, eax
jbe 0x10078f44
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], str.invalid_window_size
jmp 0x1007a156
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.incorrect_header_check
mov edx, dword [esp + 0x10]
jmp 0x1007a156
cmp esi, 0x10
jae 0x10078fd0
mov edi, edi
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x10
jb 0x10078fb0
mov dword [edi + 0x10], ebx
cmp bl, 8
je 0x10078fe8
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x1007a156
test ebx, 0xe000
je 0x10079000
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x1007a156
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10079011
mov ecx, ebx
shr ecx, 8
and ecx, 1
mov dword [eax], ecx
test dword [edi + 0x10], 0x200
je 0x1007903d
mov eax, dword [edi + 0x18]
mov byte [esp + 0x1c], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1d], bl
call fcn.1007a3d0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x10079050
cmp esi, 0x20
jae 0x10079070
mov edi, edi
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x20
jb 0x10079050
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1007907a
mov dword [eax + 4], ebx
test dword [edi + 0x10], 0x200
je 0x100790b8
mov eax, dword [edi + 0x18]
mov ecx, ebx
mov edx, ebx
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1e], dl
shr ebx, 0x18
mov edx, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1f], bl
call fcn.1007a3d0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x100790d0
cmp esi, 0x10
jae 0x100790f0
lea esp, [esp]
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x10
jb 0x100790d0
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1007910d
mov ecx, ebx
and ecx, 0xff
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x20]
mov eax, ebx
shr eax, 8
mov dword [ecx + 0xc], eax
test dword [edi + 0x10], 0x200
je 0x10079139
mov eax, dword [edi + 0x18]
mov byte [esp + 0x1c], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1d], bl
call fcn.1007a3d0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x100791b0
cmp esi, 0x10
jae 0x10079171
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x10
jb 0x10079151
mov eax, dword [edi + 0x20]
mov dword [edi + 0x40], ebx
test eax, eax
je 0x1007917e
mov dword [eax + 0x14], ebx
test dword [edi + 0x10], 0x200
je 0x100791aa
mov eax, dword [edi + 0x18]
mov byte [esp + 0x1c], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1d], bl
call fcn.1007a3d0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
jmp 0x100791be
mov eax, dword [edi + 0x20]
test eax, eax
je 0x100791be
mov dword [eax + 0x10], 0
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x10079271
mov ecx, dword [edi + 0x40]
mov dword [esp + 0x14], ecx
cmp ecx, edx
jbe 0x100791e2
mov ecx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x10079267
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10079232
mov eax, dword [eax + 0x10]
mov dword [esp + 0x34], eax
test eax, eax
je 0x10079232
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x14]
sub eax, dword [edi + 0x40]
mov edx, dword [edi + 0x20]
mov edx, dword [edx + 0x18]
add ecx, eax
cmp ecx, edx
jbe 0x10079215
sub edx, eax
jmp 0x10079219
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
push edx
add ecx, eax
push ebp
push ecx
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 0xc
test dword [edi + 0x10], 0x200
je 0x1007925c
mov eax, dword [edi + 0x18]
test ebp, ebp
jne 0x10079246
xor eax, eax
jmp 0x10079259
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.1007a3d0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
sub edx, ecx
add ebp, ecx
sub dword [edi + 0x40], ecx
mov dword [esp + 0x10], edx
cmp dword [edi + 0x40], 0
jne 0x1007a1b6
mov dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x1007931c
test edx, edx
je 0x1007a1b6
xor eax, eax
movzx ecx, byte [eax + ebp]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x24], ecx
test eax, eax
je 0x100792ce
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x100792ce
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x100792ce
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x24]
mov byte [edx + ecx], al
inc dword [edi + 0x40]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x14]
je 0x100792dd
cmp eax, edx
jb 0x10079295
test dword [edi + 0x10], 0x200
je 0x10079307
mov eax, dword [edi + 0x18]
test ebp, ebp
jne 0x100792f1
xor eax, eax
jmp 0x10079300
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.1007a3d0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x14]
sub edx, eax
add ebp, eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x10], edx
jne 0x1007a1b6
jmp 0x1007932a
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1007932a
mov dword [eax + 0x1c], 0
mov dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x100793d7
test edx, edx
je 0x1007a1b6
xor eax, eax
mov edi, edi
movzx ecx, byte [eax + ebp]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x24], ecx
test eax, eax
je 0x10079389
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x10079389
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x10079389
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x24]
mov byte [edx + ecx], al
inc dword [edi + 0x40]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x14]
je 0x10079398
cmp eax, edx
jb 0x10079350
test dword [edi + 0x10], 0x200
je 0x100793c2
mov eax, dword [edi + 0x18]
test ebp, ebp
jne 0x100793ac
xor eax, eax
jmp 0x100793bb
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.1007a3d0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x14]
sub edx, eax
add ebp, eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x10], edx
jne 0x1007a1b6
jmp 0x100793e5
mov eax, dword [edi + 0x20]
test eax, eax
je 0x100793e5
mov dword [eax + 0x24], 0
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x1007943c
cmp esi, 0x10
jae 0x10079420
lea esp, [esp]
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x10
jb 0x10079400
movzx ecx, word [edi + 0x18]
cmp ebx, ecx
je 0x10079438
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x1007a156
xor ebx, ebx
xor esi, esi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10079459
mov ecx, dword [edi + 0x10]
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov edx, dword [edi + 0x20]
mov dword [edx + 0x30], 1
push 0
xor edx, edx
xor ecx, ecx
call fcn.1007a3c0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
add esp, 4
mov dword [edi], 0xb
jmp 0x1007a15c
cmp esi, 0x20
jae 0x100794a5
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x20
jb 0x10079485
mov ecx, ebx
and ecx, 0xff00
mov eax, ebx
shl eax, 0x10
add ecx, eax
mov eax, ebx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
shr ebx, 0x18
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 0xa
mov eax, ecx
cmp dword [edi + 0xc], 0
je 0x1007a174
xor eax, eax
xor edx, edx
xor ecx, ecx
call fcn.1007a6b0
mov edx, dword [esp + 0x40]
mov dword [edi + 0x18], eax
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
mov dword [edi], 0xb
cmp dword [edi + 4], 0
je 0x10079522
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x1a
jmp 0x1007a15c
cmp esi, 3
jae 0x10079547
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 3
jb 0x10079527
mov ecx, ebx
shr ebx, 1
mov eax, ebx
and ecx, 1
and eax, 3
dec esi
mov dword [edi + 4], ecx
cmp eax, 3
ja case.default.0x1007955c
jmp dword [eax*4 + 0x1007a35c]
shr ebx, 2
mov dword [edi], 0xd
sub esi, 2
jmp 0x1007a15c
shr ebx, 2
mov dword [edi + 0x4c], 0x1007ffb8
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x100807b8
mov dword [edi + 0x58], 5
mov dword [edi], 0x13
sub esi, 2
jmp 0x1007a15c
shr ebx, 2
mov dword [edi], 0x10
sub esi, 2
jmp 0x1007a15c
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [edi], 0x1d
shr ebx, 2
sub esi, 2
jmp 0x1007a15c
mov ecx, esi
and ecx, 7
sub esi, ecx
shr ebx, cl
cmp esi, 0x20
jae 0x10079600
lea esp, [esp]
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x20
jb 0x100795e0
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x10079622
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x1007a156
xor ebx, ebx
mov dword [edi + 0x40], eax
xor esi, esi
mov dword [edi], 0xe
mov dword [edi], 0xf
mov eax, dword [edi + 0x40]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10079cee
cmp eax, edx
jbe 0x1007964e
mov eax, edx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1007965c
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1007a1b6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push ecx
push ebp
push edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x20]
sub dword [esp + 0x1c], eax
sub dword [esp + 0x24], eax
add dword [esp + 0x2c], eax
mov edx, dword [esp + 0x1c]
add esp, 0xc
add ebp, eax
sub dword [edi + 0x40], eax
jmp 0x1007a15c
cmp esi, 0xe
jae 0x100796c0
lea ebx, [ebx]
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0xe
jb 0x100796a0
mov ecx, ebx
and ecx, 0x1f
shr ebx, 5
add ecx, 0x101
mov eax, ebx
mov dword [edi + 0x60], ecx
shr ebx, 5
mov ecx, ebx
and eax, 0x1f
and ecx, 0xf
inc eax
add ecx, 4
shr ebx, 4
sub esi, 0xe
cmp dword [edi + 0x60], 0x11e
mov dword [edi + 0x64], eax
mov dword [edi + 0x5c], ecx
ja 0x100797e5
cmp eax, 0x1e
ja 0x100797e5
mov dword [edi + 0x68], 0
mov dword [edi], 0x11
mov ecx, dword [edi + 0x68]
cmp ecx, dword [edi + 0x5c]
jae 0x1007976b
lea esp, [esp]
cmp esi, 3
jae 0x10079745
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 3
jb 0x10079725
mov eax, dword [edi + 0x68]
movzx eax, word [eax*2 + 0x10080838]
mov ecx, ebx
and ecx, 7
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
mov ecx, dword [edi + 0x68]
shr ebx, 3
sub esi, 3
cmp ecx, dword [edi + 0x5c]
jb 0x10079720
mov eax, 0x13
cmp dword [edi + 0x68], eax
jae 0x1007979a
jmp 0x10079780
mov edx, dword [edi + 0x68]
movzx ecx, word [edx*2 + 0x10080838]
xor edx, edx
mov word [edi + ecx*2 + 0x70], dx
inc dword [edi + 0x68]
cmp dword [edi + 0x68], eax
jb 0x10079780
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
lea edx, [edi + 0x2f0]
push edx
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x54]
push eax
push ecx
push 0x13
lea ecx, [edi + 0x70]
push 0
mov dword [eax], 7
call fcn.1007ad90
mov edx, dword [esp + 0x24]
add esp, 0x14
mov dword [esp + 0x30], eax
test eax, eax
je 0x100797f5
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x1007a156
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x1007a156
mov dword [edi + 0x68], 0
mov dword [edi], 0x12
mov ecx, dword [edi + 0x64]
add ecx, dword [edi + 0x60]
cmp dword [edi + 0x68], ecx
jae 0x10079a13
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
jbe 0x10079872
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
dec edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
inc ebp
mov dword [esp + 0x10], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
ja 0x10079834
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x100798ca
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp esi, ecx
jae 0x100798ae
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov eax, dword [esp + 0x14]
movzx ecx, ah
mov dword [esp + 0x10], edx
cmp esi, ecx
jb 0x10079888
movzx ecx, ah
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
mov cx, word [esp + 0x16]
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
jmp 0x10079a04
mov cx, word [esp + 0x16]
cmp cx, 0x10
jne 0x10079934
movzx ecx, ah
lea eax, [ecx + 2]
mov dword [esp + 0x2c], ecx
cmp esi, eax
jae 0x10079909
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec edx
add esi, 8
add ebx, eax
lea eax, [ecx + 2]
inc ebp
mov dword [esp + 0x10], edx
cmp esi, eax
jb 0x100798e3
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
test eax, eax
je 0x10079a36
movzx ecx, word [edi + eax*2 + 0x6e]
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
mov dword [esp + 0x24], ecx
sub esi, 2
jmp 0x100799d4
cmp cx, 0x11
movzx ecx, ah
mov dword [esp + 0x2c], ecx
jne 0x10079982
lea eax, [ecx + 3]
cmp esi, eax
jae 0x1007996e
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec edx
add esi, 8
add ebx, eax
lea eax, [ecx + 3]
inc ebp
mov dword [esp + 0x10], edx
cmp esi, eax
jb 0x10079948
shr ebx, cl
mov edx, 0xfffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x100799c8
lea eax, [ecx + 7]
cmp esi, eax
jae 0x100799b6
lea esp, [esp]
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec edx
add esi, 8
add ebx, eax
lea eax, [ecx + 7]
inc ebp
mov dword [esp + 0x10], edx
cmp esi, eax
jb 0x10079990
shr ebx, cl
mov edx, 0xfffffff9
mov eax, ebx
and eax, 0x7f
add eax, 0xb
shr ebx, 7
sub edx, ecx
add esi, edx
mov dword [esp + 0x24], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [edi + 0x68]
add ecx, dword [edi + 0x60]
add edx, eax
cmp edx, ecx
ja 0x10079a46
test eax, eax
je 0x10079a00
mov ecx, dword [esp + 0x24]
jmp 0x100799f0
mov edx, dword [edi + 0x68]
dec eax
mov word [edi + edx*2 + 0x70], cx
inc dword [edi + 0x68]
test eax, eax
jne 0x100799f0
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jb 0x10079811
cmp dword [edi], 0x1d
je 0x1007a15c
cmp word [edi + 0x270], 0
jne 0x10079a5a
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_code____missing_end_of_block
jmp 0x1007a156
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x1007a156
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_bit_length_repeat
mov edx, dword [esp + 0x10]
jmp 0x1007a156
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
lea edx, [edi + 0x2f0]
push edx
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x54]
push eax
push ecx
mov ecx, dword [edi + 0x60]
push ecx
lea ecx, [edi + 0x70]
push 1
mov dword [eax], 9
call fcn.1007ad90
add esp, 0x14
mov dword [esp + 0x30], eax
test eax, eax
je 0x10079aa7
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x1007a156
mov eax, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
lea edx, [edi + 0x2f0]
push edx
mov edx, dword [edi + 0x60]
mov dword [edi + 0x50], eax
lea eax, [edi + 0x58]
push eax
push ecx
mov ecx, dword [edi + 0x64]
push ecx
lea ecx, [edi + edx*2 + 0x70]
push 2
mov dword [eax], 6
call fcn.1007ad90
mov edx, dword [esp + 0x24]
add esp, 0x14
mov dword [esp + 0x30], eax
test eax, eax
je 0x10079af3
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x1007a156
mov dword [edi], 0x13
mov dword [edi], 0x14
cmp edx, 6
jb 0x10079b78
cmp dword [esp + 0x18], 0x102
jb 0x10079b78
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
push edx
mov dword [eax], ebp
mov dword [eax + 4], ecx
push eax
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
call fcn.1007a910
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
add esp, 8
cmp dword [edi], 0xb
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
mov edx, eax
jne 0x1007a15c
mov dword [edi + 0x1bc4], 0xffffffff
jmp 0x1007a15c
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov dword [edi + 0x1bc4], 0
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
jbe 0x10079be5
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
dec edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
inc ebp
mov dword [esp + 0x10], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
ja 0x10079ba7
test al, al
je 0x10079cb3
test al, 0xf0
jne 0x10079cb3
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, cl
mov dword [esp + 0x24], ecx
movzx ecx, al
add ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x24]
dec eax
and eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [esp + 0x34]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x10079ca0
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec edx
add esi, 8
add ebx, eax
movzx eax, ch
mov dword [esp + 0x24], eax
movzx ecx, cl
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x24]
inc ebp
mov dword [esp + 0x10], edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x2e]
add eax, ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x24]
cmp eax, esi
ja 0x10079c46
movzx ecx, byte [esp + 0x2d]
mov eax, dword [esp + 0x14]
shr ebx, cl
sub esi, ecx
mov dword [edi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc4], ecx
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x24], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [edi + 0x40], ecx
test al, al
jne 0x10079ce0
mov dword [edi], 0x19
jmp 0x1007a15c
test al, 0x20
je 0x10079cf9
mov dword [edi + 0x1bc4], 0xffffffff
mov dword [edi], 0xb
jmp 0x1007a15c
test al, 0x40
je 0x10079d0d
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x1007a156
movzx ecx, al
and ecx, 0xf
mov dword [edi + 0x48], ecx
mov dword [edi], 0x15
mov eax, dword [edi + 0x48]
test eax, eax
je 0x10079d61
cmp esi, eax
jae 0x10079d47
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, dword [edi + 0x48]
jb 0x10079d27
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
sub esi, ecx
dec eax
and eax, ebx
add dword [edi + 0x40], eax
shr ebx, cl
add dword [edi + 0x1bc4], ecx
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x1bc8], ecx
mov dword [edi], 0x16
mov ecx, dword [edi + 0x58]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
jbe 0x10079dd3
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x58]
dec edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x50]
inc ebp
mov dword [esp + 0x10], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
ja 0x10079d95
test al, 0xf0
jne 0x10079e9d
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, cl
mov dword [esp + 0x24], ecx
movzx ecx, al
add ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x24]
dec eax
and eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [esp + 0x34]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x10079e8a
lea esp, [esp]
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec edx
add esi, 8
add ebx, eax
movzx eax, ch
mov dword [esp + 0x24], eax
movzx ecx, cl
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x24]
inc ebp
mov dword [esp + 0x10], edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x2e]
add eax, ecx
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x24]
cmp eax, esi
ja 0x10079e30
movzx ecx, byte [esp + 0x2d]
mov eax, dword [esp + 0x14]
shr ebx, cl
sub esi, ecx
add dword [edi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc4], ecx
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x24], ecx
test al, 0x40
je 0x10079ec7
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x1007a156
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], eax
mov dword [edi], 0x17
mov eax, dword [edi + 0x48]
test eax, eax
je 0x10079f2a
cmp esi, eax
jae 0x10079f10
lea esp, [esp]
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, dword [edi + 0x48]
jb 0x10079ef0
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
sub esi, ecx
dec eax
and eax, ebx
add dword [edi + 0x44], eax
shr ebx, cl
add dword [edi + 0x1bc4], ecx
mov dword [edi], 0x18
cmp dword [esp + 0x18], 0
je 0x1007a1b6
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x44]
cmp eax, ecx
jbe 0x10079fa4
sub eax, ecx
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 0x2c]
jbe 0x10079f6e
cmp dword [edi + 0x1bc0], 0
je 0x10079f6e
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_distance_too_far_back
jmp 0x1007a156
mov ecx, dword [edi + 0x30]
cmp eax, ecx
jbe 0x10079f85
sub eax, ecx
mov ecx, dword [edi + 0x34]
add ecx, dword [edi + 0x28]
mov dword [esp + 0x14], eax
sub ecx, eax
jmp 0x10079f91
mov ecx, dword [edi + 0x34]
sub ecx, eax
add ecx, dword [edi + 0x30]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x40]
mov dword [esp + 0x34], ecx
cmp eax, ecx
jbe 0x10079fb9
mov eax, ecx
jmp 0x10079fb5
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jbe 0x10079fc7
mov eax, ecx
mov dword [esp + 0x14], eax
sub ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x40], ecx
lea ebx, [ebx]
mov ecx, dword [esp + 0x2c]
mov cl, byte [ecx]
inc dword [esp + 0x2c]
mov byte [eax], cl
inc eax
sub dword [esp + 0x14], 1
jne 0x10079fe0
cmp dword [edi + 0x40], 0
mov dword [esp + 0x20], eax
jne 0x1007a15c
mov dword [edi], 0x14
jmp 0x1007a15c
cmp dword [esp + 0x18], 0
je 0x1007a1b6
mov eax, dword [esp + 0x20]
mov cl, byte [edi + 0x40]
mov byte [eax], cl
inc eax
dec dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov dword [edi], 0x14
jmp 0x1007a15c
cmp dword [edi + 8], 0
je 0x1007a107
cmp esi, 0x20
jae 0x1007a064
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x20
jb 0x1007a044
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
add dword [ecx + 0x14], eax
add dword [edi + 0x1c], eax
mov dword [esp + 0x28], eax
test eax, eax
je 0x1007a0be
cmp dword [edi + 0x10], 0
je 0x1007a09e
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [edi + 0x18]
jne 0x1007a093
xor eax, eax
jmp 0x1007a0b4
mov edx, dword [esp + 0x28]
call fcn.1007a3d0
jmp 0x1007a0b0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 0x18]
sub edx, eax
call fcn.1007a6b0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
cmp dword [edi + 0x10], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, ebx
jne 0x1007a0f1
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
mov ecx, ebx
shr ecx, 8
and ecx, 0xff00
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [edi + 0x18]
je 0x1007a103
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x1007a156
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x1b
cmp dword [edi + 8], 0
je 0x1007a19e
cmp dword [edi + 0x10], 0
je 0x1007a19e
cmp esi, 0x20
jae 0x1007a146
test edx, edx
je 0x1007a1b6
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x20
jb 0x1007a126
cmp ebx, dword [edi + 0x1c]
je 0x1007a19a
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [edi], 0x1d
mov ecx, dword [edi]
cmp ecx, 0x1e
jbe 0x10078e43
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x2c
ret
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], ebp
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
mov dword [edi + 0x3c], esi
pop esi
pop ebp
mov dword [edi + 0x38], ebx
pop ebx
mov eax, 2
pop edi
add esp, 0x2c
ret
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x1c
mov dword [esp + 0x30], 1
jmp 0x1007a1b6
mov dword [esp + 0x30], 0xfffffffd
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov dword [eax], ebp
mov dword [eax + 4], edx
cmp dword [edi + 0x28], 0
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
jne 0x1007a1e7
cmp dword [edi], 0x1a
jge 0x1007a20b
mov edx, dword [esp + 0x28]
cmp edx, dword [eax + 0x10]
je 0x1007a20b
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
call fcn.10078cd0
test eax, eax
je 0x1007a20b
mov dword [edi], 0x1e
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffc
pop edi
add esp, 0x2c
ret
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
sub eax, dword [esi + 4]
mov ebx, dword [esp + 0x28]
sub ebx, dword [esi + 0x10]
add dword [esi + 8], eax
add dword [esi + 0x14], ebx
add dword [edi + 0x1c], ebx
cmp dword [edi + 8], 0
mov dword [esp + 0x38], eax
je 0x1007a266
test ebx, ebx
je 0x1007a266
cmp dword [edi + 0x10], 0
je 0x1007a251
mov ecx, dword [esi + 0xc]
sub ecx, ebx
mov eax, dword [edi + 0x18]
jne 0x1007a248
xor eax, eax
jmp 0x1007a260
mov edx, ebx
call fcn.1007a3d0
jmp 0x1007a260
mov edx, dword [esi + 0xc]
mov ecx, dword [edi + 0x18]
sub edx, ebx
mov eax, ebx
call fcn.1007a6b0
mov dword [edi + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [edi]
cmp eax, 0x13
je 0x1007a276
cmp eax, 0xe
je 0x1007a276
xor ebp, ebp
jmp 0x1007a27b
mov ebp, 0x100
mov ecx, dword [edi + 4]
neg ecx
sbb ecx, ecx
and ecx, 0x40
xor edx, edx
cmp eax, 0xb
setne dl
dec edx
and edx, 0x80
add ecx, edx
add ecx, dword [edi + 0x3c]
add ecx, ebp
cmp dword [esp + 0x38], 0
mov dword [esi + 0x2c], ecx
jne 0x1007a2a9
test ebx, ebx
je 0x1007a2b0
cmp dword [esp + 0x44], 4
jne 0x1007a2c9
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x10078e3b
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffb
pop edi
add esp, 0x2c
ret
mov eax, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x2c
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x2c
ret