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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2c
test eax, eax
push ebp
push edi
je 0x494016
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x494016
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x494016
mov ebp, dword [eax]
test ebp, ebp
jne 0x492c76
cmp dword [eax + 4], ebp
jne 0x494016
cmp dword [edi], 0xb
jne 0x492c81
mov dword [edi], 0xc
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [edi]
cmp eax, 0x1c
push ebx
mov ebx, dword [edi + 0x30]
push esi
mov esi, dword [edi + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], 0
ja case.default.0x492cc0
lea ebx, [ebx]
jmp dword [eax*4 + 0x494024]
cmp dword [edi + 8], 0
jne 0x492cd8
mov dword [edi], 0xc
jmp 0x493ed6
cmp esi, 0x10
jae 0x492d08
lea ecx, [ecx]
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x492ce0
mov eax, dword [edi + 8]
test al, 2
je 0x492d5a
cmp ebx, 0x8b1f
jne 0x492d5a
push 0
xor edx, edx
xor ecx, ecx
call fcn.00494100
add esp, 4
mov edx, 2
lea ecx, [esp + 0x20]
mov dword [edi + 0x14], eax
mov byte [esp + 0x20], 0x1f
mov byte [esp + 0x21], 0x8b
call fcn.00494110
mov edx, dword [esp + 0x10]
xor ebx, ebx
mov dword [edi + 0x14], eax
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 1
jmp 0x493ed6
test al, 1
mov dword [edi + 0x10], 0
je 0x492dff
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 0x492dff
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x492da1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x493ed0
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
add ecx, 8
sub esi, 4
cmp ecx, dword [edi + 0x1c]
mov dword [esp + 0x18], ebx
jbe 0x492dcc
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_window_size
mov edx, dword [esp + 0x10]
jmp 0x493ed0
xor eax, eax
xor ecx, ecx
xor edx, edx
call fcn.004948c0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [edi], ebx
xor ebx, ebx
mov dword [edi + 0x14], eax
mov dword [ecx + 0x30], eax
mov dword [esp + 0x18], ebx
xor esi, esi
jmp 0x493ed6
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.incorrect_header_check
mov edx, dword [esp + 0x10]
jmp 0x493ed0
cmp esi, 0x10
jae 0x492e40
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x492e18
cmp bl, 8
mov dword [edi + 0x10], ebx
je 0x492e58
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x493ed0
test ebx, 0xe000
je 0x492e70
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x493ed0
test ebx, 0x200
je 0x492e9b
mov eax, dword [edi + 0x14]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.00494110
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x492eb0
cmp esi, 0x20
jae 0x492ed4
lea esp, [esp]
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
jb 0x492eb0
test dword [edi + 0x10], 0x200
je 0x492f12
mov eax, dword [edi + 0x14]
mov ecx, ebx
mov edx, ebx
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], cl
mov byte [esp + 0x22], dl
shr ebx, 0x18
mov edx, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x23], bl
call fcn.00494110
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x492f23
cmp esi, 0x10
jae 0x492f47
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
jb 0x492f23
test dword [edi + 0x10], 0x200
je 0x492f73
mov eax, dword [edi + 0x14]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.00494110
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x492feb
cmp esi, 0x10
jae 0x492fb4
nop
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
jb 0x492f90
test dword [edi + 0x10], 0x200
mov dword [edi + 0x38], ebx
je 0x492fe3
mov eax, dword [edi + 0x14]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.00494110
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 5
mov eax, dword [edi + 0x10]
test eax, 0x400
je 0x493052
mov ecx, dword [edi + 0x38]
cmp ecx, edx
mov dword [esp + 0x14], ecx
jbe 0x49300c
mov ecx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x493048
test eax, 0x200
je 0x493038
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x493022
xor eax, eax
jmp 0x493035
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.00494110
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x38]
sub edx, ecx
add ebp, ecx
sub eax, ecx
mov dword [esp + 0x10], edx
mov dword [edi + 0x38], eax
cmp dword [edi + 0x38], 0
jne 0x493f34
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x4930c4
test edx, edx
je 0x493f34
xor ecx, ecx
jmp 0x493070
movzx eax, byte [ecx + ebp]
add ecx, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x493083
cmp ecx, edx
jb 0x493070
test dword [edi + 0x10], 0x2000
mov dword [esp + 0x14], ecx
je 0x4930b1
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x49309b
xor eax, eax
jmp 0x4930ae
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.00494110
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
sub edx, ecx
add ebp, ecx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x10], edx
jne 0x493f34
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x493134
test edx, edx
je 0x493f34
xor ecx, ecx
lea ecx, [ecx]
movzx eax, byte [ecx + ebp]
add ecx, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4930f3
cmp ecx, edx
jb 0x4930e0
test dword [edi + 0x10], 0x2000
mov dword [esp + 0x14], ecx
je 0x493121
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x49310b
xor eax, eax
jmp 0x49311e
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.00494110
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
sub edx, ecx
add ebp, ecx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x10], edx
jne 0x493f34
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x493190
cmp esi, 0x10
jae 0x493170
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x493148
movzx ecx, word [edi + 0x14]
cmp ebx, ecx
je 0x493188
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x493ed0
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
push 0
xor edx, edx
xor ecx, ecx
call fcn.00494100
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x14], eax
mov dword [ecx + 0x30], eax
mov dword [edi], 0xb
jmp 0x493ed6
cmp esi, 0x20
jae 0x4931e8
lea esp, [esp]
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x4931c0
mov ecx, ebx
and ecx, 0xff00
mov eax, ebx
shl eax, 0x10
add ecx, eax
xor eax, eax
mov ah, byte [esp + 0x1a]
shl ecx, 8
shr ebx, 0x18
mov dword [edi], 0xa
add ecx, eax
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x40]
xor ebx, ebx
mov dword [edi + 0x14], eax
mov dword [ecx + 0x30], eax
xor esi, esi
cmp dword [edi + 0xc], 0
je 0x493eee
xor eax, eax
xor ecx, ecx
xor edx, edx
call fcn.004948c0
mov edx, dword [esp + 0x40]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
mov dword [edi], 0xb
cmp dword [edi + 4], 0
je 0x493263
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
mov dword [esp + 0x18], ebx
jmp 0x493ed6
cmp esi, 3
jae 0x49328c
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 3
mov dword [esp + 0x10], edx
jb 0x493268
mov ecx, ebx
shr ebx, 1
mov eax, ebx
and ecx, 1
and eax, 3
sub esi, 1
cmp eax, 3
mov dword [edi + 4], ecx
ja case.default.0x4932a3
jmp dword [eax*4 + 0x494098]
shr ebx, 2
mov dword [edi], 0xd
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x493ed6
shr ebx, 2
mov dword [edi + 0x44], 0x4adc40
mov dword [edi + 0x4c], 9
mov dword [edi + 0x48], 0x4ae440
mov dword [edi + 0x50], 5
mov dword [edi], 0x12
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x493ed6
shr ebx, 2
mov dword [edi], 0xf
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x493ed6
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [edi], 0x1b
shr ebx, 2
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x493ed6
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
cmp esi, 0x20
mov dword [esp + 0x18], ebx
jae 0x49335f
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x493337
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x493381
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x493ed0
xor ebx, ebx
mov dword [edi + 0x38], eax
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 0xe
mov eax, dword [edi + 0x38]
test eax, eax
mov dword [esp + 0x14], eax
je 0x493a69
cmp eax, edx
jbe 0x4933ab
mov eax, edx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x4933b9
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x493f34
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push ebp
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x20]
sub dword [esp + 0x1c], eax
sub dword [esp + 0x28], eax
add dword [esp + 0x30], eax
mov edx, dword [esp + 0x1c]
add esp, 0xc
add ebp, eax
sub dword [edi + 0x38], eax
jmp 0x493ed6
cmp esi, 0xe
jae 0x49341b
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0xe
mov dword [esp + 0x10], edx
jb 0x4933f7
mov ecx, ebx
and ecx, 0x1f
shr ebx, 5
add ecx, 0x101
mov eax, ebx
mov dword [edi + 0x58], ecx
shr ebx, 5
mov ecx, ebx
and eax, 0x1f
and ecx, 0xf
add eax, 1
add ecx, 4
shr ebx, 4
sub esi, 0xe
cmp dword [edi + 0x58], 0x11e
mov dword [edi + 0x5c], eax
mov dword [edi + 0x54], ecx
mov dword [esp + 0x18], ebx
ja 0x493557
cmp eax, 0x1e
ja 0x493557
mov dword [edi + 0x60], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x60]
cmp ecx, dword [edi + 0x54]
jae 0x4934d5
lea ebx, [ebx]
cmp esi, 3
jae 0x4934a9
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 3
mov dword [esp + 0x10], edx
jb 0x493485
mov eax, dword [edi + 0x60]
movzx eax, word [eax*2 + 0x4ae4c0]
movzx ecx, bl
and ecx, 7
mov word [edi + eax*2 + 0x68], cx
add dword [edi + 0x60], 1
mov ecx, dword [edi + 0x60]
shr ebx, 3
sub esi, 3
cmp ecx, dword [edi + 0x54]
mov dword [esp + 0x18], ebx
jb 0x493480
mov eax, 0x13
cmp dword [edi + 0x60], eax
jae 0x493509
xor ecx, ecx
jmp 0x4934f0
mov edx, dword [edi + 0x60]
movzx edx, word [edx*2 + 0x4ae4c0]
mov word [edi + edx*2 + 0x68], cx
add dword [edi + 0x60], 1
cmp dword [edi + 0x60], eax
jb 0x4934f0
lea eax, [edi + 0x528]
lea ecx, [edi + 0x64]
mov dword [ecx], eax
mov dword [edi + 0x44], eax
lea eax, [edi + 0x2e8]
push eax
push ecx
lea ecx, [edi + 0x68]
push ecx
lea edx, [edi + 0x4c]
push 0
mov ecx, 0x13
mov dword [edx], 7
call fcn.004943e0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x493567
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_code_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x493ed0
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x493ed0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x60], 0
mov dword [edi], 0x11
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
cmp dword [edi + 0x60], eax
jae 0x4937c9
jmp 0x493590
mov ecx, dword [edi + 0x4c]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x44]
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
jbe 0x4935f9
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x4c]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x44]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
ja 0x4935b5
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x49365b
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp esi, ecx
jae 0x49363a
nop
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
mov eax, dword [esp + 0x14]
movzx ecx, ah
cmp esi, ecx
mov dword [esp + 0x10], edx
jb 0x493610
movzx ecx, ah
mov eax, dword [edi + 0x60]
shr ebx, cl
sub esi, ecx
mov cx, word [esp + 0x16]
mov word [edi + eax*2 + 0x68], cx
add dword [edi + 0x60], 1
mov dword [esp + 0x18], ebx
jmp 0x4937ba
mov cx, word [esp + 0x16]
cmp cx, 0x10
jne 0x4936d1
movzx ecx, ah
lea eax, [ecx + 2]
cmp esi, eax
mov dword [esp + 0x2c], ecx
jae 0x49369e
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
sub edx, 1
add esi, 8
add ebx, eax
lea eax, [ecx + 2]
add ebp, 1
cmp esi, eax
mov dword [esp + 0x10], edx
jb 0x493674
mov eax, dword [edi + 0x60]
shr ebx, cl
sub esi, ecx
test eax, eax
mov dword [esp + 0x18], ebx
je 0x49381e
movzx ecx, word [edi + eax*2 + 0x66]
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
sub esi, 2
jmp 0x493780
cmp cx, 0x11
movzx ecx, ah
mov dword [esp + 0x2c], ecx
jne 0x493727
lea eax, [ecx + 3]
cmp esi, eax
jae 0x49370f
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
sub edx, 1
add esi, 8
add ebx, eax
lea eax, [ecx + 3]
add ebp, 1
cmp esi, eax
mov dword [esp + 0x10], edx
jb 0x4936e5
shr ebx, cl
mov eax, ebx
and eax, 7
add eax, 3
mov dword [esp + 0x14], eax
shr ebx, 3
mov eax, 0xfffffffd
jmp 0x493770
lea eax, [ecx + 7]
cmp esi, eax
jae 0x49375a
mov edi, edi
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
sub edx, 1
add esi, 8
add ebx, eax
lea eax, [ecx + 7]
add ebp, 1
cmp esi, eax
mov dword [esp + 0x10], edx
jb 0x493730
shr ebx, cl
mov eax, ebx
and eax, 0x7f
add eax, 0xb
mov dword [esp + 0x14], eax
shr ebx, 7
mov eax, 0xfffffff9
sub eax, ecx
add esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], 0
mov ecx, dword [edi + 0x60]
add ecx, eax
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
mov dword [esp + 0x18], ebx
cmp ecx, eax
ja 0x49382e
cmp dword [esp + 0x14], 0
je 0x4937ba
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x60]
sub dword [esp + 0x14], 1
mov word [edi + ecx*2 + 0x68], ax
add dword [edi + 0x60], 1
cmp dword [esp + 0x14], 0
jne 0x4937a2
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
cmp dword [edi + 0x60], eax
jb 0x493590
cmp dword [edi], 0x1b
je 0x493ed6
lea eax, [edi + 0x528]
lea ecx, [edi + 0x64]
mov dword [ecx], eax
mov dword [edi + 0x44], eax
lea eax, [edi + 0x2e8]
push eax
push ecx
lea ecx, [edi + 0x68]
push ecx
mov ecx, dword [edi + 0x58]
lea edx, [edi + 0x4c]
push 1
mov dword [edx], 9
call fcn.004943e0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x49383e
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x493ed0
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x493ed0
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x493ed0
mov ecx, dword [edi + 0x64]
lea eax, [edi + 0x64]
mov dword [edi + 0x48], ecx
lea ecx, [edi + 0x2e8]
push ecx
push eax
mov eax, dword [edi + 0x58]
lea ecx, [edi + eax*2 + 0x68]
push ecx
mov ecx, dword [edi + 0x5c]
lea edx, [edi + 0x50]
push 2
mov dword [edx], 6
call fcn.004943e0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x493889
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_distances_set
mov edx, dword [esp + 0x10]
jmp 0x493ed0
mov edx, dword [esp + 0x10]
mov dword [edi], 0x12
cmp edx, 6
jb 0x4938fd
cmp dword [esp + 0x1c], 0x102
jb 0x4938fd
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], esi
call fcn.004949f0
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 + 0x30]
mov esi, dword [edi + 0x34]
mov dword [esp + 0x24], edx
add esp, 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebx
mov edx, eax
jmp 0x493ed6
mov ecx, dword [edi + 0x4c]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x44]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
jbe 0x493968
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x4c]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x44]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
ja 0x493924
test al, al
je 0x493a3a
test al, 0xf0
jne 0x493a3a
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, cl
mov dword [esp + 0x2c], ecx
movzx ecx, al
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
sub eax, 1
and eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x44]
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 0x493a2d
jmp 0x4939d0
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x18]
sub edx, 1
add esi, 8
add ebx, eax
movzx eax, ch
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x1a]
add eax, ecx
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x2c]
cmp eax, esi
ja 0x4939d0
movzx ecx, byte [esp + 0x19]
mov eax, dword [esp + 0x14]
shr ebx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x2c], ecx
mov ecx, eax
shr ecx, 0x10
test al, al
mov dword [esp + 0x18], ebx
mov dword [edi + 0x38], ecx
jne 0x493a65
mov dword [edi], 0x17
jmp 0x493ed6
test al, 0x20
je 0x493a74
mov dword [edi], 0xb
jmp 0x493ed6
test al, 0x40
je 0x493a88
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x493ed0
and eax, 0xf
mov dword [edi + 0x40], eax
mov dword [edi], 0x13
mov eax, dword [edi + 0x40]
test eax, eax
je 0x493ada
cmp esi, eax
jae 0x493ac4
nop
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, dword [edi + 0x40]
mov dword [esp + 0x10], edx
jb 0x493aa0
mov ecx, dword [edi + 0x40]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
add dword [edi + 0x38], eax
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x14
mov ecx, dword [edi + 0x50]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x48]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
jbe 0x493b4b
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x50]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x48]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
ja 0x493b07
test al, 0xf0
jne 0x493c10
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, cl
mov dword [esp + 0x2c], ecx
movzx ecx, al
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
sub eax, 1
and eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x48]
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 0x493c03
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x18]
sub edx, 1
add esi, 8
add ebx, eax
movzx eax, ch
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x1a]
add eax, ecx
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x2c]
cmp eax, esi
ja 0x493ba6
movzx ecx, byte [esp + 0x19]
mov eax, dword [esp + 0x14]
shr ebx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
test al, 0x40
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebx
je 0x493c38
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x493ed0
mov ecx, eax
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], eax
mov dword [edi], 0x15
mov eax, dword [edi + 0x40]
test eax, eax
je 0x493c95
cmp esi, eax
jae 0x493c7b
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, dword [edi + 0x40]
mov dword [esp + 0x10], edx
jb 0x493c57
mov ecx, dword [edi + 0x40]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
add dword [edi + 0x3c], eax
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x18], ebx
mov ecx, dword [edi + 0x24]
sub ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x28]
cmp dword [edi + 0x3c], ecx
jbe 0x493cb5
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x493ed0
mov dword [edi], 0x16
cmp dword [esp + 0x1c], 0
je 0x493f34
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x3c]
cmp eax, ecx
jbe 0x493d11
sub eax, ecx
mov ecx, dword [edi + 0x28]
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x493cf2
sub eax, ecx
mov ecx, dword [edi + 0x2c]
add ecx, dword [edi + 0x20]
mov dword [esp + 0x14], eax
sub ecx, eax
jmp 0x493cfe
mov ecx, dword [edi + 0x2c]
sub ecx, eax
add ecx, dword [edi + 0x28]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x38]
cmp eax, ecx
mov dword [esp + 0x34], ecx
jbe 0x493d26
mov eax, ecx
jmp 0x493d22
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x493d34
mov eax, ecx
mov dword [esp + 0x14], eax
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov dword [edi + 0x38], ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov cl, byte [ecx]
mov byte [eax], cl
mov ecx, 1
add dword [esp + 0x2c], ecx
add eax, ecx
sub dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jne 0x493d43
cmp dword [edi + 0x38], 0
jne 0x493ed6
mov dword [edi], 0x12
jmp 0x493ed6
cmp dword [esp + 0x1c], 0
je 0x493f34
mov eax, dword [esp + 0x24]
mov cl, byte [edi + 0x38]
mov byte [eax], cl
add eax, 1
sub dword [esp + 0x1c], 1
mov dword [esp + 0x24], eax
mov dword [edi], 0x12
jmp 0x493ed6
cmp dword [edi + 8], 0
je 0x493e79
cmp esi, 0x20
jae 0x493ddb
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x493db3
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add dword [ecx + 0x14], eax
add dword [edi + 0x18], eax
test eax, eax
mov dword [esp + 0x28], eax
je 0x493e31
cmp dword [edi + 0x10], 0
mov ecx, dword [esp + 0x24]
je 0x493e15
sub ecx, eax
mov eax, dword [edi + 0x14]
jne 0x493e0a
xor eax, eax
jmp 0x493e27
mov edx, dword [esp + 0x28]
call fcn.00494110
jmp 0x493e23
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 0x14]
sub ecx, eax
call fcn.004948c0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x14], eax
mov dword [ecx + 0x30], eax
cmp dword [edi + 0x10], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, ebx
jne 0x493e5f
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [edi + 0x14]
je 0x493e71
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x493ed0
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x493f1c
cmp dword [edi + 0x10], 0
je 0x493f1c
cmp esi, 0x20
jae 0x493ec0
test edx, edx
je 0x493f34
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x493e98
cmp ebx, dword [edi + 0x18]
je 0x493f18
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [edi], 0x1b
mov eax, dword [edi]
cmp eax, 0x1c
jbe switch.0x00492cc0
mov eax, 0xfffffffe
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x34], esi
pop esi
mov dword [edi + 0x30], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
pop ebx
mov dword [eax], ebp
pop edi
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
mov eax, 2
pop ebp
add esp, 0x2c
ret
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x1a
mov dword [esp + 0x30], 1
jmp 0x493f34
mov dword [esp + 0x30], 0xfffffffd
cmp dword [edi + 0x20], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov dword [eax], ebp
mov dword [eax + 4], edx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], esi
jne 0x493f64
cmp dword [edi], 0x18
jge 0x493f88
mov edx, ecx
cmp dword [esp + 0x28], edx
je 0x493f88
push eax
mov eax, dword [esp + 0x2c]
call fcn.00492b50
add esp, 4
test eax, eax
je 0x493f88
mov dword [edi], 0x1c
pop esi
pop ebx
pop edi
mov eax, 0xfffffffc
pop ebp
add esp, 0x2c
ret
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
sub edx, dword [esi + 0x10]
sub eax, dword [esi + 4]
add dword [esi + 0x14], edx
add dword [esi + 8], eax
add dword [edi + 0x18], edx
cmp dword [edi + 8], 0
je 0x493fda
test edx, edx
je 0x493fda
cmp dword [edi + 0x10], 0
mov ecx, dword [esi + 0xc]
je 0x493fc8
sub ecx, edx
mov eax, dword [edi + 0x14]
jne 0x493fc1
xor eax, eax
jmp 0x493fd4
call fcn.00494110
jmp 0x493fd4
sub ecx, edx
mov eax, edx
mov edx, dword [edi + 0x14]
call fcn.004948c0
mov dword [edi + 0x14], eax
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x30]
neg ecx
sbb ecx, ecx
and ecx, 0x40
xor edx, edx
cmp dword [edi], 0xb
setne dl
sub edx, 1
and edx, 0x80
add ecx, edx
add ecx, dword [edi + 0x34]
test eax, eax
mov dword [esi + 0x2c], ecx
jne 0x493ee6
pop esi
pop ebx
pop edi
mov eax, 0xfffffffb
pop ebp
add esp, 0x2c
ret
pop edi
mov eax, 0xfffffffe
pop ebp
add esp, 0x2c
ret