Function at 0x540750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x2c], 0x32
test eax, eax
je 0x541b4d
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x541b4d
cmp dword [eax + 0xc], 0
je 0x541b4d
cmp dword [eax], 0
jne 0x54078d
cmp dword [eax + 4], 0
jne 0x541b4d
cmp dword [edi], 0xb
jne 0x540798
mov dword [edi], 0xc
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
add eax, 0xffffffce
push esi
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], 0
cmp eax, 0x32
jbe 0x5407e7
mov ecx, dword [ebp - 0x2c]
nop
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor byte [eax + ecx], 0xba
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
inc ecx
sub eax, 0x32
cmp ecx, eax
jb 0x5407d0
mov eax, dword [edi]
cmp eax, 0x1c
ja case.default.0x5407f2
jmp dword [eax*4 + 0x541b58]
cmp dword [edi + 8], 0
jne 0x54080a
mov dword [edi], 0xc
jmp 0x5419f7
cmp esi, 0x10
jae 0x540832
nop
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x10
jb 0x540810
test byte [edi + 8], 2
je 0x540879
cmp ebx, 0x8b1f
jne 0x540879
push 0
push 0
push 0
call fcn.00542a60
mov dword [edi + 0x18], eax
push 2
lea ecx, [ebp - 0x14]
mov word [ebp - 0x14], bx
mov edx, dword [edi + 0x18]
push ecx
push edx
call fcn.00542a60
mov edx, dword [ebp - 8]
add esp, 0x18
xor ebx, ebx
mov dword [edi + 0x18], eax
xor esi, esi
mov dword [edi], 1
jmp 0x5419f7
mov eax, dword [edi + 0x20]
mov dword [edi + 0x10], 0
test eax, eax
je 0x54088e
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x54092d
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 0x54092d
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x5408ce
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x5419f1
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
add ecx, 8
sub esi, 4
cmp ecx, dword [edi + 0x24]
jbe 0x5408f3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x18], str.invalid_window_size
jmp 0x5419f1
mov edx, 1
shl edx, cl
push 0
push 0
push 0
mov dword [edi + 0x14], edx
call fcn.00542530
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
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
add esp, 0xc
xor ebx, ebx
xor esi, esi
jmp 0x5419f7
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
mov edx, dword [ebp - 8]
jmp 0x5419f1
cmp esi, 0x10
jae 0x540966
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x10
jb 0x540944
mov dword [edi + 0x10], ebx
cmp bl, 8
je 0x54097d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x5419f1
test ebx, 0xe000
je 0x540994
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x5419f1
mov eax, dword [edi + 0x20]
test eax, eax
je 0x5409a5
mov ecx, ebx
shr ecx, 8
and ecx, 1
mov dword [eax], ecx
test dword [edi + 0x10], 0x200
je 0x5409cf
mov byte [ebp - 0x14], bl
shr ebx, 8
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 0x13], bl
mov eax, dword [edi + 0x18]
push edx
push eax
call fcn.00542a60
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x5409e0
cmp esi, 0x20
jae 0x540a02
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x20
jb 0x5409e0
mov eax, dword [edi + 0x20]
test eax, eax
je 0x540a0c
mov dword [eax + 4], ebx
test dword [edi + 0x10], 0x200
je 0x540a46
mov byte [ebp - 0x14], bl
mov ecx, ebx
mov edx, ebx
shr ecx, 8
shr edx, 0x10
shr ebx, 0x18
push 4
lea eax, [ebp - 0x14]
mov byte [ebp - 0x13], cl
mov byte [ebp - 0x12], dl
mov byte [ebp - 0x11], bl
mov ecx, dword [edi + 0x18]
push eax
push ecx
call fcn.00542a60
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x540a60
cmp esi, 0x10
jae 0x540a82
jmp 0x540a60
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x10
jb 0x540a60
mov eax, dword [edi + 0x20]
test eax, eax
je 0x540a9f
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 0x540ac9
mov byte [ebp - 0x14], bl
shr ebx, 8
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 0x13], bl
mov eax, dword [edi + 0x18]
push edx
push eax
call fcn.00542a60
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x540b40
cmp esi, 0x10
jae 0x540b03
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x10
jb 0x540ae1
mov eax, dword [edi + 0x20]
mov dword [edi + 0x40], ebx
test eax, eax
je 0x540b10
mov dword [eax + 0x14], ebx
test dword [edi + 0x10], 0x200
je 0x540b3a
mov byte [ebp - 0x14], bl
shr ebx, 8
push 2
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x13], bl
mov edx, dword [edi + 0x18]
push ecx
push edx
call fcn.00542a60
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
jmp 0x540b4e
mov eax, dword [edi + 0x20]
test eax, eax
je 0x540b4e
mov dword [eax + 0x10], 0
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x540bfb
mov eax, dword [edi + 0x40]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp eax, ecx
jbe 0x540b73
mov eax, ecx
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x540bf1
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x540bc0
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x540bc0
mov edx, dword [edi + 0x20]
mov ecx, dword [edx + 0x14]
sub ecx, dword [edi + 0x40]
mov edx, dword [edx + 0x18]
mov dword [ebp - 0x1c], ecx
add ecx, eax
cmp ecx, edx
jbe 0x540ba6
sub edx, dword [ebp - 0x1c]
mov eax, edx
mov edx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x1c]
push edx
push eax
call fcn.00545160
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
add esp, 0xc
test dword [edi + 0x10], 0x200
je 0x540be6
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x18]
push edx
push eax
push ecx
call fcn.00542a60
mov edx, dword [ebp - 8]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], eax
add edx, eax
sub dword [edi + 0x40], eax
mov dword [ebp - 8], edx
cmp dword [edi + 0x40], 0
jne 0x541a51
mov dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x540c9c
cmp dword [ebp - 4], 0
je 0x541a51
xor eax, eax
movzx ecx, byte [eax + edx]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x540c54
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x540c54
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x540c54
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp - 0x1c]
mov byte [edx + ecx], al
inc dword [edi + 0x40]
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x1c], 0
je 0x540c62
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jb 0x540c21
test dword [edi + 0x10], 0x200
je 0x540c85
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.00542a60
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
add edx, eax
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 8], edx
jne 0x541a51
jmp 0x540caa
mov eax, dword [edi + 0x20]
test eax, eax
je 0x540caa
mov dword [eax + 0x1c], 0
mov dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x540d4b
cmp dword [ebp - 4], 0
je 0x541a51
xor eax, eax
movzx ecx, byte [eax + edx]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x540d03
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x540d03
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x540d03
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp - 0x1c]
mov byte [edx + ecx], al
inc dword [edi + 0x40]
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x1c], 0
je 0x540d11
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jb 0x540cd0
test dword [edi + 0x10], 0x200
je 0x540d34
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.00542a60
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
add edx, eax
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 8], edx
jne 0x541a51
jmp 0x540d59
mov eax, dword [edi + 0x20]
test eax, eax
je 0x540d59
mov dword [eax + 0x24], 0
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x540dad
cmp esi, 0x10
jae 0x540d92
lea ecx, [ecx]
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x10
jb 0x540d70
movzx ecx, word [edi + 0x18]
cmp ebx, ecx
je 0x540da9
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x5419f1
xor ebx, ebx
xor esi, esi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x540dca
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
push 0
push 0
call fcn.00542a60
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [edi], 0xb
jmp 0x5419f7
cmp esi, 0x20
jae 0x540e16
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x20
jb 0x540df4
mov ecx, ebx
mov eax, ebx
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, ebx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add eax, ecx
mov ecx, dword [ebp + 8]
shr ebx, 0x18
add eax, ebx
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 0xa
cmp dword [edi + 0xc], 0
je 0x541a0e
push 0
push 0
push 0
call fcn.00542530
mov edx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [edx + 0x30], eax
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [edi], 0xb
cmp dword [ebp + 0xc], 5
je 0x541a51
cmp dword [edi + 4], 0
je 0x540e9a
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
jmp 0x5419f7
cmp esi, 3
jae 0x540ec2
nop
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 3
jb 0x540ea0
mov ecx, ebx
shr ebx, 1
mov eax, ebx
and ecx, 1
and eax, 3
mov dword [edi + 4], ecx
cmp eax, 3
ja case.default.0x540ed6
jmp dword [eax*4 + 0x541bcc]
shr ebx, 2
mov dword [edi], 0xd
sub esi, 3
jmp 0x5419f7
mov eax, edi
call fcn.00540630
shr ebx, 2
mov dword [edi], 0x12
sub esi, 3
jmp 0x5419f7
shr ebx, 2
mov dword [edi], 0xf
sub esi, 3
jmp 0x5419f7
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [edi], 0x1b
shr ebx, 2
sub esi, 3
jmp 0x5419f7
mov ecx, esi
and ecx, 7
sub esi, ecx
shr ebx, cl
cmp esi, 0x20
jae 0x540f62
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x20
jb 0x540f40
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x540f83
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x5419f1
xor ebx, ebx
mov dword [edi + 0x40], eax
xor esi, esi
mov dword [edi], 0xe
mov eax, dword [edi + 0x40]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5415db
mov ecx, dword [ebp - 4]
cmp eax, ecx
jbe 0x540faa
mov eax, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jbe 0x540fb6
mov eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x541a51
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
push ecx
push edx
push eax
call fcn.00545160
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
sub dword [ebp - 4], eax
sub dword [ebp - 0x10], eax
add dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
add esp, 0xc
sub dword [edi + 0x40], eax
jmp 0x5419f7
cmp esi, 0xe
jae 0x541013
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0xe
jb 0x540ff1
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 0x541133
cmp eax, 0x1e
ja 0x541133
mov dword [edi + 0x68], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x68]
cmp ecx, dword [edi + 0x5c]
jae 0x5410bd
lea esp, [esp]
cmp esi, 3
jae 0x541097
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 3
jb 0x541075
mov eax, dword [edi + 0x68]
movzx eax, word [eax*2 + 0x589de8]
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 0x541070
mov eax, 0x13
cmp dword [edi + 0x68], eax
jae 0x5410ea
jmp 0x5410d0
mov edx, dword [edi + 0x68]
movzx ecx, word [edx*2 + 0x589de8]
xor edx, edx
mov word [edi + ecx*2 + 0x70], dx
inc dword [edi + 0x68]
cmp dword [edi + 0x68], eax
jb 0x5410d0
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
push ecx
mov dword [eax], 7
push 0x13
lea eax, [edi + 0x70]
push eax
push 0
call fcn.00542080
mov edx, dword [ebp - 8]
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x541142
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_code_lengths_set
jmp 0x5419f1
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x5419f1
mov dword [edi + 0x68], 0
mov dword [edi], 0x11
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jae 0x541364
mov edi, edi
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 [ebp - 0xc], eax
cmp ecx, esi
jbe 0x5411c1
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
inc edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 8], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, esi
ja 0x541182
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x541222
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp esi, ecx
jae 0x541207
jmp 0x5411e0
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
mov eax, dword [ebp - 0xc]
movzx ecx, ah
cmp esi, ecx
jb 0x5411e0
movzx ecx, ah
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
mov cx, word [ebp - 0xa]
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
jmp 0x541355
mov cx, word [ebp - 0xa]
cmp cx, 0x10
jne 0x541291
movzx ecx, ah
lea eax, [ecx + 2]
mov dword [ebp - 0x24], ecx
cmp esi, eax
jae 0x541267
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x24]
inc edx
add esi, 8
add ebx, eax
lea eax, [ecx + 2]
mov dword [ebp - 8], edx
cmp esi, eax
jb 0x541240
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
test eax, eax
je 0x5413b8
movzx ecx, word [edi + eax*2 + 0x6e]
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
mov dword [ebp - 0x1c], ecx
sub esi, 2
jmp 0x54132a
cmp cx, 0x11
movzx ecx, ah
mov dword [ebp - 0x24], ecx
jne 0x5412df
lea eax, [ecx + 3]
cmp esi, eax
jae 0x5412cb
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x24]
inc edx
add esi, 8
add ebx, eax
lea eax, [ecx + 3]
mov dword [ebp - 8], edx
cmp esi, eax
jb 0x5412a4
shr ebx, cl
mov edx, 0xfffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x54131f
lea eax, [ecx + 7]
cmp esi, eax
jae 0x54130d
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x24]
inc edx
add esi, 8
add ebx, eax
lea eax, [ecx + 7]
mov dword [ebp - 8], edx
cmp esi, eax
jb 0x5412e6
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 [ebp - 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [edi + 0x68]
add ecx, dword [edi + 0x60]
add edx, eax
cmp edx, ecx
ja 0x5413c7
test eax, eax
je 0x541352
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edi + 0x68]
mov word [edi + edx*2 + 0x70], cx
inc dword [edi + 0x68]
dec eax
jne 0x541344
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jb 0x541160
cmp dword [edi], 0x1b
je 0x5419f7
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
push ecx
mov dword [eax], 9
mov eax, dword [edi + 0x60]
push eax
lea ecx, [edi + 0x70]
push ecx
push 1
call fcn.00542080
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5413d9
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
mov edx, dword [ebp - 8]
jmp 0x5419f1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x5419f1
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_bit_length_repeat
mov edx, dword [ebp - 8]
jmp 0x5419f1
mov eax, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
mov dword [edi + 0x50], eax
lea edx, [edi + 0x2f0]
push edx
mov edx, dword [edi + 0x60]
lea eax, [edi + 0x58]
push eax
push ecx
mov ecx, dword [edi + 0x64]
mov dword [eax], 6
push ecx
lea eax, [edi + edx*2 + 0x70]
push eax
push 2
call fcn.00542080
mov edx, dword [ebp - 8]
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x541423
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_distances_set
jmp 0x5419f1
mov dword [edi], 0x12
cmp dword [ebp - 4], 6
jb 0x541490
cmp dword [ebp - 0x10], 0x102
jb 0x541490
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 4]
push edx
mov dword [eax + 4], ecx
push eax
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
call fcn.00541c70
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov ebx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax]
mov dword [ebp - 4], edx
add esp, 8
mov dword [ebp - 8], ecx
mov edx, ecx
jmp 0x5419f7
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
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 [ebp - 0xc], eax
cmp ecx, esi
jbe 0x5414f3
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
inc edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 8], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, esi
ja 0x5414b4
test al, al
je 0x5415b1
test al, 0xf0
jne 0x5415b1
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, cl
mov dword [ebp - 0x1c], ecx
movzx ecx, al
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x1c]
dec eax
and eax, ebx
shr eax, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [ebp - 0x2c]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x5415a6
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x24]
dec dword [ebp - 4]
inc edx
add ebx, eax
movzx eax, ch
mov dword [ebp - 0x1c], eax
movzx ecx, cl
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x1c]
add esi, 8
mov dword [ebp - 8], edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x22]
add eax, ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x541550
movzx ecx, byte [ebp - 0x23]
mov eax, dword [ebp - 0xc]
shr ebx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [edi + 0x40], ecx
test al, al
jne 0x5415d7
mov dword [edi], 0x17
jmp 0x5419f7
test al, 0x20
je 0x5415e6
mov dword [edi], 0xb
jmp 0x5419f7
test al, 0x40
je 0x5415f9
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x5419f1
movzx ecx, al
and ecx, 0xf
mov dword [edi + 0x48], ecx
mov dword [edi], 0x13
mov eax, dword [edi + 0x48]
test eax, eax
je 0x541649
cmp esi, eax
jae 0x541635
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, dword [edi + 0x48]
jb 0x541613
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
add dword [edi + 0x40], eax
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x14
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 [ebp - 0xc], eax
cmp ecx, esi
jbe 0x5416b2
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x58]
inc edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x50]
mov dword [ebp - 8], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, esi
ja 0x541673
test al, 0xf0
jne 0x541764
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, cl
mov dword [ebp - 0x1c], ecx
movzx ecx, al
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x1c]
dec eax
and eax, ebx
shr eax, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [ebp - 0x2c]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x541759
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x24]
dec dword [ebp - 4]
inc edx
add ebx, eax
movzx eax, ch
mov dword [ebp - 0x1c], eax
movzx ecx, cl
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x1c]
add esi, 8
mov dword [ebp - 8], edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x22]
add eax, ecx
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x541703
movzx ecx, byte [ebp - 0x23]
mov eax, dword [ebp - 0xc]
shr ebx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [ebp - 0x1c], ecx
test al, 0x40
je 0x541786
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x5419f1
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], 0x15
mov eax, dword [edi + 0x48]
test eax, eax
je 0x5417e6
cmp esi, eax
jae 0x5417d2
jmp 0x5417b0
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, dword [edi + 0x48]
jb 0x5417b0
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
add dword [edi + 0x44], eax
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x2c]
sub ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x20]
cmp dword [edi + 0x44], ecx
jbe 0x541803
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x5419f1
mov dword [edi], 0x16
cmp dword [ebp - 0x10], 0
je 0x541a51
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x10]
mov eax, dword [edi + 0x44]
cmp eax, ecx
jbe 0x541857
sub eax, ecx
mov ecx, dword [edi + 0x30]
mov dword [ebp - 0xc], eax
cmp eax, ecx
jbe 0x54183b
sub eax, ecx
mov ecx, dword [edi + 0x34]
add ecx, dword [edi + 0x28]
mov dword [ebp - 0xc], eax
sub ecx, eax
jmp 0x541846
mov ecx, dword [edi + 0x34]
sub ecx, eax
add ecx, dword [edi + 0x30]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0x40]
mov dword [ebp - 0x24], ecx
cmp eax, ecx
jbe 0x541868
mov eax, ecx
jmp 0x541865
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jbe 0x541874
mov eax, ecx
mov dword [ebp - 0xc], eax
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x40], ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
jmp 0x541893
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ecx + eax]
mov eax, dword [ebp - 0x18]
mov byte [eax], cl
inc eax
dec dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
jne 0x541890
cmp dword [edi + 0x40], 0
jne 0x5419f7
mov dword [edi], 0x12
jmp 0x5419f7
cmp dword [ebp - 0x10], 0
je 0x541a51
mov eax, dword [ebp - 0x18]
mov cl, byte [edi + 0x40]
mov byte [eax], cl
inc eax
dec dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [edi], 0x12
jmp 0x5419f7
cmp dword [edi + 8], 0
je 0x54199a
cmp esi, 0x20
jae 0x541912
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x20
jb 0x5418f0
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add dword [ecx + 0x14], eax
add dword [edi + 0x1c], eax
mov dword [ebp - 0x20], eax
test eax, eax
je 0x541954
mov ecx, dword [ebp - 0x18]
mov edx, dword [edi + 0x18]
push eax
sub ecx, eax
cmp dword [edi + 0x10], 0
push ecx
push edx
je 0x541940
call fcn.00542a60
jmp 0x541945
call fcn.00542530
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [edi + 0x18], eax
add esp, 0xc
mov dword [ecx + 0x30], eax
cmp dword [edi + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, ebx
jne 0x541985
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 0x541996
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x5419f1
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x541a3b
cmp dword [edi + 0x10], 0
je 0x541a3b
cmp esi, 0x20
jae 0x5419e2
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x541a51
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x20
jb 0x5419c0
cmp ebx, dword [edi + 0x1c]
je 0x541a37
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [edi], 0x1b
mov eax, dword [edi]
cmp eax, 0x1c
jbe switch.0x005407f2
mov eax, 0xfffffffe
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
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], 0x1a
mov dword [ebp - 0x28], 1
jmp 0x541a51
mov dword [ebp - 0x28], 0xfffffffd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
cmp dword [edi + 0x28], 0
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
jne 0x541a84
cmp dword [edi], 0x18
jge 0x541aa5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
je 0x541aa5
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
call fcn.00540650
test eax, eax
je 0x541aa5
mov dword [edi], 0x1c
pop esi
pop ebx
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
sub eax, dword [esi + 4]
mov ebx, dword [ebp - 0x20]
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 [ebp - 0x30], eax
je 0x541afd
test ebx, ebx
je 0x541afd
cmp dword [edi + 0x10], 0
push ebx
je 0x541ae2
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0x18]
sub edx, ebx
push edx
push eax
call fcn.00542a60
jmp 0x541af1
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 0x18]
sub ecx, ebx
push ecx
push edx
call fcn.00542530
mov dword [edi + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov ecx, dword [edi + 4]
neg ecx
sbb ecx, ecx
and ecx, 0x40
xor edx, edx
cmp dword [edi], 0xb
setne dl
dec edx
and edx, 0x80
add ecx, edx
add ecx, dword [edi + 0x3c]
mov dword [esi + 0x2c], ecx
test eax, eax
jne 0x541b26
test ebx, ebx
je 0x541b2c
cmp dword [ebp + 0xc], 4
jne 0x541b43
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x541a07
pop esi
pop ebx
mov eax, 0xfffffffb
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret