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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x2c
push edi
test edx, edx
je 0x11018536
mov edi, dword [edx + 0x24]
test edi, edi
je 0x11018536
cmp dword [edx + 0x10], 0
je 0x11018536
cmp dword [edx], 0
jne 0x110176a6
cmp dword [edx + 4], 0
jne 0x11018536
cmp dword [edi], 0xb
jne 0x110176b1
mov dword [edi], 0xc
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x10]
push ebx
mov ebx, dword [edi + 0x38]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [edx]
push esi
mov esi, dword [edi + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
cmp ecx, 0x1e
jbe switch.0x110176f6
mov eax, 0xfffffffe
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
jmp dword [ecx*4 + 0x11018540]
cmp dword [edi + 8], 0
jne 0x1101770e
mov dword [edi], 0xc
jmp 0x110183db
cmp esi, 0x10
jae 0x11017735
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x10
jb 0x11017713
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
je 0x11017761
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x20], str.incorrect_header_check
jmp 0x110183d5
mov eax, ebx
and al, 0xf
cmp al, 8
je 0x1101777b
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x20], str.unknown_compression_method
jmp 0x110183d5
mov eax, dword [edi + 0x24]
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
sub esi, 4
add ecx, 8
test eax, eax
jne 0x110177ca
mov dword [edi + 0x24], ecx
mov eax, 1
shl eax, cl
xor edx, edx
xor ecx, ecx
mov dword [edi + 0x14], eax
xor eax, eax
call fcn.1101f9b0
mov ecx, dword [ebp + 8]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [edi + 0x18], eax
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 8]
mov dword [edi], ebx
xor ebx, ebx
xor esi, esi
jmp 0x110183db
cmp ecx, eax
jbe 0x11017793
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x20], str.invalid_window_size
jmp 0x110183d5
cmp esi, 0x20
jae 0x11017807
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x20
jb 0x110177e5
mov ecx, ebx
and ecx, 0xff00
mov edx, ebx
shl edx, 0x10
add ecx, edx
mov edx, ebx
shr edx, 8
shl ecx, 8
and edx, 0xff00
add ecx, edx
mov edx, dword [ebp + 8]
shr ebx, 0x18
add ecx, ebx
mov dword [edi + 0x18], ecx
mov dword [edx + 0x38], ecx
xor ebx, ebx
xor esi, esi
mov dword [edi], 0xa
cmp dword [edi + 0xc], 0
je 0x110183f2
xor eax, eax
xor edx, edx
xor ecx, ecx
call fcn.1101f9b0
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 8]
mov dword [edi], 0xb
cmp dword [edi + 4], 0
je 0x1101787f
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x1a
jmp 0x110183db
cmp esi, 3
jae 0x110178a6
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 3
jb 0x11017884
mov ecx, ebx
and ecx, 1
shr ebx, 1
mov dword [edi + 4], ecx
mov ecx, ebx
and ecx, 3
cmp ecx, 3
ja case.default.0x110178ba
jmp dword [ecx*4 + 0x110185bc]
shr ebx, 2
mov dword [edi], 0xd
sub esi, 3
jmp 0x110183db
shr ebx, 2
mov dword [edi + 0x4c], 0x11248ae0
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x112492e0
mov dword [edi + 0x58], 5
mov dword [edi], 0x13
sub esi, 3
jmp 0x110183db
shr ebx, 2
mov dword [edi], 0x10
sub esi, 3
jmp 0x110183db
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], str.invalid_block_type
mov dword [edi], 0x1d
shr ebx, 2
sub esi, 3
jmp 0x110183db
mov ecx, esi
and ecx, 7
sub esi, ecx
shr ebx, cl
cmp esi, 0x20
jae 0x11017962
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x20
jb 0x11017940
mov edx, ebx
mov ecx, ebx
not edx
and ecx, 0xffff
shr edx, 0x10
cmp ecx, edx
je 0x11017984
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], str.invalid_stored_block_lengths
jmp 0x110183d5
xor ebx, ebx
mov dword [edi + 0x40], ecx
xor esi, esi
mov dword [edi], 0xe
mov dword [edi], 0xf
mov ecx, dword [edi + 0x40]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x11018012
mov edx, dword [ebp - 4]
cmp ecx, edx
jbe 0x110179b1
mov ecx, edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
cmp ecx, edx
jbe 0x110179bd
mov ecx, edx
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x11018432
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
push edx
push eax
push ecx
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [ebp - 0x10], eax
add dword [ebp - 0x14], eax
add esp, 0xc
sub dword [edi + 0x40], eax
mov eax, dword [ebp - 8]
jmp 0x110183db
cmp esi, 0xe
jae 0x11017a22
jmp 0x11017a00
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0xe
jb 0x11017a00
mov ecx, ebx
and ecx, 0x1f
shr ebx, 5
add ecx, 0x101
mov edx, ebx
mov dword [edi + 0x60], ecx
shr ebx, 5
mov ecx, ebx
and edx, 0x1f
and ecx, 0xf
inc edx
add ecx, 4
shr ebx, 4
sub esi, 0xe
cmp dword [edi + 0x60], 0x11e
mov dword [edi + 0x64], edx
mov dword [edi + 0x5c], ecx
ja 0x11017b41
cmp edx, 0x1e
ja 0x11017b41
mov dword [edi + 0x68], 0
mov dword [edi], 0x11
mov ecx, dword [edi + 0x68]
cmp ecx, dword [edi + 0x5c]
jae 0x11017acd
jmp 0x11017a80
cmp esi, 3
jae 0x11017aa7
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 3
jb 0x11017a85
mov edx, dword [edi + 0x68]
movzx edx, word [edx*2 + 0x11249360]
mov ecx, ebx
and ecx, 7
mov word [edi + edx*2 + 0x70], cx
inc dword [edi + 0x68]
mov ecx, dword [edi + 0x68]
shr ebx, 3
sub esi, 3
cmp ecx, dword [edi + 0x5c]
jb 0x11017a80
mov eax, 0x13
cmp dword [edi + 0x68], eax
jae 0x11017afa
jmp 0x11017ae0
mov edx, dword [edi + 0x68]
movzx ecx, word [edx*2 + 0x11249360]
xor edx, edx
mov word [edi + ecx*2 + 0x70], dx
inc dword [edi + 0x68]
cmp dword [edi + 0x68], eax
jb 0x11017ae0
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
lea edx, [edi + 0x2f0]
push edx
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x54]
push eax
push 0x13
lea edx, [edi + 0x70]
push 0
mov dword [eax], 7
call fcn.11020030
add esp, 0x10
mov dword [ebp - 0x24], eax
test eax, eax
je 0x11017b50
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], str.invalid_code_lengths_set
mov eax, dword [ebp - 8]
jmp 0x110183d5
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], str.too_many_length_or_distance_symbols
jmp 0x110183d5
mov eax, dword [ebp - 8]
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 0x11017d53
nop
mov ecx, dword [edi + 0x54]
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x4c]
dec edx
and edx, ebx
mov ecx, dword [ecx + edx*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov dword [ebp - 0xc], ecx
cmp edx, esi
jbe 0x11017bd1
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
mov ecx, dword [edi + 0x54]
inc eax
add esi, 8
add ebx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 8], eax
dec edx
and edx, ebx
mov ecx, dword [ecx + edx*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov dword [ebp - 0xc], ecx
cmp edx, esi
ja 0x11017b92
mov edx, ecx
shr edx, 0x10
mov dword [ebp - 0x28], edx
cmp dx, 0x10
jae 0x11017bf9
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x68]
mov word [edi + ecx*2 + 0x70], dx
inc dword [edi + 0x68]
jmp 0x11017d44
jne 0x11017c6a
mov edx, ecx
shr edx, 8
movzx edx, dl
add edx, 2
cmp esi, edx
jae 0x11017c3a
lea ebx, [ebx]
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0xc]
inc eax
add esi, 8
add ebx, edx
movzx edx, ch
add edx, 2
mov dword [ebp - 8], eax
cmp esi, edx
jb 0x11017c10
movzx ecx, ch
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x11017d75
movzx ecx, word [edi + ecx*2 + 0x6e]
mov dword [ebp - 0x20], ecx
mov ecx, ebx
and ecx, 3
add ecx, 3
shr ebx, 2
mov dword [ebp - 0xc], ecx
sub esi, 2
jmp 0x11017d0f
cmp word [ebp - 0xa], 0x11
movzx ecx, ch
mov dword [ebp - 0x20], ecx
jne 0x11017cbe
lea edx, [ecx + 3]
cmp esi, edx
jae 0x11017ca7
mov edi, edi
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x20]
inc eax
add esi, 8
add ebx, edx
lea edx, [ecx + 3]
mov dword [ebp - 8], eax
cmp esi, edx
jb 0x11017c80
shr ebx, cl
mov edx, ebx
and edx, 7
add edx, 3
mov dword [ebp - 0xc], edx
shr ebx, 3
mov edx, 0xfffffffd
jmp 0x11017d01
lea edx, [ecx + 7]
cmp esi, edx
jae 0x11017cec
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x20]
inc eax
add esi, 8
add ebx, edx
lea edx, [ecx + 7]
mov dword [ebp - 8], eax
cmp esi, edx
jb 0x11017cc5
shr ebx, cl
mov edx, ebx
and edx, 0x7f
add edx, 0xb
mov dword [ebp - 0xc], edx
shr ebx, 7
mov edx, 0xfffffff9
sub edx, ecx
mov ecx, dword [ebp - 0xc]
add esi, edx
mov dword [ebp - 0x20], 0
mov edx, dword [edi + 0x68]
add edx, ecx
mov ecx, dword [edi + 0x64]
add ecx, dword [edi + 0x60]
cmp edx, ecx
ja 0x11017d84
cmp dword [ebp - 0xc], 0
je 0x11017d44
mov ecx, dword [ebp - 0x20]
jmp 0x11017d30
mov edx, dword [edi + 0x68]
dec dword [ebp - 0xc]
mov word [edi + edx*2 + 0x70], cx
inc dword [edi + 0x68]
cmp dword [ebp - 0xc], 0
jne 0x11017d30
mov ecx, dword [edi + 0x64]
add ecx, dword [edi + 0x60]
cmp dword [edi + 0x68], ecx
jb 0x11017b70
cmp dword [edi], 0x1d
je 0x110183db
cmp word [edi + 0x270], 0
jne 0x11017d93
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], str.invalid_code____missing_end_of_block
jmp 0x110183d5
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], str.invalid_bit_length_repeat
jmp 0x110183d5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], str.invalid_bit_length_repeat
jmp 0x110183d5
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea edx, [edi + 0x2f0]
push edx
lea eax, [edi + 0x54]
push eax
mov dword [eax], 9
mov eax, dword [edi + 0x60]
push eax
lea edx, [edi + 0x70]
push 1
call fcn.11020030
add esp, 0x10
mov dword [ebp - 0x24], eax
test eax, eax
je 0x11017ddc
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x20], str.invalid_literal_lengths_set
jmp 0x110183d5
mov edx, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
mov dword [edi + 0x50], edx
lea edx, [edi + 0x2f0]
push edx
mov edx, dword [edi + 0x60]
lea eax, [edi + 0x58]
push eax
mov dword [eax], 6
mov eax, dword [edi + 0x64]
push eax
lea edx, [edi + edx*2 + 0x70]
push 2
call fcn.11020030
add esp, 0x10
mov dword [ebp - 0x24], eax
test eax, eax
je 0x11017e24
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], str.invalid_distances_set
mov eax, dword [ebp - 8]
jmp 0x110183d5
mov eax, dword [ebp - 8]
mov dword [edi], 0x13
mov dword [edi], 0x14
cmp dword [ebp - 4], 6
jb 0x11017ea9
cmp dword [ebp - 0x10], 0x102
jb 0x11017ea9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 4]
push ecx
mov dword [eax + 4], edx
push eax
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
call fcn.1101fc20
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov ebx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0x14], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
add esp, 8
cmp dword [edi], 0xb
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov eax, edx
jne 0x110183db
mov dword [edi + 0x1bc4], 0xffffffff
jmp 0x110183db
mov ecx, dword [edi + 0x54]
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x4c]
mov dword [edi + 0x1bc4], 0
dec edx
and edx, ebx
mov edx, dword [ecx + edx*4]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], edx
cmp ecx, esi
jbe 0x11017f14
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
mov ecx, dword [edi + 0x54]
inc eax
add esi, 8
add ebx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 8], eax
dec edx
and edx, ebx
mov edx, dword [ecx + edx*4]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], edx
cmp ecx, esi
ja 0x11017ed5
test dl, dl
je 0x11017fd7
test dl, 0xf0
jne 0x11017fd7
mov ecx, edx
shr ecx, 8
mov dword [ebp - 0x28], ecx
movzx ecx, cl
mov dword [ebp - 0x18], ecx
movzx ecx, dl
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x18]
dec edx
and edx, ebx
shr edx, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
add edx, ecx
mov ecx, dword [edi + 0x4c]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xc], ecx
shr ecx, 8
movzx edx, cl
movzx ecx, byte [ebp - 0x28]
add edx, ecx
cmp edx, esi
jbe 0x11017fc6
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x20]
dec dword [ebp - 4]
inc eax
add ebx, edx
movzx edx, ch
movzx ecx, cl
add ecx, edx
mov dword [ebp - 0x18], edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x18]
add esi, 8
mov dword [ebp - 8], eax
dec edx
and edx, ebx
shr edx, cl
movzx ecx, word [ebp - 0x1e]
add edx, ecx
mov ecx, dword [edi + 0x4c]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xc], ecx
shr ecx, 8
movzx edx, cl
add edx, dword [ebp - 0x18]
cmp edx, esi
ja 0x11017f70
movzx ecx, byte [ebp - 0x1f]
mov edx, dword [ebp - 0xc]
shr ebx, cl
sub esi, ecx
mov dword [edi + 0x1bc4], ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc4], ecx
shr ebx, cl
sub esi, ecx
mov dword [ebp - 0x18], ecx
mov ecx, edx
shr ecx, 0x10
mov dword [edi + 0x40], ecx
test dl, dl
jne 0x11018003
mov dword [edi], 0x19
jmp 0x110183db
test dl, 0x20
je 0x1101801d
mov dword [edi + 0x1bc4], 0xffffffff
mov dword [edi], 0xb
jmp 0x110183db
test dl, 0x40
je 0x11018031
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], str.invalid_literal_length_code
jmp 0x110183d5
movzx ecx, dl
and ecx, 0xf
mov dword [edi + 0x48], ecx
mov dword [edi], 0x15
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x1101808c
cmp esi, ecx
jae 0x11018072
jmp 0x11018050
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, dword [edi + 0x48]
jb 0x11018050
mov ecx, dword [edi + 0x48]
mov edx, 1
shl edx, cl
sub esi, ecx
dec edx
and edx, ebx
add dword [edi + 0x40], edx
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 edx, 1
shl edx, cl
mov ecx, dword [edi + 0x50]
dec edx
and edx, ebx
mov edx, dword [ecx + edx*4]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], edx
cmp ecx, esi
jbe 0x110180ff
lea ecx, [ecx]
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
mov ecx, dword [edi + 0x58]
inc eax
add esi, 8
add ebx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x50]
mov dword [ebp - 8], eax
dec edx
and edx, ebx
mov edx, dword [ecx + edx*4]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], edx
cmp ecx, esi
ja 0x110180c0
test dl, 0xf0
jne 0x110181b7
mov ecx, edx
shr ecx, 8
mov dword [ebp - 0x28], ecx
movzx ecx, cl
mov dword [ebp - 0x18], ecx
movzx ecx, dl
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x18]
dec edx
and edx, ebx
shr edx, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
add edx, ecx
mov ecx, dword [edi + 0x50]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xc], ecx
shr ecx, 8
movzx edx, cl
movzx ecx, byte [ebp - 0x28]
add edx, ecx
cmp edx, esi
jbe 0x110181a6
nop
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x20]
dec dword [ebp - 4]
inc eax
add ebx, edx
movzx edx, ch
movzx ecx, cl
add ecx, edx
mov dword [ebp - 0x18], edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x18]
add esi, 8
mov dword [ebp - 8], eax
dec edx
and edx, ebx
shr edx, cl
movzx ecx, word [ebp - 0x1e]
add edx, ecx
mov ecx, dword [edi + 0x50]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xc], ecx
shr ecx, 8
movzx edx, cl
add edx, dword [ebp - 0x18]
cmp edx, esi
ja 0x11018150
movzx ecx, byte [ebp - 0x1f]
mov edx, dword [ebp - 0xc]
shr ebx, cl
sub esi, ecx
add dword [edi + 0x1bc4], ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc4], ecx
shr ebx, cl
sub esi, ecx
mov dword [ebp - 0x18], ecx
test dl, 0x40
je 0x110181e0
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], str.invalid_distance_code
jmp 0x110183d5
mov ecx, edx
movzx edx, dl
shr ecx, 0x10
and edx, 0xf
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], edx
mov dword [edi], 0x17
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x1101823e
cmp esi, ecx
jae 0x11018224
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, dword [edi + 0x48]
jb 0x11018202
mov ecx, dword [edi + 0x48]
mov edx, 1
shl edx, cl
sub esi, ecx
dec edx
and edx, ebx
add dword [edi + 0x44], edx
shr ebx, cl
add dword [edi + 0x1bc4], ecx
mov dword [edi], 0x18
cmp dword [ebp - 0x10], 0
je 0x11018432
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
cmp ecx, edx
jbe 0x110182af
sub ecx, edx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [edi + 0x2c]
jbe 0x1101827d
cmp dword [edi + 0x1bc0], 0
je 0x1101827d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], str.invalid_distance_too_far_back
jmp 0x110183d5
mov edx, dword [edi + 0x30]
cmp ecx, edx
jbe 0x11018293
sub ecx, edx
mov edx, dword [edi + 0x34]
add edx, dword [edi + 0x28]
mov dword [ebp - 0xc], ecx
sub edx, ecx
jmp 0x1101829e
mov edx, dword [edi + 0x34]
sub edx, ecx
add edx, dword [edi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], edx
mov edx, dword [edi + 0x40]
mov dword [ebp - 0x20], edx
cmp ecx, edx
jbe 0x110182c0
mov ecx, edx
jmp 0x110182bd
mov edx, dword [ebp - 0x14]
sub edx, ecx
mov ecx, dword [edi + 0x40]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
cmp ecx, edx
jbe 0x110182cc
mov ecx, edx
mov dword [ebp - 0xc], ecx
sub edx, ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x20]
sub edx, ecx
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x14]
mov dword [edi + 0x40], edx
mov dword [ebp - 0x28], ecx
jmp 0x110182e7
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov dl, byte [ecx + edx]
mov ecx, dword [ebp - 0x14]
mov byte [ecx], dl
inc ecx
dec dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
jne 0x110182e4
cmp dword [edi + 0x40], 0
jne 0x110183db
mov dword [edi], 0x14
jmp 0x110183db
cmp dword [ebp - 0x10], 0
je 0x11018432
mov ecx, dword [ebp - 0x14]
mov dl, byte [edi + 0x40]
mov byte [ecx], dl
inc ecx
dec dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [edi], 0x14
jmp 0x110183db
cmp dword [edi + 8], 0
je 0x1101841c
cmp esi, 0x20
jae 0x11018365
cmp dword [ebp - 4], 0
je 0x11018432
movzx edx, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x20
jb 0x11018343
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add dword [edx + 0x18], ecx
mov dword [ebp - 0x1c], ecx
adc dword [edx + 0x1c], 0
add dword [edi + 0x1c], ecx
test ecx, ecx
je 0x1101839a
mov edx, dword [ebp - 0x14]
mov eax, ecx
mov ecx, dword [edi + 0x18]
sub edx, eax
call fcn.1101f9b0
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov ecx, ebx
and ecx, 0xff00
mov edx, ebx
shl edx, 0x10
add ecx, edx
mov edx, ebx
shr edx, 8
and edx, 0xff00
shl ecx, 8
add ecx, edx
mov edx, ebx
shr edx, 0x18
add ecx, edx
cmp ecx, dword [edi + 0x18]
je 0x11018418
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], str.incorrect_data_check
mov dword [edi], 0x1d
mov ecx, dword [edi]
cmp ecx, 0x1e
jbe 0x110176f3
pop esi
pop ebx
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [edx + 0x14], ecx
mov dword [edi + 0x3c], esi
pop esi
mov dword [edi + 0x38], ebx
pop ebx
mov eax, 2
pop edi
mov esp, ebp
pop ebp
ret
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x1c
mov dword [ebp - 0x24], 1
jmp 0x11018432
mov dword [ebp - 0x24], 0xfffffffd
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [ecx + 0x14], edx
mov dword [ecx + 4], eax
cmp dword [edi + 0x28], 0
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
jne 0x11018462
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 0x14]
je 0x1101848d
cmp dword [edi], 0x1d
jge 0x1101848d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + 0x10]
sub ecx, dword [eax + 0x14]
push edx
call fcn.11017580
add esp, 4
test eax, eax
je 0x1101848d
mov dword [edi], 0x1e
pop esi
pop ebx
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
sub eax, dword [esi + 4]
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [esi + 0x14]
add dword [esi + 8], eax
mov ecx, 0
mov dword [ebp - 0x2c], eax
adc dword [esi + 0xc], ecx
add dword [esi + 0x18], ebx
adc dword [esi + 0x1c], ecx
add dword [edi + 0x1c], ebx
cmp dword [edi + 8], ecx
je 0x110184d3
cmp ebx, ecx
je 0x110184d3
mov edx, dword [esi + 0x10]
mov ecx, dword [edi + 0x18]
sub edx, ebx
mov eax, ebx
call fcn.1101f9b0
mov dword [edi + 0x18], eax
mov dword [esi + 0x38], eax
xor ecx, ecx
mov eax, dword [edi]
cmp eax, 0x13
je 0x110184e2
mov dword [ebp + 8], ecx
cmp eax, 0xe
jne 0x110184e9
mov dword [ebp + 8], 0x100
mov ecx, dword [edi + 4]
neg ecx
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
cmp eax, 0xb
setne dl
add ecx, dword [ebp + 8]
dec edx
and edx, 0x80
add edx, ecx
add edx, dword [edi + 0x3c]
cmp dword [ebp - 0x2c], 0
mov dword [esi + 0x34], edx
jne 0x1101852c
test ebx, ebx
jne 0x1101852c
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x110176ec
pop esi
lea eax, [ebx - 5]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret