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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0xe3c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x50], edx
mov edx, ecx
mov dword [ebp - 0x34], edx
push esi
push edi
test edx, edx
je case.0x4be2a7.29
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je case.0x4be2a7.29
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x3c], eax
test eax, eax
je case.0x4be2a7.29
mov edi, dword [edx]
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x4be251
cmp dword [edx + 4], edi
jne case.0x4be2a7.29
mov eax, dword [ecx]
cmp eax, 0xb
jne 0x4be26e
mov dword [ecx], 0xc
mov eax, dword [edx + 0xc]
mov edi, dword [edx]
mov dword [ebp - 0x3c], eax
mov eax, 0xc
mov dword [ebp - 0x18], edi
mov edi, dword [edx + 0x10]
mov ebx, dword [edx + 4]
mov edx, dword [ecx + 0x38]
mov esi, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], edi
xor edi, edi
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x4c], ebx
cmp eax, 0x1d
ja case.0x4be2a7.29
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x54], 0x1f
jmp dword [eax*4 + 0x4bf844]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4be2c3
mov dword [ecx], 0xc
jmp 0x4bf270
cmp esi, 0x10
jae 0x4be2f5
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
dec ebx
mov dword [ebp - 0x20], esi
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edx
cmp esi, 0x10
jb 0x4be2c8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
test al, 2
je 0x4be336
cmp edx, 0x8b1f
jne 0x4be336
mov dword [ecx + 0x18], 0
xor ecx, ecx
mov word [ebp - 8], dx
lea edx, [ebp - 8]
push 2
call fcn.004bbb60
mov ecx, dword [ebp - 0x14]
xor edx, edx
add esp, 4
mov dword [ebp - 0xc], edx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ecx + 0x18], eax
mov dword [ecx], 1
jmp 0x4bf270
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x10], 0
test eax, eax
je 0x4be34b
mov dword [eax + 0x30], 0xffffffff
mov eax, dword [ecx + 8]
test al, 1
je 0x4be401
movzx ecx, dl
mov eax, edx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 0x14]
div dword [ebp - 0x54]
test edx, edx
mov edx, dword [ebp - 0xc]
jne 0x4be401
mov eax, edx
and al, 0xf
cmp al, 8
je 0x4be393
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.unknown_compression_method
mov dword [ecx], 0x1b
jmp 0x4bf270
shr edx, 4
sub esi, 4
mov eax, edx
mov dword [ebp - 0xc], edx
and eax, 0xf
mov dword [ebp - 0x20], esi
add eax, 8
mov dword [ebp - 0x24], eax
cmp eax, dword [ecx + 0x24]
jbe 0x4be3c4
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.invalid_window_size
mov dword [ecx], 0x1b
jmp 0x4bf270
mov ecx, dword [ebp - 0x24]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x14]
shr edx, 8
not edx
and edx, 2
mov dword [ecx + 0x14], eax
or edx, 9
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0x18], 1
mov dword [eax + 0x30], 1
mov dword [ecx], edx
xor edx, edx
xor esi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
jmp 0x4bf270
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.incorrect_header_check
mov dword [ecx], 0x1b
jmp 0x4bf270
cmp esi, 0x10
jae 0x4be44a
nop dword [eax + eax]
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
dec ebx
mov dword [ebp - 0x20], esi
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edx
cmp esi, 0x10
jb 0x4be420
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], edx
cmp dl, 8
jne 0x4be37e
test edx, 0xe000
je 0x4be473
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.unknown_header_flags_set
mov dword [ecx], 0x1b
jmp 0x4bf270
mov esi, dword [ecx + 0x20]
mov eax, edx
shr eax, 8
mov dword [ebp - 0x28], edx
test esi, esi
je 0x4be493
mov dword [ebp - 0x24], eax
and eax, 1
mov dword [esi], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
test dword [ebp - 0x28], 0x200
je 0x4be4b8
mov ecx, dword [ecx + 0x18]
mov byte [ebp - 8], dl
lea edx, [ebp - 8]
push 2
mov byte [ebp - 7], al
call fcn.004bbb60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ecx + 0x18], eax
xor edx, edx
mov dword [ecx], 2
mov dword [ebp - 0xc], edx
xor esi, esi
jmp 0x4be4d0
cmp esi, 0x20
jae 0x4be4f7
nop dword [eax]
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
add esi, 8
mov dword [ebp - 0xc], edx
cmp esi, 0x20
jb 0x4be4d0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4be501
mov dword [eax + 4], edx
test dword [ecx + 0x10], 0x200
je 0x4be539
mov ecx, dword [ecx + 0x18]
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
mov byte [ebp - 8], dl
shr edx, 0x18
shr eax, 0x10
mov byte [ebp - 5], dl
lea edx, [ebp - 8]
push 4
mov byte [ebp - 6], al
call fcn.004bbb60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ecx + 0x18], eax
xor edx, edx
mov dword [ecx], 3
mov dword [ebp - 0xc], edx
xor esi, esi
jmp 0x4be550
cmp esi, 0x10
jae 0x4be577
nop dword [eax]
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
add esi, 8
mov dword [ebp - 0xc], edx
cmp esi, 0x10
jb 0x4be550
mov ecx, dword [ebp - 0x14]
mov esi, dword [ecx + 0x20]
mov eax, edx
shr eax, 8
mov dword [ebp - 0x28], eax
test esi, esi
je 0x4be597
movzx eax, dl
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp - 0x28]
mov dword [eax + 0xc], esi
mov eax, esi
test dword [ecx + 0x10], 0x200
je 0x4be5bc
mov ecx, dword [ecx + 0x18]
mov byte [ebp - 8], dl
lea edx, [ebp - 8]
push 2
mov byte [ebp - 7], al
call fcn.004bbb60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ecx + 0x18], eax
xor edx, edx
mov dword [ecx], 4
xor esi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
test dword [ecx + 0x10], 0x400
je 0x4be64a
cmp esi, 0x10
jae 0x4be607
nop word [eax + eax]
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
add esi, 8
mov dword [ebp - 0xc], edx
cmp esi, 0x10
jb 0x4be5e0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x40], edx
test eax, eax
je 0x4be614
mov dword [eax + 0x14], edx
test dword [ecx + 0x10], 0x200
je 0x4be63c
mov ecx, dword [ecx + 0x18]
mov byte [ebp - 8], dl
shr edx, 8
mov byte [ebp - 7], dl
lea edx, [ebp - 8]
push 2
call fcn.004bbb60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ecx + 0x18], eax
xor esi, esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], esi
jmp 0x4be658
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4be658
mov dword [eax + 0x10], 0
mov dword [ecx], 5
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x2c], eax
test eax, 0x400
je 0x4be732
mov eax, dword [ecx + 0x40]
mov edx, ebx
cmp eax, ebx
cmovbe edx, eax
mov dword [ebp - 0x48], edx
test edx, edx
je 0x4be72a
cmp dword [ecx + 0x20], 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
je 0x4be6ee
mov edi, dword [ecx + 0x20]
mov dword [ebp - 0x28], eax
mov ebx, dword [edi + 0x10]
test ebx, ebx
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x18]
je 0x4be6ee
mov ecx, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x14]
mov edi, dword [ecx + 0x18]
sub ebx, eax
mov eax, dword [ebp - 0x48]
lea ecx, [edx + ebx]
mov edx, edi
sub edx, ebx
cmp ecx, edi
mov edi, dword [ebp - 0x18]
cmova eax, edx
push eax
mov eax, dword [ebp - 0x24]
add eax, ebx
push edi
push eax
call fcn.00d9a680
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
test dword [ebp - 0x2c], 0x200
je 0x4be715
mov eax, dword [ecx + 0x18]
test edi, edi
jne 0x4be702
xor eax, eax
jmp 0x4be712
push edx
mov edx, edi
mov ecx, eax
call fcn.004bbb60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x48]
sub ebx, edx
mov eax, dword [ebp - 0x28]
add edi, edx
sub eax, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
mov dword [ecx + 0x40], eax
test eax, eax
jne 0x4bf733
mov dword [ecx + 0x40], 0
mov dword [ecx], 6
test dword [ecx + 0x10], 0x800
je 0x4be7ee
test ebx, ebx
je 0x4bf733
xor edx, edx
mov al, byte [edx + edi]
inc edx
mov byte [ebp - 0x2d], al
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4be787
mov esi, dword [eax + 0x1c]
mov dword [ebp - 0x24], esi
test esi, esi
je 0x4be787
mov esi, dword [ecx + 0x40]
cmp esi, dword [eax + 0x20]
jae 0x4be787
mov bl, byte [ebp - 0x2d]
mov eax, esi
mov esi, dword [ebp - 0x24]
mov byte [eax + esi], bl
inc dword [ecx + 0x40]
mov ebx, dword [ebp - 0x10]
mov al, byte [ebp - 0x2d]
test al, al
je 0x4be792
cmp edx, ebx
jb 0x4be756
test dword [ecx + 0x10], 0x200
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
je 0x4be7da
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x24]
test edi, edi
jne 0x4be7b7
mov dword [ebp - 0x28], 0
jmp 0x4be7d1
mov ecx, dword [ebp - 0x1c]
push edx
mov edx, edi
call fcn.004bbb60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x2d]
mov ebx, dword [ebp - 0x28]
mov dword [ecx + 0x18], ebx
mov ebx, dword [ebp - 0x10]
sub ebx, edx
add edi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
test al, al
jne 0x4bf733
jmp 0x4be7fc
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4be7fc
mov dword [eax + 0x1c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx], 7
test dword [ecx + 0x10], 0x1000
je 0x4be8b8
test ebx, ebx
je 0x4bf733
xor edx, edx
mov al, byte [edx + edi]
inc edx
mov byte [ebp - 0x2d], al
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4be851
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x24], esi
test esi, esi
je 0x4be851
mov esi, dword [ecx + 0x40]
cmp esi, dword [eax + 0x28]
jae 0x4be851
mov bl, byte [ebp - 0x2d]
mov eax, esi
mov esi, dword [ebp - 0x24]
mov byte [eax + esi], bl
inc dword [ecx + 0x40]
mov ebx, dword [ebp - 0x10]
mov al, byte [ebp - 0x2d]
test al, al
je 0x4be85c
cmp edx, ebx
jb 0x4be820
test dword [ecx + 0x10], 0x200
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
je 0x4be8a4
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x24]
test edi, edi
jne 0x4be881
mov dword [ebp - 0x28], 0
jmp 0x4be89b
mov ecx, dword [ebp - 0x1c]
push edx
mov edx, edi
call fcn.004bbb60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x2d]
mov ebx, dword [ebp - 0x28]
mov dword [ecx + 0x18], ebx
mov ebx, dword [ebp - 0x10]
sub ebx, edx
add edi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
test al, al
jne 0x4bf733
jmp 0x4be8c6
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4be8c6
mov dword [eax + 0x24], 0
mov edx, dword [ebp - 0xc]
mov dword [ecx], 8
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x1c], eax
test eax, 0x200
je 0x4be932
cmp esi, 0x10
jae 0x4be90b
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
dec ebx
mov dword [ebp - 0x20], esi
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edx
cmp esi, 0x10
jb 0x4be8e1
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0x18]
cmp edx, eax
je 0x4be928
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.header_crc_mismatch
mov dword [ecx], 0x1b
jmp 0x4bf270
xor edx, edx
xor esi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4be952
mov edi, dword [ebp - 0x1c]
sar edi, 9
and edi, 1
mov dword [eax + 0x2c], edi
mov eax, dword [ecx + 0x20]
mov edi, dword [ebp - 0x18]
mov dword [eax + 0x30], 1
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0x18], 0
mov dword [eax + 0x30], 0
mov dword [ecx], 0xb
jmp 0x4bf270
cmp esi, 0x20
jae 0x4be997
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
add esi, 8
mov dword [ebp - 0xc], edx
cmp esi, 0x20
jb 0x4be973
mov ecx, edx
mov eax, edx
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
shr edx, 0x18
add eax, ecx
mov ecx, dword [ebp - 0x14]
add eax, edx
mov edx, dword [ebp - 0x34]
mov dword [ecx + 0x18], eax
mov dword [edx + 0x30], eax
xor edx, edx
mov dword [ebp - 0xc], edx
xor esi, esi
mov dword [ecx], 0xa
cmp dword [ecx + 0xc], 0
mov eax, dword [ebp - 0x34]
je 0x4bf6e4
mov dword [ecx + 0x18], 1
mov dword [eax + 0x30], 1
mov dword [ecx], 0xb
cmp dword [ebp - 0x50], 5
je 0x4bf733
cmp dword [ecx + 4], 0
je 0x4bea21
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
mov dword [ecx], 0x18
jmp 0x4bf270
cmp esi, 3
jae 0x4bea4d
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
add esi, 8
mov dword [ebp - 0xc], edx
cmp esi, 3
jb case.default.0x4bea5c
mov ecx, dword [ebp - 0x14]
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ecx + 4], eax
mov eax, edx
and eax, 3
jmp dword [eax*4 + 0x4bf8bc]
shr edx, 2
sub esi, 3
mov dword [ecx], 0xd
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
jmp 0x4bf270
shr edx, 2
sub esi, 3
mov dword [ecx + 0x4c], 0xdf4860
mov dword [ecx + 0x54], 9
mov dword [ecx + 0x50], 0xdf4550
mov dword [ecx + 0x58], 5
mov dword [ecx], 0x12
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
jmp 0x4bf270
shr edx, 2
sub esi, 3
mov dword [ecx], 0xf
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
jmp 0x4bf270
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [ecx], 0x1b
shr edx, 2
sub esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
jmp 0x4bf270
mov ecx, esi
and ecx, 7
sub esi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
cmp esi, 0x20
jae 0x4beb27
nop dword [eax]
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
dec ebx
mov dword [ebp - 0x20], esi
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edx
cmp esi, 0x20
jb 0x4beb00
mov eax, edx
movzx ecx, dx
not eax
mov dword [ebp - 0x1c], ecx
shr eax, 0x10
cmp ecx, eax
mov ecx, dword [ebp - 0x14]
je 0x4beb50
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
mov dword [ecx], 0x1b
jmp 0x4bf270
mov eax, dword [ebp - 0x1c]
xor edx, edx
xor esi, esi
mov dword [ecx + 0x40], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
mov dword [ecx], 0xe
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4be963
cmp dword [ebp - 0x1c], ebx
mov eax, ebx
mov ecx, dword [ebp - 0x38]
cmovbe eax, dword [ebp - 0x1c]
cmp eax, ecx
cmovbe ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x4bf733
push ecx
push edi
push dword [ebp - 0x3c]
call fcn.00d9a680
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
sub ebx, eax
sub dword [ebp - 0x38], eax
add edi, eax
add dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0xc]
sub dword [ecx + 0x40], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
jmp 0x4bf270
cmp esi, 0xe
jae 0x4bebe7
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
add esi, 8
mov dword [ebp - 0xc], edx
cmp esi, 0xe
jb 0x4bebc3
mov eax, dword [ebp - 0x14]
mov ecx, edx
shr edx, 5
and ecx, 0x1f
mov edi, edx
add ecx, 0x101
and edi, 0x1f
shr edx, 5
inc edi
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], edi
sub esi, 0xe
mov dword [ebp - 0x1c], edi
mov eax, edx
mov edi, dword [ebp - 0x14]
and eax, 0xf
add eax, 4
shr edx, 4
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
mov dword [edi + 0x5c], eax
mov edi, dword [ebp - 0x18]
cmp ecx, 0x11e
ja 0x4bed32
cmp dword [ebp - 0x1c], 0x1e
ja 0x4bed32
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x68], 0
mov dword [ecx], 0x10
mov eax, dword [ecx + 0x68]
cmp eax, dword [ecx + 0x5c]
jae 0x4becbb
cmp esi, 3
jae 0x4bec84
nop word [eax + eax]
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
add esi, 8
mov dword [ebp - 0xc], edx
cmp esi, 3
jb 0x4bec60
mov eax, dword [ebp - 0x14]
mov ecx, edx
mov edi, dword [ebp - 0x14]
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [ebp - 0xc], edx
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x20], esi
movzx eax, word [eax*2 + 0xdf43e8]
mov word [edi + eax*2 + 0x70], cx
mov ecx, edi
mov edi, dword [ebp - 0x18]
inc dword [ecx + 0x68]
mov eax, dword [ecx + 0x68]
cmp eax, dword [ecx + 0x5c]
jb 0x4bec55
cmp eax, 0x13
jae 0x4becdb
mov eax, dword [ecx + 0x68]
xor edx, edx
movzx eax, word [eax*2 + 0xdf43e8]
mov word [ecx + eax*2 + 0x70], dx
inc dword [ecx + 0x68]
cmp dword [ecx + 0x68], 0x13
jb 0x4becc0
lea eax, [ecx + 0x530]
mov dword [ecx + 0x54], 7
lea edx, [ecx + 0x6c]
mov dword [ecx + 0x4c], eax
mov dword [edx], eax
add ecx, 0x54
mov eax, dword [ebp - 0x14]
add eax, 0x2f0
push eax
push ecx
push edx
mov edx, dword [ebp - 0x14]
xor ecx, ecx
push 0x13
lea edx, [edx + 0x70]
call fcn.004bf8d0
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4bed4a
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.invalid_code_lengths_set
mov dword [ecx], 0x1b
jmp 0x4bf270
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
mov dword [ecx], 0x1b
jmp 0x4bf270
mov dword [ecx + 0x68], 0
mov dword [ecx], 0x11
mov dword [ebp - 0x28], 0x11
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x60]
cmp dword [ecx + 0x68], eax
jae 0x4beff0
nop dword [eax]
mov ecx, dword [ecx + 0x54]
mov eax, 1
shl eax, cl
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x24], eax
mov eax, ecx
mov ecx, dword [ebp - 0x24]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
shr dword [ebp - 0x2c], 0x10
movzx ecx, cl
mov dword [ebp - 0x28], eax
cmp ecx, esi
jbe 0x4bedf3
nop dword [eax]
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp - 0x1c]
inc edi
and eax, edx
mov dword [ebp - 0x10], ebx
add esi, 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
shr dword [ebp - 0x2c], 0x10
movzx ecx, cl
mov dword [ebp - 0x28], eax
cmp ecx, esi
ja 0x4bedb0
mov ecx, dword [ebp - 0x2c]
movzx ecx, cx
mov dword [ebp - 0x1c], ecx
movzx ecx, cx
cmp ecx, 0x10
mov ecx, dword [ebp - 0x20]
movzx ecx, cl
jae 0x4bee65
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
jae 0x4bee36
test ebx, ebx
je 0x4bf733
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
dec ebx
add dword [ebp - 0xc], edx
inc edi
add esi, 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
cmp esi, dword [ebp - 0x1c]
jb 0x4bee11
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
movzx ecx, ah
mov eax, dword [ebp - 0x14]
sub esi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
mov ecx, dword [eax + 0x68]
mov ax, word [ebp - 0x26]
mov word [edi + ecx*2 + 0x70], ax
mov ecx, edi
inc dword [ecx + 0x68]
mov eax, dword [ecx + 0x68]
mov dword [ebp - 0x28], eax
jmp 0x4befbf
jne 0x4beed1
add ecx, 2
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
jae 0x4bee96
test ebx, ebx
je 0x4bf733
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
dec ebx
add dword [ebp - 0xc], edx
inc edi
add esi, 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
cmp esi, dword [ebp - 0x1c]
jb 0x4bee71
mov edx, dword [ebp - 0xc]
movzx ecx, ah
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
cmp dword [ecx + 0x68], 0
je 0x4befdb
mov eax, edx
shr edx, 2
and eax, 3
add eax, 3
sub esi, 2
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x68]
movzx eax, word [ecx + eax*2 + 0x6e]
mov dword [ebp - 0x28], eax
jmp 0x4bef7b
cmp word [ebp - 0x1c], 0x11
jne 0x4bef21
add ecx, 3
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
jae 0x4bef07
test ebx, ebx
je 0x4bf733
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
dec ebx
add dword [ebp - 0xc], edx
inc edi
add esi, 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
cmp esi, dword [ebp - 0x1c]
jb 0x4beee2
mov edx, dword [ebp - 0xc]
movzx ecx, ah
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
mov dword [ebp - 0x2c], eax
mov eax, 0xfffffffd
jmp 0x4bef6d
add ecx, 7
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
jae 0x4bef55
nop dword [eax + eax]
test ebx, ebx
je 0x4bf733
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
dec ebx
add dword [ebp - 0xc], edx
inc edi
add esi, 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
cmp esi, dword [ebp - 0x1c]
jb 0x4bef30
mov edx, dword [ebp - 0xc]
movzx ecx, ah
shr edx, cl
mov eax, edx
and eax, 0x7f
add eax, 0xb
shr edx, 7
mov dword [ebp - 0x2c], eax
mov eax, 0xfffffff9
sub eax, ecx
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x14]
add esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x64]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
add ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x68]
add eax, dword [ebp - 0x2c]
cmp eax, ecx
mov ecx, dword [ebp - 0x14]
ja 0x4befdb
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
nop dword [eax]
mov eax, dword [ecx + 0x68]
mov word [ecx + eax*2 + 0x70], dx
mov ebx, dword [ecx + 0x68]
lea ebx, [ebx + 1]
mov dword [ebp - 0x28], ebx
mov dword [ecx + 0x68], ebx
sub edi, 1
jne 0x4befa0
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x60]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x64]
add eax, dword [ebp - 0x24]
cmp dword [ebp - 0x28], eax
jb 0x4bed70
mov eax, dword [ecx]
jmp 0x4beff3
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [ecx], 0x1b
jmp 0x4bf270
mov eax, dword [ebp - 0x28]
cmp eax, 0x1b
je 0x4bf270
lea edx, [ecx + 0x6c]
mov dword [ecx + 0x54], 9
lea eax, [ecx + 0x530]
mov dword [ebp - 0x1c], edx
lea edi, [ecx + 0x2f0]
mov dword [edx], eax
mov dword [ecx + 0x4c], eax
lea eax, [ecx + 0x54]
push edi
push eax
push edx
push dword [ecx + 0x60]
lea edx, [ecx + 0x70]
mov dword [ebp - 0x24], edi
mov ecx, 1
call fcn.004bf8d0
mov edi, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4bf05b
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
mov dword [ecx], 0x1b
jmp 0x4bf270
mov edx, dword [ebp - 0x1c]
push dword [ebp - 0x24]
mov dword [ecx + 0x58], 6
mov eax, dword [edx]
mov dword [ecx + 0x50], eax
lea eax, [ecx + 0x58]
push eax
mov eax, dword [ecx + 0x60]
push edx
push dword [ecx + 0x64]
add ecx, 0x70
lea edx, [ecx + eax*2]
mov ecx, 2
call fcn.004bf8d0
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4bf0ad
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.invalid_distances_set
mov dword [ecx], 0x1b
jmp 0x4bf270
mov dword [ecx], 0x12
cmp ebx, 6
jb 0x4bf116
cmp dword [ebp - 0x38], 0x102
jb 0x4bf116
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x3c]
mov dword [eax + 0xc], edi
mov edi, dword [ebp - 0x38]
mov dword [eax + 0x10], edi
mov edi, dword [ebp - 0x18]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [ecx + 0x38], edx
mov edx, dword [ebp - 0x40]
mov dword [ecx + 0x3c], esi
mov ecx, eax
call fcn.004bdb60
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + 0x38]
mov esi, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
jmp 0x4bf270
mov ecx, dword [ecx + 0x54]
mov eax, 1
shl eax, cl
dec eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
mov eax, dword [ebp - 0x24]
and eax, edx
mov dword [ebp - 0x28], ecx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x4bf177
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x28]
add edx, eax
mov eax, dword [ebp - 0x24]
inc edi
and eax, edx
mov dword [ebp - 0x10], ebx
add esi, 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x4bf141
test al, al
je 0x4bf222
test al, 0xf0
jne 0x4bf222
mov ecx, eax
mov edi, 1
shr ecx, 8
mov edx, eax
movzx ebx, cl
movzx ecx, al
add ecx, ebx
shr eax, 0x10
shl edi, cl
mov ecx, ebx
dec edi
mov dword [ebp - 0x48], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x28]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
jbe 0x4bf215
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4bf736
mov ecx, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x10], eax
mov edi, 1
movzx ebx, dh
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x18], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add dword [ebp - 0xc], eax
movzx eax, word [ebp - 0x46]
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [ebp - 0xc]
shr edi, cl
add edi, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x4bf1c1
mov ebx, dword [ebp - 0x10]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub esi, ecx
mov edi, dword [ebp - 0x14]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub esi, ecx
mov ecx, eax
mov dword [ebp - 0xc], edx
shr ecx, 0x10
mov dword [edi + 0x40], ecx
mov ecx, edi
mov dword [ebp - 0x20], esi
test al, al
jne 0x4bf24d
mov dword [ecx], 0x17
jmp 0x4bf26d
test al, 0x20
je 0x4bf259
mov dword [ecx], 0xb
jmp 0x4bf26d
test al, 0x40
je 0x4bf294
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.invalid_literal_length_code
mov dword [ecx], 0x1b
mov edi, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
cmp eax, 0x1d
jbe switch.0x004be2a7
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d491ba
mov esp, ebp
pop ebp
ret
movzx eax, al
and eax, 0xf
mov dword [ecx], 0x13
mov dword [ecx + 0x48], eax
mov edi, dword [ecx + 0x48]
test edi, edi
je 0x4bf2f4
cmp esi, edi
jae 0x4bf2d6
nop
test ebx, ebx
je 0x4bf733
mov ecx, dword [ebp - 0x18]
dec ebx
mov dword [ebp - 0x10], ebx
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x18], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov dword [ebp - 0xc], edx
cmp esi, edi
jb 0x4bf2b0
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x14]
dec eax
and eax, edx
add dword [ecx + 0x40], eax
mov ecx, edi
shr edx, cl
sub esi, edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov dword [ecx], 0x14
mov ecx, dword [ecx + 0x58]
mov eax, 1
mov edi, dword [ebp - 0x14]
shl eax, cl
dec eax
mov dword [ebp - 0x1c], eax
and eax, edx
mov ecx, dword [edi + 0x50]
mov dword [ebp - 0x24], ecx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x4bf35b
test ebx, ebx
je 0x4bf733
mov ecx, dword [ebp - 0x18]
dec ebx
mov dword [ebp - 0x10], ebx
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x18], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [edi + 0x50]
add edx, eax
mov eax, dword [ebp - 0x1c]
and eax, edx
mov dword [ebp - 0xc], edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x4bf322
test al, 0xf0
jne 0x4bf401
mov ecx, eax
mov edi, 1
shr ecx, 8
mov edx, eax
movzx ebx, cl
movzx ecx, al
add ecx, ebx
shr eax, 0x10
shl edi, cl
mov ecx, ebx
dec edi
mov dword [ebp - 0x48], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x24]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
jbe 0x4bf3f4
nop dword [eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4bf736
mov ecx, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x10], eax
mov edi, 1
movzx ebx, dh
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x18], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add dword [ebp - 0xc], eax
movzx eax, word [ebp - 0x46]
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [ebp - 0xc]
shr edi, cl
add edi, eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x4bf3a0
mov edi, dword [ebp - 0x14]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub esi, ecx
mov ebx, dword [ebp - 0x10]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub esi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
test al, 0x40
je 0x4bf42c
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x4bf267
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x48], eax
mov dword [ecx], 0x15
mov edi, dword [ecx + 0x48]
test edi, edi
je 0x4bf498
cmp esi, edi
jae 0x4bf477
test ebx, ebx
je 0x4bf733
mov ecx, dword [ebp - 0x18]
dec ebx
mov dword [ebp - 0x10], ebx
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x18], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov dword [ebp - 0xc], edx
cmp esi, edi
jb 0x4bf451
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x14]
dec eax
and eax, edx
add dword [ecx + 0x44], eax
mov ecx, edi
shr edx, cl
sub esi, edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
mov eax, dword [ecx + 0x2c]
sub eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
add eax, edi
cmp dword [ecx + 0x44], eax
jbe 0x4bf4b7
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x4bf267
mov dword [ecx], 0x16
jmp 0x4bf4c2
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4bf733
sub edi, eax
mov eax, dword [ecx + 0x44]
cmp eax, edi
jbe 0x4bf508
sub eax, edi
mov edi, dword [ecx + 0x30]
cmp eax, edi
jbe 0x4bf4eb
mov ebx, dword [ecx + 0x28]
sub eax, edi
sub ebx, eax
add ebx, dword [ecx + 0x34]
jmp 0x4bf4f2
mov ebx, dword [ecx + 0x34]
sub ebx, eax
add ebx, edi
mov edi, dword [ecx + 0x40]
cmp eax, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], edi
cmovbe edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
jmp 0x4bf513
mov ebx, dword [ebp - 0x3c]
sub ebx, eax
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x38]
mov edx, edi
cmp dword [ebp - 0x2c], edx
cmovbe edi, dword [ebp - 0x2c]
sub edx, edi
sub eax, edi
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x3c]
sub ebx, edx
mov dword [ecx + 0x40], eax
nop
mov al, byte [ebx + edx]
mov byte [edx], al
inc edx
sub edi, 1
jne 0x4bf530
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0xc]
cmp dword [ecx + 0x40], edi
jne 0x4bf26d
mov dword [ecx], 0x12
jmp 0x4bf26d
cmp dword [ebp - 0x38], 0
je 0x4bf733
mov edx, dword [ebp - 0x3c]
mov al, byte [ecx + 0x40]
inc dword [ebp - 0x3c]
dec dword [ebp - 0x38]
mov byte [edx], al
mov edx, dword [ebp - 0xc]
mov dword [ecx], 0x12
jmp 0x4bf270
cmp dword [ecx + 8], 0
je 0x4bf67b
cmp esi, 0x20
jae 0x4bf5ba
nop dword [eax]
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
dec ebx
mov dword [ebp - 0x20], esi
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edx
cmp esi, 0x20
jb 0x4bf590
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
add dword [eax + 0x14], edx
mov eax, edx
add dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0xc]
test eax, eax
je 0x4bf61d
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
sub eax, ebx
cmp dword [ecx + 0x10], 0
mov edi, dword [ecx + 0x18]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x18]
je 0x4bf5fd
test eax, eax
je 0x4bf611
mov ecx, dword [ebp - 0x24]
mov edx, eax
push ebx
call fcn.004bbb60
jmp 0x4bf608
mov ecx, dword [ebp - 0x24]
mov edx, eax
push ebx
call fcn.004bb8e0
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x34]
mov dword [ecx + 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, edx
jne 0x4bf657
and eax, 0xff00
mov dword [ebp - 0x2c], eax
mov eax, edx
shl eax, 0x10
add dword [ebp - 0x2c], eax
mov eax, edx
shl dword [ebp - 0x2c], 8
shr eax, 8
and eax, 0xff00
add dword [ebp - 0x2c], eax
mov eax, edx
shr eax, 0x18
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ecx + 0x18]
je 0x4bf671
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.incorrect_data_check
mov dword [ecx], 0x1b
jmp 0x4bf270
xor edx, edx
xor esi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], esi
mov dword [ecx], 0x19
cmp dword [ecx + 8], 0
je 0x4bf71d
cmp dword [ecx + 0x10], 0
je 0x4bf71d
cmp esi, 0x20
jae 0x4bf6ca
nop word [eax + eax]
test ebx, ebx
je 0x4bf733
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
dec ebx
mov dword [ebp - 0x20], esi
inc edi
mov dword [ebp - 0x10], ebx
add edx, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edx
cmp esi, 0x20
jb 0x4bf6a0
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0x1c]
je 0x4bf714
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], str.incorrect_length_check
mov dword [ecx], 0x1b
jmp 0x4bf270
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov eax, 2
pop edi
mov dword [ecx + 0x3c], esi
pop esi
mov dword [ecx + 0x38], edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d491ba
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], 0
xor esi, esi
mov dword [ecx], 0x1a
mov dword [ebp - 0x44], 1
jmp 0x4bf733
mov dword [ebp - 0x44], 0xfffffffd
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [edi], ecx
cmp dword [ebx + 0x28], 0
mov dword [ebx + 0x3c], esi
mov esi, dword [ebp - 0x40]
mov dword [ebx + 0x38], eax
jne 0x4bf76c
cmp dword [ebx], 0x18
jge 0x4bf795
cmp esi, dword [edi + 0x10]
je 0x4bf795
mov edx, esi
mov ecx, edi
call fcn.004be0f0
test eax, eax
je 0x4bf795
mov dword [ebx], 0x1c
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d491ba
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
sub eax, dword [edi + 4]
sub esi, dword [edi + 0x10]
add dword [edi + 8], eax
add dword [edi + 0x14], esi
add dword [ebx + 0x1c], esi
cmp dword [ebx + 8], 0
mov dword [ebp - 0x4c], eax
je 0x4bf7e1
test esi, esi
je 0x4bf7e1
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 0x18]
sub edx, esi
cmp dword [ebx + 0x10], 0
je 0x4bf7d2
test edx, edx
jne 0x4bf7ca
xor eax, eax
jmp 0x4bf7db
push esi
call fcn.004bbb60
jmp 0x4bf7d8
push esi
call fcn.004bb8e0
add esp, 4
mov dword [ebx + 0x18], eax
mov dword [edi + 0x30], eax
mov ecx, dword [ebx + 4]
mov edx, 0x80
neg ecx
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebx], 0xb
cmove eax, edx
add ecx, eax
add ecx, dword [ebx + 0x3c]
cmp dword [ebp - 0x4c], 0
mov dword [edi + 0x2c], ecx
jne 0x4bf80a
test esi, esi
je 0x4bf810
cmp dword [ebp - 0x50], 4
jne 0x4bf82e
mov eax, dword [ebp - 0x44]
mov ecx, 0xfffffffb
pop edi
test eax, eax
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d491ba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00d491ba
mov esp, ebp
pop ebp
ret