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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0058864e
pop ecx
test eax, eax
jne case.default.0x586e95
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x20], eax
test eax, eax
je case.default.0x586e95
mov eax, dword [esi]
mov dword [ebp - 8], eax
test eax, eax
jne 0x586e33
cmp dword [esi + 4], eax
jne case.default.0x586e95
mov ebx, dword [esi + 0x1c]
mov edx, 0x3f40
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ebx + 4]
cmp ecx, 0x3f3f
jne 0x586e59
mov dword [ebx + 4], edx
mov ecx, edx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov edx, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ecx - 0x3f34]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
cmp eax, 0x1e
ja case.default.0x586e95
mov dword [ebp - 0x3c], 0x10
jmp dword [eax*4 + 0x5883ac]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x586eaf
mov dword [ebx + 4], 0x3f40
jmp 0x588292
push 0x10
pop eax
cmp edi, eax
jae 0x586eeb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
push 0x10
inc eax
mov dword [ebp - 0xc], edx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x586eb9
mov ecx, dword [ebx + 0xc]
test cl, 2
je 0x586f49
cmp edx, 0x8b1f
jne 0x586f49
xor edi, edi
cmp dword [ebx + 0x28], edi
jne 0x586f06
mov dword [ebx + 0x28], 0xf
test byte [esi + 0x34], 1
jne 0x586f35
push edi
push edi
push edi
call fcn.00588997
mov dword [ebx + 0x1c], eax
push 0x1f
pop eax
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x1c]
push 2
push eax
mov byte [ebp - 0x1b], 0x8b
push dword [ebx + 0x1c]
call fcn.00588997
add esp, 0x18
mov dword [ebx + 0x1c], eax
mov edx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edx
mov dword [ebx + 4], 0x3f35
jmp 0x588292
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x586f57
or dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebx + 0xc]
test cl, 1
je 0x58700d
movzx ecx, dl
mov eax, edx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
push 0x1f
pop ecx
div ecx
test edx, edx
mov edx, dword [ebp - 0xc]
jne 0x58700d
mov eax, edx
and al, 0xf
cmp al, 8
je 0x586f93
mov dword [esi + 0x18], str.unknown_compression_method
jmp 0x58828b
mov eax, dword [ebx + 0x28]
sub edi, 4
shr edx, 4
mov ecx, edx
mov dword [ebp - 0xc], edx
and ecx, 0xf
mov dword [ebp - 0x14], edi
add ecx, 8
test eax, eax
jne 0x586fb3
mov dword [ebx + 0x28], ecx
mov eax, ecx
cmp ecx, 0xf
ja 0x587001
cmp ecx, eax
ja 0x587001
xor eax, eax
xor edi, edi
inc eax
mov dword [ebx + 0x14], edi
shl eax, cl
mov dword [ebx + 0x18], eax
test byte [esi + 0x34], 1
jne 0x586fe3
push edi
push edi
push edi
call fcn.0058874d
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
shr edx, 8
not edx
and edx, 2
or edx, 0x3f3d
mov dword [ebx + 4], edx
mov edx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jmp 0x588292
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x58828b
mov dword [esi + 0x18], str.incorrect_header_check
jmp 0x58828b
push 0x10
pop eax
cmp edi, eax
jae 0x587052
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
push 0x10
inc eax
mov dword [ebp - 0xc], edx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x587023
mov dword [ebx + 0x14], edx
cmp dl, 8
jne 0x586f87
test edx, 0xe000
je 0x587072
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x58828b
mov edi, dword [ebx + 0x24]
mov ecx, edx
shr ecx, 8
test edi, edi
je 0x587085
mov eax, ecx
and eax, 1
mov dword [edi], eax
test byte [esi + 0x34], 1
jne 0x5870b4
test dword [ebx + 0x14], 0x200
je 0x5870b4
test byte [ebx + 0xc], 4
je 0x5870b4
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
push eax
mov byte [ebp - 0x1b], cl
push dword [ebx + 0x1c]
call fcn.00588997
add esp, 0xc
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 4], 0x3f36
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
cmp edi, 0x20
jae 0x5870f6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x5870cc
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x587100
mov dword [eax + 4], edx
test byte [esi + 0x34], 1
jne 0x587142
test dword [ebx + 0x14], 0x200
je 0x587142
test byte [ebx + 0xc], 4
je 0x587142
mov eax, edx
mov byte [ebp - 0x1c], dl
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0x1c]
push 4
shr edx, 0x18
push eax
mov byte [ebp - 0x19], dl
push dword [ebx + 0x1c]
call fcn.00588997
add esp, 0xc
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 4], 0x3f37
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
push 0x10
pop eax
cmp edi, eax
jae 0x587188
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
push 0x10
inc eax
mov dword [ebp - 0xc], edx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x58715c
mov edi, dword [ebx + 0x24]
mov ecx, edx
shr ecx, 8
test edi, edi
je 0x5871a0
movzx eax, dl
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [eax + 0xc], ecx
test byte [esi + 0x34], 1
jne 0x5871cf
test dword [ebx + 0x14], 0x200
je 0x5871cf
test byte [ebx + 0xc], 4
je 0x5871cf
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
push eax
mov byte [ebp - 0x1b], cl
push dword [ebx + 0x1c]
call fcn.00588997
add esp, 0xc
mov dword [ebx + 0x1c], eax
xor ecx, ecx
mov dword [ebx + 4], 0x3f38
mov edx, ecx
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jmp 0x5871e6
xor ecx, ecx
test dword [ebx + 0x14], 0x400
je 0x587274
push 0x10
pop eax
cmp edi, eax
jae 0x587229
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
push 0x10
inc eax
mov dword [ebp - 0xc], edx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x5871fd
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x44], edx
test eax, eax
je 0x587236
mov dword [eax + 0x14], edx
test byte [esi + 0x34], 1
jne 0x587268
test dword [ebx + 0x14], 0x200
je 0x587268
test byte [ebx + 0xc], 4
je 0x587268
mov byte [ebp - 0x1c], dl
lea eax, [ebp - 0x1c]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x1b], dl
push dword [ebx + 0x1c]
call fcn.00588997
add esp, 0xc
mov dword [ebx + 0x1c], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edi
jmp 0x58727e
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58727e
mov dword [eax + 0x10], ecx
mov dword [ebx + 4], 0x3f39
test dword [ebx + 0x14], 0x400
je 0x587339
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
mov edx, ecx
cmovbe edx, eax
mov dword [ebp - 0x34], edx
test edx, edx
je 0x587331
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x5872f6
mov esi, dword [ecx + 0x10]
test esi, esi
mov dword [ebp - 0x40], esi
mov esi, dword [ebp + 8]
je 0x5872f6
mov ecx, dword [ecx + 0x14]
sub ecx, eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x18]
cmp eax, ecx
jae 0x5872f6
add eax, edx
cmp eax, ecx
mov eax, dword [ebp - 0x30]
jbe 0x5872e0
sub ecx, eax
jmp 0x5872e2
mov ecx, edx
add eax, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 8]
push ecx
push eax
call fcn.005594a0
mov edx, dword [ebp - 0x34]
add esp, 0xc
test byte [esi + 0x34], 1
jne 0x58731d
test dword [ebx + 0x14], 0x200
je 0x58731d
test byte [ebx + 0xc], 4
je 0x58731d
push edx
push dword [ebp - 8]
push dword [ebx + 0x1c]
call fcn.00588997
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], eax
sub ecx, eax
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x5876eb
xor edx, edx
mov dword [ebx + 4], 0x3f3a
mov dword [ebx + 0x44], edx
jmp 0x587349
xor edx, edx
test dword [ebx + 0x14], 0x800
je 0x5873e5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
mov eax, edx
mov esi, ecx
mov edx, dword [ebp - 8]
mov cl, byte [eax + edx]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x587399
cmp dword [ecx + 0x1c], 0
je 0x587396
mov edx, dword [ebx + 0x44]
cmp edx, dword [ecx + 0x20]
jae 0x587396
mov ecx, dword [ecx + 0x1c]
mov al, byte [ebp - 1]
mov byte [edx + ecx], al
inc dword [ebx + 0x44]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
cmp byte [ebp - 1], 0
je 0x5873a3
cmp eax, esi
jb 0x587368
mov esi, dword [ebp + 8]
test byte [esi + 0x34], 1
jne 0x5873ce
test dword [ebx + 0x14], 0x200
je 0x5873ce
test byte [ebx + 0xc], 4
je 0x5873ce
push eax
push edx
push dword [ebx + 0x1c]
call fcn.00588997
mov dword [ebx + 0x1c], eax
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], eax
sub ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x10], ecx
jne 0x5876eb
jmp 0x5873ef
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x5873ef
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [ebx + 4], 0x3f3b
mov dword [ebx + 0x44], edx
jmp 0x5873ff
xor edx, edx
test dword [ebx + 0x14], 0x1000
je 0x58749b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
mov eax, edx
mov esi, ecx
mov edx, dword [ebp - 8]
mov cl, byte [eax + edx]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x58744f
cmp dword [ecx + 0x24], 0
je 0x58744c
mov edx, dword [ebx + 0x44]
cmp edx, dword [ecx + 0x28]
jae 0x58744c
mov ecx, dword [ecx + 0x24]
mov al, byte [ebp - 1]
mov byte [edx + ecx], al
inc dword [ebx + 0x44]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
cmp byte [ebp - 1], 0
je 0x587459
cmp eax, esi
jb 0x58741e
mov esi, dword [ebp + 8]
test byte [esi + 0x34], 1
jne 0x587484
test dword [ebx + 0x14], 0x200
je 0x587484
test byte [ebx + 0xc], 4
je 0x587484
push eax
push edx
push dword [ebx + 0x1c]
call fcn.00588997
mov dword [ebx + 0x1c], eax
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], eax
sub ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x10], ecx
jne 0x5876eb
jmp 0x5874a5
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x5874a5
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f3c
mov ecx, dword [ebx + 0x14]
test ecx, 0x200
je 0x587522
push 0x10
pop eax
cmp edi, eax
jae 0x5874f6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
push 0x10
inc eax
mov dword [ebp - 0xc], edx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x5874c4
mov ecx, dword [ebx + 0x14]
test byte [esi + 0x34], 1
jne 0x587516
test byte [ebx + 0xc], 4
je 0x587516
movzx eax, word [ebx + 0x1c]
cmp edx, eax
je 0x587516
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x58828b
xor eax, eax
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58753c
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov eax, dword [ebx + 0x24]
mov dword [eax + 0x30], 1
test byte [esi + 0x34], 1
jne 0x587558
xor eax, eax
push eax
push eax
push eax
call fcn.00588997
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [ebx + 4], 0x3f3f
jmp 0x588292
cmp edi, 0x20
jae 0x587596
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x58756c
test byte [esi + 0x34], 1
jne 0x5875c3
mov ecx, edx
mov edi, 0xff00
mov eax, edx
and ecx, edi
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, edi
add eax, ecx
shr edx, 0x18
add eax, edx
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [ebx + 4], 0x3f3e
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
jmp 0x5875d7
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x5882ac
test byte [esi + 0x34], 1
jne 0x5875f7
push eax
push eax
push eax
call fcn.0058874d
mov dword [ebx + 0x1c], eax
add esp, 0xc
mov dword [esi + 0x30], eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f3f
cmp dword [ebp + 0xc], 5
je 0x5876e8
cmp dword [ebp + 0xc], 6
je 0x5876e8
cmp dword [ebx + 8], 0
je 0x587636
mov ecx, edi
mov dword [ebx + 4], 0x3f4e
and ecx, 7
shr edx, cl
sub edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jmp 0x588292
cmp edi, 3
jae 0x587668
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 3
jb 0x58763e
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 8], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x587764
sub eax, 1
je 0x5876b2
sub eax, 1
je 0x5876a6
sub eax, 1
jne 0x58776b
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx + 4], 0x3f51
jmp 0x58776b
mov dword [ebx + 4], 0x3f44
jmp 0x58776b
cmp dword [ebp + 0xc], 6
mov dword [ebx + 0x50], 0x614010
mov dword [ebx + 0x58], 9
mov dword [ebx + 0x54], 0x614810
mov dword [ebx + 0x5c], 5
mov dword [ebx + 4], 0x3f47
jne 0x58776b
shr edx, 2
sub edi, 3
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov dword [ebx + 0x40], edi
xor edi, edi
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x2c], edi
jne 0x58773e
cmp edx, dword [esi + 0x10]
je 0x5882f4
cmp dword [ebx + 4], 0x3f51
jge 0x5882f4
cmp dword [ebx + 4], 0x3f4e
jl 0x58773e
cmp dword [ebp + 0xc], 4
je 0x5882f4
sub edx, dword [esi + 0x10]
push edx
push dword [esi + 0xc]
push esi
call fcn.00588685
add esp, 0xc
test eax, eax
je 0x5882f1
mov dword [ebx + 4], 0x3f52
push 0xfffffffffffffffc
jmp 0x5882a6
mov dword [ebx + 4], 0x3f41
shr edx, 2
sub edi, 3
jmp 0x586ff6
mov ecx, edi
and ecx, 7
sub edi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
cmp edi, 0x20
jae 0x5877ba
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x58778d
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x5877d4
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x58828b
xor eax, eax
mov dword [ebx + 0x44], ecx
cmp dword [ebp + 0xc], 6
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov dword [ebx + 4], 0x3f42
je 0x5876e8
mov dword [ebx + 4], 0x3f43
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x587558
mov eax, dword [ebp - 0x10]
cmp ecx, eax
cmovbe eax, ecx
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
cmovbe ecx, eax
mov dword [ebp - 0x40], ecx
test ecx, ecx
je 0x5876e8
push ecx
push dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005594a0
mov eax, dword [ebp - 0x40]
add esp, 0xc
sub dword [ebp - 0x10], eax
add dword [ebp - 8], eax
sub dword [ebp - 0x18], eax
add dword [ebp - 0x20], eax
sub dword [ebx + 0x44], eax
mov edx, dword [ebp - 0xc]
jmp 0x588292
cmp edi, 0xe
jae 0x58787d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0xe
jb 0x587853
mov eax, edx
sub edi, 0xe
shr edx, 5
push 0x1f
pop ecx
and ecx, eax
mov dword [ebp - 0x14], edi
mov eax, edx
add ecx, 0x101
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ebx + 0x64], ecx
mov dword [ebp - 0x40], eax
mov dword [ebx + 0x68], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebp - 0xc], edx
mov dword [ebx + 0x60], eax
cmp ecx, 0x11e
ja 0x5878d1
cmp dword [ebp - 0x40], 0x1e
ja 0x5878d1
and dword [ebx + 0x6c], 0
mov dword [ebx + 4], 0x3f45
jmp case.0x586e95.16197
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x58828b
cmp edi, 3
jae 0x58790f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 3
jb 0x5878e5
mov eax, dword [ebx + 0x6c]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 0xc], edx
movzx eax, word [eax*2 + 0x614890]
mov word [ebx + eax*2 + 0x74], cx
inc dword [ebx + 0x6c]
sub edi, 3
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x6c]
cmp eax, dword [ebx + 0x60]
jb 0x5878dd
cmp eax, 0x13
jae 0x58795b
mov eax, dword [ebx + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x614890]
mov word [ebx + eax*2 + 0x74], cx
inc dword [ebx + 0x6c]
cmp dword [ebx + 0x6c], 0x13
jb 0x587940
lea eax, [ebx + 0x534]
lea edx, [ebx + 0x70]
mov dword [ebx + 0x50], eax
mov dword [edx], eax
lea ecx, [ebx + 0x58]
lea eax, [ebx + 0x2f4]
mov dword [ecx], 7
push eax
push ecx
push edx
push 0x13
lea eax, [ebx + 0x74]
push eax
push 0
call fcn.00588c6e
mov edx, dword [ebp - 0xc]
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5879a1
mov dword [esi + 0x18], str.invalid_code_lengths_set
jmp 0x58828b
and dword [ebx + 0x6c], 0
mov eax, 0x3f46
mov dword [ebx + 4], eax
mov ecx, eax
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x64]
cmp dword [ebx + 0x6c], eax
jae 0x587bb4
mov ecx, dword [ebx + 0x58]
xor eax, eax
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x40], eax
jmp 0x5879f3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x40]
add edi, 8
mov dword [ebp - 0xc], edx
mov ecx, dword [ebx + 0x50]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x34], eax
cmp ecx, edi
ja 0x5879cc
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x40], ecx
cmp cx, word [ebp - 0x3c]
jae 0x587a3e
shr eax, 8
movzx ecx, al
mov eax, dword [ebx + 0x6c]
sub edi, ecx
shr edx, cl
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xc], edx
mov word [ebx + eax*2 + 0x74], cx
inc dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x14], edi
jmp 0x587b86
jne 0x587ab2
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, 2
mov dword [ebp - 0x40], ecx
cmp edi, ecx
jae 0x587a7c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov ecx, edi
shl edx, cl
add edi, 8
add dword [ebp - 0xc], edx
inc dword [ebp - 8]
cmp edi, dword [ebp - 0x40]
jb 0x587a52
mov edx, dword [ebp - 0xc]
movzx ecx, ah
mov eax, dword [ebx + 0x6c]
sub edi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
test eax, eax
je 0x587b99
movzx eax, word [ebx + eax*2 + 0x72]
mov ecx, edx
and ecx, 3
shr edx, 2
add ecx, 3
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
sub edi, 2
jmp 0x587b4e
cmp word [ebp - 0x32], 0x11
movzx ecx, ah
jne 0x587b00
mov dword [ebp - 0x40], ecx
jmp 0x587ae8
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebp - 0x40]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
lea eax, [ecx + 3]
cmp edi, eax
jb 0x587ac1
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x587b42
mov dword [ebp - 0x40], ecx
jmp 0x587b2c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebp - 0x40]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
lea eax, [ecx + 7]
cmp edi, eax
jb 0x587b05
shr edx, cl
mov eax, edx
and eax, 0x7f
add eax, 0xb
shr edx, 7
push 0xfffffffffffffff9
mov dword [ebp - 0x30], eax
pop eax
sub eax, ecx
add edi, eax
and dword [ebp - 0x34], 0
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x68]
add ecx, dword [ebp - 0x30]
add eax, dword [ebx + 0x64]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
cmp ecx, eax
ja 0x587ba5
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x6c]
mov word [ebx + eax*2 + 0x74], dx
mov ecx, dword [ebx + 0x6c]
lea ecx, [ecx + 1]
mov dword [ebx + 0x6c], ecx
sub esi, 1
jne 0x587b6a
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x64]
cmp ecx, eax
jb 0x5879be
mov ecx, dword [ebx + 4]
jmp 0x587bb4
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x58828b
mov ecx, 0x3f51
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx + 4], ecx
cmp ecx, 0x3f51
je 0x588292
xor eax, eax
cmp word [ebx + 0x274], ax
jne 0x587bd7
mov dword [esi + 0x18], str.invalid_code____missing_end_of_block
jmp 0x58828b
lea eax, [ebx + 0x534]
lea ecx, [ebx + 0x70]
mov dword [ebx + 0x50], eax
mov dword [ecx], eax
lea edx, [ebx + 0x2f4]
push edx
lea eax, [ebx + 0x58]
push eax
push ecx
push dword [ebx + 0x64]
mov dword [eax], 9
lea eax, [ebx + 0x74]
push eax
push 1
call fcn.00588c6e
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x587c1e
mov dword [esi + 0x18], str.invalid_literal_lengths_set
mov edx, dword [ebp - 0xc]
jmp 0x58828b
lea ecx, [ebx + 0x70]
mov eax, dword [ecx]
lea edx, [ebx + 0x2f4]
mov dword [ebx + 0x54], eax
lea eax, [ebx + 0x5c]
push edx
push eax
mov dword [eax], 6
mov eax, dword [ebx + 0x64]
push ecx
push dword [ebx + 0x68]
add eax, 0x3a
lea eax, [ebx + eax*2]
push eax
push 2
call fcn.00588c6e
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x587c5f
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x587c16
cmp dword [ebp + 0xc], 6
mov dword [ebx + 4], 0x3f47
je 0x5876e8
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f48
mov eax, dword [ebp - 0x10]
cmp eax, 6
jb 0x587cec
cmp dword [ebp - 0x18], 0x102
jb 0x587cec
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x24]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov dword [esi + 4], eax
push esi
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edi
call fcn.00589048
cmp dword [ebx + 4], 0x3f3f
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jne 0x588292
or dword [ebx + 0x1bc8], 0xffffffff
jmp 0x588292
mov ecx, dword [ebx + 0x58]
xor eax, eax
and dword [ebx + 0x1bc8], 0
inc eax
shl eax, cl
mov ecx, dword [ebx + 0x50]
dec eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], ecx
jmp 0x587d34
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x50]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x587d07
test al, al
je 0x587e05
test al, 0xf0
jne 0x587e05
xor edi, edi
movzx ecx, al
mov ebx, eax
inc edi
shr ebx, 8
mov edx, eax
movzx esi, bl
add ecx, esi
shr eax, 0x10
shl edi, cl
mov ecx, esi
dec edi
mov dword [ebp - 0x34], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x30]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x14]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
add esi, ecx
cmp esi, edi
jbe 0x587def
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5882e9
mov esi, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
add edi, 8
mov dword [ebp - 0x14], edi
movzx eax, byte [esi]
shl eax, cl
add ebx, eax
movzx edi, dh
movzx eax, word [ebp - 0x32]
inc esi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
mov dword [ebp - 0xc], ebx
shl esi, cl
mov ecx, edi
dec esi
and esi, ebx
shr esi, cl
add esi, eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x14]
cmp ecx, edi
ja 0x587d96
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp + 8]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub edi, ecx
mov dword [ebx + 0x1bc8], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebx + 0x1bc8], ecx
sub edi, ecx
shr edx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov dword [ebx + 0x44], ecx
test al, al
jne 0x587e35
mov dword [ebx + 4], 0x3f4d
jmp 0x588292
test al, 0x20
je 0x587e45
or dword [ebx + 0x1bc8], 0xffffffff
jmp 0x587558
test al, 0x40
je 0x587e55
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x58828b
movzx eax, al
and eax, 0xf
mov dword [ebx + 4], 0x3f49
mov dword [ebx + 0x4c], eax
mov esi, dword [ebx + 0x4c]
test esi, esi
je 0x587eb9
cmp edi, esi
jae 0x587e9c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, esi
jb 0x587e73
xor eax, eax
mov ecx, esi
inc eax
sub edi, esi
shl eax, cl
dec eax
mov dword [ebp - 0x14], edi
and eax, edx
shr edx, cl
add dword [ebx + 0x44], eax
add dword [ebx + 0x1bc8], esi
mov dword [ebp - 0xc], edx
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x1bcc], eax
mov dword [ebx + 4], 0x3f4a
mov ecx, dword [ebx + 0x5c]
xor eax, eax
lea esi, [eax + 1]
shl esi, cl
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 0x30], ecx
jmp 0x587f05
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x54]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
lea eax, [esi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x587edb
test al, 0xf0
jne 0x587fce
xor edi, edi
movzx ecx, al
mov ebx, eax
inc edi
shr ebx, 8
mov edx, eax
movzx esi, bl
add ecx, esi
shr eax, 0x10
shl edi, cl
mov ecx, esi
dec edi
mov dword [ebp - 0x34], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x30]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x14]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
add esi, ecx
cmp esi, edi
jbe 0x587fbb
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5882e9
mov esi, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
add edi, 8
mov dword [ebp - 0x14], edi
movzx eax, byte [esi]
shl eax, cl
add ebx, eax
movzx edi, dh
movzx eax, word [ebp - 0x32]
inc esi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
mov dword [ebp - 0xc], ebx
shl esi, cl
mov ecx, edi
dec esi
and esi, ebx
shr esi, cl
add esi, eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x14]
cmp ecx, edi
ja 0x587f62
mov ebx, dword [ebp - 0x2c]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
sub edi, ecx
shr edx, cl
add dword [ebx + 0x1bc8], ecx
mov esi, dword [ebp + 8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebx + 0x1bc8], ecx
sub edi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
test al, 0x40
je 0x587ff9
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x58828b
mov ecx, eax
mov dword [ebx + 4], 0x3f4b
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x4c], eax
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x588066
cmp edi, ecx
jae 0x58804b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebx + 0x4c]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x58801f
xor eax, eax
sub edi, ecx
inc eax
mov dword [ebp - 0x14], edi
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x48], eax
add dword [ebx + 0x1bc8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebx + 4], 0x3f4c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5876e8
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebx + 0x48]
cmp eax, ecx
jbe 0x5880d0
sub eax, ecx
cmp eax, dword [ebx + 0x30]
jbe 0x5880a0
cmp dword [ebx + 0x1bc4], 0
je 0x5880a0
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x58828b
cmp eax, dword [ebx + 0x34]
jbe 0x5880b2
sub eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
sub ecx, eax
add ecx, dword [ebx + 0x38]
jmp 0x5880ba
mov ecx, dword [ebx + 0x38]
sub ecx, eax
add ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x44]
cmp eax, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
cmovbe esi, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], esi
jmp 0x5880db
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x18]
mov ebx, esi
cmp dword [ebp - 0x30], ebx
cmovbe esi, dword [ebp - 0x30]
sub ebx, esi
sub eax, esi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebx + 0x44], eax
mov ebx, dword [ebp - 0x20]
sub ecx, ebx
mov al, byte [ecx + ebx]
mov byte [ebx], al
inc ebx
sub esi, 1
jne 0x5880f9
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x44], 0
jne 0x588292
mov dword [ebx + 4], 0x3f48
jmp 0x588292
cmp dword [ebp - 0x18], 0
je 0x5876e8
mov ecx, dword [ebp - 0x20]
mov al, byte [ebx + 0x44]
mov byte [ecx], al
inc ecx
dec dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
jmp 0x588117
cmp dword [ebx + 0xc], 0
je 0x588226
cmp edi, 0x20
jae 0x58817d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x588150
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
add dword [esi + 0x14], eax
add dword [ebx + 0x20], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x24], eax
mov eax, ecx
test cl, 4
je 0x5881d0
cmp dword [ebp - 0x24], 0
je 0x5881d0
test byte [esi + 0x34], 1
jne 0x5881d0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
cmp dword [ebx + 0x14], 0
push ecx
push eax
push dword [ebx + 0x1c]
je 0x5881bc
call fcn.00588997
jmp 0x5881c1
call fcn.0058874d
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
test al, 4
je 0x58821a
test byte [esi + 0x34], 1
jne 0x58821a
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
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp dword [ebx + 0x14], 0
cmovne ecx, edx
cmp ecx, dword [ebx + 0x1c]
je 0x58821a
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x58828b
xor ecx, ecx
mov edx, ecx
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov dword [ebx + 4], 0x3f4f
cmp dword [ebx + 0xc], 0
je 0x5882d2
xor eax, eax
cmp dword [ebx + 0x14], eax
je 0x5882d2
cmp edi, 0x20
jae 0x588279
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5876eb
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x58824a
xor eax, eax
test byte [ebx + 0xc], 4
je 0x5882cd
cmp edx, dword [ebx + 0x20]
je 0x5882cd
mov dword [esi + 0x18], str.incorrect_length_check
mov dword [ebx + 4], 0x3f51
mov ecx, dword [ebx + 4]
lea eax, [ecx - 0x3f34]
cmp eax, 0x1e
jbe switch.0x00586e95
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edi
push 2
jmp 0x5882a6
mov dword [ebp - 0xc], eax
mov edi, eax
mov dword [ebx + 4], 0x3f50
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
jmp 0x5876e8
push 0xfffffffffffffffd
pop eax
jmp 0x5882dc
mov ebx, dword [ebp - 0x2c]
jmp 0x5876eb
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
sub eax, dword [esi + 4]
sub edx, dword [esi + 0x10]
add dword [esi + 8], eax
add dword [esi + 0x14], edx
add dword [ebx + 0x20], edx
test byte [ebx + 0xc], 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], edx
je 0x588343
test edx, edx
je 0x588343
test byte [esi + 0x34], 1
jne 0x588343
mov eax, dword [esi + 0xc]
sub eax, edx
push edx
push eax
push dword [ebx + 0x1c]
cmp dword [ebx + 0x14], edi
je 0x588332
call fcn.00588997
jmp 0x588337
call fcn.0058874d
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
cmp dword [ebx + 4], 0x3f47
je 0x588355
cmp dword [ebx + 4], 0x3f42
jne 0x58835a
mov edi, 0x100
mov ecx, dword [ebx + 8]
neg ecx
mov dword [ebp - 0x40], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebx + 4], 0x3f3f
cmove eax, dword [ebp - 0x40]
add ecx, eax
add ecx, dword [ebx + 0x40]
add ecx, edi
cmp dword [ebp - 0x38], 0
mov dword [esi + 0x2c], ecx
jne 0x58838c
test edx, edx
je 0x588392
cmp dword [ebp + 0xc], 4
jne 0x5883a2
mov eax, dword [ebp - 0x28]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x5882a7
mov eax, dword [ebp - 0x28]
jmp 0x5882a7