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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
test eax, eax
push ebx
je 0x10040e9d
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x10040e9d
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10040e9d
cmp dword [eax], 0
jne 0x1003f8c8
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10040e9d
cmp dword [ebx], 0xb
jne 0x1003f8d3
mov dword [ebx], 0xc
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 4]
push esi
mov esi, dword [ebx + 0x3c]
push edi
mov edi, dword [eax]
mov eax, dword [ebx + 0x38]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebx]
cmp ecx, 0x1e
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], 0
jbe switch.0x1003f920
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
jmp switch.0x1003f920
jmp dword [ecx*4 + 0x10040ea8]
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x1003f939
mov dword [ebx], 0xc
jmp 0x10040d11
cmp esi, 0x10
jae 0x1003f96c
mov edi, edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
mov dword [ebp - 0x10], esi
add eax, edx
inc edi
cmp esi, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
jb 0x1003f940
test byte [ebx + 8], 2
je 0x1003f9b4
cmp eax, 0x8b1f
jne 0x1003f9b4
xor esi, esi
push esi
push esi
push esi
call fcn.1003f580
mov dword [ebx + 0x18], eax
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0x1f
mov byte [ebp - 0x1b], 0x8b
mov ecx, dword [ebx + 0x18]
push eax
push ecx
call fcn.1003f580
add esp, 0x18
mov dword [ebx + 0x18], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebx], 1
jmp 0x10040d11
mov eax, dword [ebx + 0x20]
test eax, eax
mov dword [ebx + 0x10], 0
je 0x1003f9c9
mov dword [eax + 0x30], 0xffffffff
test byte [ebx + 8], 1
je 0x1003fa7c
mov ecx, dword [ebp - 8]
mov eax, ecx
and eax, 0xff
shl eax, 8
shr ecx, 8
add eax, ecx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
jne 0x1003fa7c
mov ecx, dword [ebp - 8]
mov edx, ecx
and dl, 0xf
cmp dl, 8
je 0x1003fa12
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x10040d0b
mov eax, dword [ebx + 0x24]
shr ecx, 4
mov dword [ebp - 8], ecx
and ecx, 0xf
sub esi, 4
add ecx, 8
test eax, eax
mov dword [ebp - 0x10], esi
jne 0x1003fa69
mov dword [ebx + 0x24], ecx
xor esi, esi
mov edx, 1
shl edx, cl
push esi
push esi
push esi
mov dword [ebx + 0x14], edx
call fcn.10040f90
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
shr edx, 8
not edx
and edx, 2
add esp, 0xc
mov dword [ebx + 0x18], eax
or edx, 9
mov dword [ecx + 0x30], eax
mov dword [ebx], edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
jmp 0x10040d11
cmp ecx, eax
jbe 0x1003fa2e
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_window_size
jmp 0x10040d0b
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_header_check
jmp 0x10040d0b
cmp esi, 0x10
jae 0x1003fabc
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
mov dword [ebp - 0x10], esi
add eax, edx
inc edi
cmp esi, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
jb 0x1003fa90
cmp al, 8
mov dword [ebx + 0x10], eax
je 0x1003fad2
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x10040d0b
test ah, 0xe0
je 0x1003fae6
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.unknown_header_flags_set
jmp 0x10040d0b
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1003faf5
shr eax, 8
and eax, 1
mov dword [ecx], eax
mov eax, dword [ebx + 0x10]
test ah, 2
je 0x1003fb1e
mov eax, dword [ebp - 8]
mov byte [ebp - 0x1c], al
shr eax, 8
push 2
lea edx, [ebp - 0x1c]
mov byte [ebp - 0x1b], al
mov eax, dword [ebx + 0x18]
push edx
push eax
call fcn.1003f580
add esp, 0xc
mov dword [ebx + 0x18], eax
xor eax, eax
xor esi, esi
mov dword [ebx], 2
jmp 0x1003fb30
cmp esi, 0x20
jae 0x1003fb56
nop
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
add eax, edx
inc edi
cmp esi, 0x20
mov dword [ebp - 8], eax
jb 0x1003fb30
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1003fb60
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x10]
test ah, 2
je 0x1003fb99
mov eax, dword [ebp - 8]
mov byte [ebp - 0x1c], al
mov ecx, eax
mov edx, eax
shr eax, 0x18
shr ecx, 8
mov byte [ebp - 0x19], al
shr edx, 0x10
push 4
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1b], cl
mov byte [ebp - 0x1a], dl
mov ecx, dword [ebx + 0x18]
push eax
push ecx
call fcn.1003f580
add esp, 0xc
mov dword [ebx + 0x18], eax
xor eax, eax
xor esi, esi
mov dword [ebx], 3
jmp 0x1003fbb0
cmp esi, 0x10
jae 0x1003fbd9
lea ebx, [ebx]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
add eax, edx
inc edi
cmp esi, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
jb 0x1003fbb0
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1003fbf4
mov edx, eax
and edx, 0xff
mov dword [ecx + 8], edx
mov ecx, dword [ebx + 0x20]
shr eax, 8
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x10]
test ah, 2
je 0x1003fc1d
mov eax, dword [ebp - 8]
mov byte [ebp - 0x1c], al
shr eax, 8
push 2
lea edx, [ebp - 0x1c]
mov byte [ebp - 0x1b], al
mov eax, dword [ebx + 0x18]
push edx
push eax
call fcn.1003f580
add esp, 0xc
mov dword [ebx + 0x18], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebx], 4
mov ecx, dword [ebx + 0x10]
test ch, 4
je 0x1003fcab
cmp esi, 0x10
jae 0x1003fc69
lea ebx, [ebx]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
add eax, edx
inc edi
cmp esi, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
jb 0x1003fc40
mov ecx, dword [ebx + 0x20]
test ecx, ecx
mov dword [ebx + 0x40], eax
je 0x1003fc76
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 0x10]
test ah, 2
je 0x1003fc9f
mov eax, dword [ebp - 8]
mov byte [ebp - 0x1c], al
shr eax, 8
mov byte [ebp - 0x1b], al
mov ecx, dword [ebx + 0x18]
push 2
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.1003f580
add esp, 0xc
mov dword [ebx + 0x18], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
jmp 0x1003fcb9
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1003fcb9
mov dword [ecx + 0x10], 0
mov dword [ebx], 5
mov ecx, dword [ebx + 0x10]
test ch, 4
je 0x1003fd67
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
cmp ecx, edx
mov dword [ebp - 0x14], ecx
jbe 0x1003fcdd
mov ecx, edx
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1003fd5c
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x1003fd2a
mov edx, dword [edx + 0x10]
test edx, edx
mov dword [ebp - 0x24], edx
je 0x1003fd2a
mov edx, dword [ebx + 0x20]
mov edi, dword [edx + 0x14]
mov esi, dword [ebx + 0x40]
mov edx, dword [edx + 0x18]
sub edi, esi
lea esi, [ecx + edi]
cmp esi, edx
jbe 0x1003fd0b
sub edx, edi
mov ecx, edx
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xc]
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebx + 0x10]
test dh, 2
je 0x1003fd4c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x18]
push eax
push edi
push ecx
call fcn.1003f580
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 8]
add esp, 0xc
sub dword [ebp - 4], ecx
mov edx, dword [ebx + 0x40]
add edi, ecx
sub edx, ecx
mov dword [ebp - 0xc], edi
mov dword [ebx + 0x40], edx
mov ecx, dword [ebx + 0x40]
test ecx, ecx
jne 0x10040d6b
mov dword [ebx + 0x40], 0
mov dword [ebx], 6
mov ecx, dword [ebx + 0x10]
test ch, 8
je 0x1003fe14
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
xor ecx, ecx
lea ecx, [ecx]
movzx edx, byte [ecx + edi]
inc ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x20]
test ecx, ecx
mov dword [ebp - 0x24], edx
je 0x1003fdc9
mov edx, dword [ecx + 0x1c]
test edx, edx
mov dword [ebp - 0x34], edx
je 0x1003fdc9
mov edx, dword [ebx + 0x40]
cmp edx, dword [ecx + 0x20]
jae 0x1003fdc9
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov al, byte [ebp - 0x24]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1003fdd8
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 4]
jb 0x1003fd90
mov ecx, dword [ebx + 0x10]
test ch, 2
je 0x1003fdf7
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x18]
push edx
push edi
push eax
call fcn.1003f580
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
sub edx, ecx
add edi, ecx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edi
jne 0x10040d6b
jmp 0x1003fe22
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1003fe22
mov dword [ecx + 0x1c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx], 7
mov ecx, dword [ebx + 0x10]
test ch, 0x10
je 0x1003fecc
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
xor ecx, ecx
movzx edx, byte [ecx + edi]
inc ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x20]
test ecx, ecx
mov dword [ebp - 0x24], edx
je 0x1003fe81
mov edx, dword [ecx + 0x24]
test edx, edx
mov dword [ebp - 0x34], edx
je 0x1003fe81
mov edx, dword [ebx + 0x40]
cmp edx, dword [ecx + 0x28]
jae 0x1003fe81
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov al, byte [ebp - 0x24]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1003fe90
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 4]
jb 0x1003fe48
mov ecx, dword [ebx + 0x10]
test ch, 2
je 0x1003feaf
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x18]
push edx
push edi
push eax
call fcn.1003f580
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
sub edx, ecx
add edi, ecx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edi
jne 0x10040d6b
jmp 0x1003feda
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1003feda
mov dword [ecx + 0x24], 0
mov dword [ebx], 8
mov ecx, dword [ebx + 0x10]
test ch, 2
je 0x1003ff40
cmp esi, 0x10
jae 0x1003ff1c
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
mov dword [ebp - 0x10], esi
add eax, edx
inc edi
cmp esi, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
jb 0x1003fef0
mov ecx, dword [ebx + 0x18]
and ecx, 0xffff
cmp eax, ecx
je 0x1003ff38
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.header_crc_mismatch
jmp 0x10040d0b
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1003ff5d
mov ecx, dword [ebx + 0x10]
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov edx, dword [ebx + 0x20]
mov dword [edx + 0x30], 1
push 0
push 0
push 0
call fcn.1003f580
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [ebx], 0xb
jmp 0x10040d11
cmp esi, 0x20
jae 0x1003ffad
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
add eax, edx
inc edi
cmp esi, 0x20
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
jb 0x1003ff84
mov ecx, eax
mov edx, eax
and ecx, 0xff00
shl edx, 0x10
add ecx, edx
xor edx, edx
mov dh, byte [ebp - 6]
shl ecx, 8
shr eax, 0x18
add ecx, edx
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [ecx + 0x30], eax
xor eax, eax
mov dword [ebp - 8], eax
xor esi, esi
mov dword [ebx], 0xa
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x10040d28
push 0
push 0
push 0
call fcn.10040f90
mov edx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebx], 0xb
mov ecx, dword [ebp + 0xc]
cmp ecx, 5
je 0x10040d6b
cmp ecx, 6
je 0x10040d6b
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x10040042
mov ecx, esi
and ecx, 7
shr eax, cl
sub esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebx], 0x1a
mov dword [ebp - 8], eax
jmp 0x10040d11
cmp esi, 3
jae 0x10040076
jmp 0x10040050
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
add eax, edx
inc edi
cmp esi, 3
mov dword [ebp - 0xc], edi
jb 0x10040050
mov ecx, eax
and ecx, 1
shr eax, 1
mov dword [ebx + 4], ecx
mov ecx, eax
and ecx, 3
dec esi
cmp ecx, 3
ja case.default.0x1004008b
jmp dword [ecx*4 + 0x10040f24]
shr eax, 2
sub esi, 2
mov dword [ebx], 0xd
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
jmp 0x10040d11
cmp dword [ebp + 0xc], 6
mov dword [ebx + 0x4c], 0x101a9760
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x101a9f60
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x13
jne case.default.0x1004008b
shr eax, 2
sub esi, 2
jmp 0x10040d6b
shr eax, 2
sub esi, 2
mov dword [ebx], 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
jmp 0x10040d11
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_block_type
mov dword [ebx], 0x1d
shr eax, 2
sub esi, 2
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
jmp 0x10040d11
mov ecx, esi
and ecx, 7
shr eax, cl
sub esi, ecx
cmp esi, 0x20
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], eax
jae 0x1004015c
jmp 0x10040130
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
mov dword [ebp - 0x10], esi
add eax, edx
inc edi
cmp esi, 0x20
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
jb 0x10040130
mov ecx, eax
not eax
and ecx, 0xffff
shr eax, 0x10
cmp ecx, eax
je 0x1004017c
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x10040d0b
mov dword [ebx + 0x40], ecx
mov ecx, dword [ebp + 0xc]
xor eax, eax
xor esi, esi
cmp ecx, 6
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebx], 0xe
je 0x10040d6b
mov dword [ebx], 0xf
mov ecx, dword [ebx + 0x40]
test ecx, ecx
mov dword [ebp - 0x14], ecx
je 0x10040893
mov edx, dword [ebp - 4]
cmp ecx, edx
jbe 0x100401bb
mov ecx, edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jbe 0x100401c7
mov ecx, edx
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x10040d6b
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x20]
mov edx, ecx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
sub edx, ecx
add eax, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x40]
mov edi, dword [ebp - 0xc]
sub esi, ecx
add edx, ecx
sub eax, ecx
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebx + 0x40], eax
jmp 0x10040d11
cmp esi, 0xe
jae 0x10040246
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
add eax, edx
inc edi
cmp esi, 0xe
mov dword [ebp - 0xc], edi
jb 0x10040220
mov ecx, eax
and ecx, 0x1f
add ecx, 0x101
shr eax, 5
mov edx, eax
mov dword [ebx + 0x60], ecx
shr eax, 5
mov ecx, eax
and ecx, 0xf
add ecx, 4
and edx, 0x1f
mov dword [ebx + 0x5c], ecx
mov ecx, dword [ebx + 0x60]
inc edx
shr eax, 4
sub esi, 0xe
cmp ecx, 0x11e
mov dword [ebx + 0x64], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
ja 0x10040381
mov ecx, edx
cmp ecx, 0x1e
ja 0x10040381
mov dword [ebx + 0x68], 0
mov dword [ebx], 0x11
mov ecx, dword [ebx + 0x68]
cmp ecx, dword [ebx + 0x5c]
jae 0x1004030a
lea esp, [esp]
cmp esi, 3
jae 0x100402db
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
add eax, edx
inc edi
cmp esi, 3
mov dword [ebp - 0xc], edi
jb 0x100402b5
mov edx, dword [ebx + 0x68]
movzx edx, word [edx*2 + 0x101a9fe0]
xor ecx, ecx
mov cl, al
shr eax, 3
sub esi, 3
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
and ecx, 7
mov word [ebx + edx*2 + 0x70], cx
mov ecx, dword [ebx + 0x68]
inc ecx
mov dword [ebx + 0x68], ecx
cmp ecx, dword [ebx + 0x5c]
jb 0x100402b0
mov ecx, dword [ebx + 0x68]
mov eax, 0x13
cmp ecx, eax
jae 0x1004033b
xor ecx, ecx
jmp 0x10040320
mov edx, dword [ebx + 0x68]
movzx edx, word [edx*2 + 0x101a9fe0]
mov word [ebx + edx*2 + 0x70], cx
mov edx, dword [ebx + 0x68]
inc edx
cmp edx, eax
mov dword [ebx + 0x68], edx
jb 0x10040320
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ecx], eax
mov dword [ebx + 0x4c], eax
lea edx, [ebx + 0x2f0]
push edx
lea eax, [ebx + 0x54]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [ebx + 0x70]
push eax
push 0
call fcn.100430c0
add esp, 0x18
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x10040390
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_code_lengths_set
jmp 0x10040d0b
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x10040d0b
mov eax, dword [ebp - 8]
mov dword [ebx + 0x68], 0
mov dword [ebx], 0x12
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0x64]
add edx, ecx
cmp dword [ebx + 0x68], edx
jae 0x100405d1
mov ecx, dword [ebx + 0x54]
mov edx, 1
shl edx, cl
mov ecx, dword [ebx + 0x4c]
dec edx
and edx, eax
mov ecx, dword [ecx + edx*4]
movzx edx, ch
cmp edx, esi
mov dword [ebp - 0x3c], ecx
jbe 0x1004040e
mov edi, edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebx + 0x54]
add esi, 8
add eax, edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebx + 0x4c]
inc edi
mov dword [ebp - 0xc], edi
dec edx
and edx, eax
mov ecx, dword [ecx + edx*4]
movzx edx, ch
cmp edx, esi
mov dword [ebp - 0x3c], ecx
ja 0x100403d0
mov edx, dword [ebp - 0x3c]
movzx ecx, ch
shr edx, 0x10
cmp dx, 0x10
mov dword [ebp - 0x14], ecx
jae 0x1004046e
cmp esi, ecx
jae 0x1004044c
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x14]
add esi, 8
add eax, edx
inc edi
cmp esi, ecx
mov dword [ebp - 0xc], edi
jb 0x10040424
mov dx, word [ebp - 0x3a]
shr eax, cl
sub esi, ecx
mov ecx, dword [ebx + 0x68]
mov word [ebx + ecx*2 + 0x70], dx
mov ecx, dword [ebx + 0x68]
inc ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebx + 0x68], ecx
jmp 0x100405c0
jne 0x100404de
lea edx, [ecx + 2]
cmp esi, edx
jae 0x100404ab
jmp 0x10040480
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x14]
add esi, 8
add eax, edx
inc edi
lea edx, [ecx + 2]
cmp esi, edx
mov dword [ebp - 0xc], edi
jb 0x10040480
shr eax, cl
sub esi, ecx
mov ecx, dword [ebx + 0x68]
test ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
je 0x100405f3
movzx ecx, word [ebx + ecx*2 + 0x6e]
mov dword [ebp - 0x24], ecx
mov ecx, eax
and ecx, 3
add ecx, 3
shr eax, 2
mov dword [ebp - 0x14], ecx
sub esi, 2
jmp 0x1004058e
cmp dx, 0x11
jne 0x10040532
lea edx, [ecx + 3]
cmp esi, edx
jae 0x1004051b
jmp 0x100404f0
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x14]
add esi, 8
add eax, edx
inc edi
lea edx, [ecx + 3]
cmp esi, edx
mov dword [ebp - 0xc], edi
jb 0x100404f0
shr eax, cl
mov edx, eax
and edx, 7
add edx, 3
mov dword [ebp - 0x14], edx
shr eax, 3
mov edx, 0xfffffffd
jmp 0x10040580
lea edx, [ecx + 7]
cmp esi, edx
jae 0x1004056b
lea esp, [esp]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x14]
add esi, 8
add eax, edx
inc edi
lea edx, [ecx + 7]
cmp esi, edx
mov dword [ebp - 0xc], edi
jb 0x10040540
shr eax, cl
mov edx, eax
and edx, 0x7f
add edx, 0xb
mov dword [ebp - 0x14], edx
shr eax, 7
mov edx, 0xfffffff9
sub edx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], 0
add esi, edx
mov edx, dword [ebx + 0x68]
add edx, ecx
mov ecx, dword [ebx + 0x64]
add ecx, dword [ebx + 0x60]
mov dword [ebp - 8], eax
cmp edx, ecx
mov dword [ebp - 0x10], esi
ja 0x10040602
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100405c0
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebx + 0x68]
mov word [ebx + edx*2 + 0x70], cx
inc dword [ebx + 0x68]
dec dword [ebp - 0x14]
jne 0x100405b0
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x64]
add ecx, edx
cmp dword [ebx + 0x68], ecx
jb 0x100403b1
cmp dword [ebx], 0x1d
je 0x10040d11
cmp word [ebx + 0x270], 0
jne 0x10040611
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_code____missing_end_of_block
jmp 0x10040d0b
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_bit_length_repeat
jmp 0x10040d0b
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x10040d0b
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ecx], eax
mov dword [ebx + 0x4c], eax
lea edx, [ebx + 0x2f0]
push edx
mov edx, dword [ebx + 0x60]
lea eax, [ebx + 0x54]
push eax
push ecx
mov dword [eax], 9
push edx
lea eax, [ebx + 0x70]
push eax
push 1
call fcn.100430c0
add esp, 0x18
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x10040659
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_literal_lengths_set
jmp 0x10040d0b
mov edx, dword [ebx + 0x6c]
lea ecx, [ebx + 0x6c]
mov dword [ebx + 0x50], edx
lea edx, [ebx + 0x2f0]
push edx
lea eax, [ebx + 0x58]
push eax
push ecx
mov ecx, dword [ebx + 0x60]
mov dword [eax], 6
mov eax, dword [ebx + 0x64]
push eax
lea edx, [ebx + ecx*2 + 0x70]
push edx
push 2
call fcn.100430c0
add esp, 0x18
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x100406a0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x10040d0b
cmp dword [ebp + 0xc], 6
mov eax, dword [ebp - 8]
mov dword [ebx], 0x13
je 0x10040d6b
mov dword [ebx], 0x14
cmp dword [ebp - 4], 6
jb 0x10040735
cmp dword [ebp - 0x18], 0x102
jb 0x10040735
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 8]
push ecx
mov dword [eax], edi
push eax
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], esi
call fcn.10042c80
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov edi, dword [eax]
mov esi, dword [ebx + 0x3c]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
add esp, 8
cmp eax, 0xb
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], esi
jne 0x10040d11
mov dword [ebx + 0x1bc4], 0xffffffff
jmp 0x10040d11
mov ecx, dword [ebx + 0x54]
mov edx, 1
shl edx, cl
mov ecx, dword [ebx + 0x4c]
mov dword [ebx + 0x1bc4], 0
dec edx
and edx, eax
mov edx, dword [ecx + edx*4]
movzx ecx, dh
cmp ecx, esi
mov dword [ebp - 0x3c], edx
jbe 0x1004079e
lea esp, [esp]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebx + 0x54]
add esi, 8
add eax, edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebx + 0x4c]
inc edi
mov dword [ebp - 0xc], edi
dec edx
and edx, eax
mov edx, dword [ecx + edx*4]
movzx ecx, dh
cmp ecx, esi
mov dword [ebp - 0x3c], edx
ja 0x10040760
test dl, dl
je 0x10040856
test dl, 0xf0
jne 0x10040856
movzx ecx, dh
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov cl, dl
mov dword [ebp - 0x24], edx
add ecx, dword [ebp - 0x14]
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x14]
dec edx
and edx, eax
shr edx, cl
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x10
add edx, ecx
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x24]
shr ecx, 8
mov dword [ebp - 0x3c], edx
movzx ecx, cl
movzx edx, dh
add edx, ecx
cmp edx, esi
mov dword [ebp - 0x14], ecx
jbe 0x10040849
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
xor ecx, ecx
mov cl, byte [ebp - 0x24]
add esi, 8
add eax, edx
mov edx, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0xc], edi
add ecx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x14]
dec edx
and edx, eax
shr edx, cl
movzx ecx, word [ebp - 0x22]
add edx, ecx
mov ecx, dword [ebx + 0x4c]
mov ecx, dword [ecx + edx*4]
movzx edx, ch
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x14]
add edx, ecx
cmp edx, esi
ja 0x100407f4
mov edx, dword [ebp - 0x3c]
shr eax, cl
sub esi, ecx
mov dword [ebx + 0x1bc4], ecx
movzx ecx, dh
shr eax, cl
movzx ecx, dh
add dword [ebx + 0x1bc4], ecx
sub esi, ecx
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x10
test dl, dl
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebx + 0x40], ecx
jne 0x10040884
mov dword [ebx], 0x19
jmp 0x10040d11
test dl, 0x20
je 0x1004089e
mov dword [ebx + 0x1bc4], 0xffffffff
mov dword [ebx], 0xb
jmp 0x10040d11
test dl, 0x40
je 0x100408b2
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_literal_length_code
jmp 0x10040d0b
and edx, 0xf
mov dword [ebx + 0x48], edx
mov dword [ebx], 0x15
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x10040922
cmp esi, ecx
jae 0x100408f8
lea esp, [esp]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebx + 0x48]
add esi, 8
add eax, edx
inc edi
cmp esi, ecx
mov dword [ebp - 0xc], edi
jb 0x100408d0
mov ecx, dword [ebx + 0x48]
mov edx, 1
shl edx, cl
mov ecx, dword [ebx + 0x40]
dec edx
and edx, eax
add ecx, edx
mov edx, dword [ebx + 0x1bc4]
mov dword [ebx + 0x40], ecx
mov ecx, dword [ebx + 0x48]
shr eax, cl
sub esi, ecx
add edx, ecx
mov dword [ebx + 0x1bc4], edx
mov ecx, dword [ebx + 0x40]
mov dword [ebx + 0x1bc8], ecx
mov dword [ebx], 0x16
mov ecx, dword [ebx + 0x58]
mov edx, 1
shl edx, cl
mov ecx, dword [ebx + 0x50]
dec edx
and edx, eax
mov edx, dword [ecx + edx*4]
movzx ecx, dh
cmp ecx, esi
mov dword [ebp - 0x3c], edx
jbe 0x1004098e
mov edi, edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebx + 0x58]
add esi, 8
add eax, edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebx + 0x50]
inc edi
mov dword [ebp - 0xc], edi
dec edx
and edx, eax
mov edx, dword [ecx + edx*4]
movzx ecx, dh
cmp ecx, esi
mov dword [ebp - 0x3c], edx
ja 0x10040950
test dl, 0xf0
jne 0x10040a4a
movzx ecx, dh
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov cl, dl
mov dword [ebp - 0x24], edx
add ecx, dword [ebp - 0x14]
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x14]
dec edx
and edx, eax
shr edx, cl
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x10
add edx, ecx
mov ecx, dword [ebx + 0x50]
mov edx, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x24]
shr ecx, 8
mov dword [ebp - 0x3c], edx
movzx ecx, cl
movzx edx, dh
add edx, ecx
cmp edx, esi
mov dword [ebp - 0x14], ecx
jbe 0x10040a35
lea esp, [esp]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
xor ecx, ecx
mov cl, byte [ebp - 0x24]
add esi, 8
add eax, edx
mov edx, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0xc], edi
add ecx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x14]
dec edx
and edx, eax
shr edx, cl
movzx ecx, word [ebp - 0x22]
add edx, ecx
mov ecx, dword [ebx + 0x50]
mov ecx, dword [ecx + edx*4]
movzx edx, ch
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x14]
add edx, ecx
cmp edx, esi
ja 0x100409e0
mov edx, dword [ebx + 0x1bc4]
shr eax, cl
sub esi, ecx
add edx, ecx
mov dword [ebx + 0x1bc4], edx
mov edx, dword [ebp - 0x3c]
movzx ecx, dh
shr eax, cl
movzx ecx, dh
add dword [ebx + 0x1bc4], ecx
sub esi, ecx
test dl, 0x40
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
je 0x10040a74
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x10040d0b
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x10
and edx, 0xf
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], edx
mov dword [ebx], 0x17
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x10040aec
cmp esi, ecx
jae 0x10040abc
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebx + 0x48]
add esi, 8
add eax, edx
inc edi
cmp esi, ecx
mov dword [ebp - 0xc], edi
jb 0x10040a94
mov ecx, dword [ebx + 0x48]
mov edx, 1
shl edx, cl
mov ecx, dword [ebx + 0x44]
dec edx
and edx, eax
add ecx, edx
mov edx, dword [ebx + 0x1bc4]
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebx + 0x48]
shr eax, cl
sub esi, ecx
add edx, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], eax
mov dword [ebx + 0x1bc4], edx
mov dword [ebx], 0x18
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10040d6b
mov eax, dword [ebp - 0x28]
sub eax, ecx
mov ecx, dword [ebx + 0x44]
cmp ecx, eax
jbe 0x10040b54
sub ecx, eax
cmp ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x14], ecx
jbe 0x10040b2c
mov eax, dword [ebx + 0x1bc0]
test eax, eax
je 0x10040b2c
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x10040d0b
mov edx, dword [ebx + 0x30]
cmp ecx, edx
mov eax, dword [ebx + 0x34]
jbe 0x10040b42
sub ecx, edx
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x14], ecx
sub eax, ecx
jmp 0x10040b46
sub eax, ecx
add eax, edx
mov edx, dword [ebx + 0x40]
cmp ecx, edx
mov dword [ebp - 0x24], edx
jbe 0x10040b62
mov ecx, edx
jmp 0x10040b5f
mov eax, dword [ebp - 0x20]
sub eax, ecx
mov ecx, dword [ebx + 0x40]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jbe 0x10040b6e
mov ecx, edx
mov dword [ebp - 0x14], ecx
sub edx, ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x24]
sub edx, ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x40], edx
mov edi, edi
mov dl, byte [eax]
mov byte [ecx], dl
mov edx, dword [ebp - 0x14]
inc ecx
inc eax
dec edx
mov dword [ebp - 0x14], edx
jne 0x10040b80
mov eax, dword [ebx + 0x40]
test eax, eax
mov dword [ebp - 0x20], ecx
jne 0x10040d11
mov dword [ebx], 0x14
jmp 0x10040d11
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10040d6b
mov eax, dword [ebp - 0x20]
mov cl, byte [ebx + 0x40]
mov byte [eax], cl
inc eax
mov dword [ebp - 0x20], eax
dec dword [ebp - 0x18]
mov dword [ebx], 0x14
jmp 0x10040d11
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x10040ca9
cmp esi, 0x20
jae 0x10040c0c
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
mov dword [ebp - 0x10], esi
add eax, edx
inc edi
cmp esi, 0x20
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
jb 0x10040be0
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add dword [edx + 0x14], ecx
mov edx, dword [ebx + 0x1c]
add edx, ecx
test ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebx + 0x1c], edx
je 0x10040c5b
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x20]
test eax, eax
mov eax, dword [ebp - 0x28]
push eax
je 0x10040c43
sub ecx, eax
push ecx
push edx
call fcn.1003f580
jmp 0x10040c4c
sub ecx, eax
push ecx
push edx
call fcn.10040f90
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebx + 0x10]
test ecx, ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
jne 0x10040c8e
mov ecx, eax
mov edx, eax
and ecx, 0xff00
shl edx, 0x10
add ecx, edx
xor edx, edx
mov dh, byte [ebp - 6]
shl ecx, 8
mov dword [ebp - 0x34], ecx
shr eax, 0x18
add ecx, edx
add ecx, eax
mov dword [ebp - 0x34], ecx
mov eax, ecx
cmp eax, dword [ebx + 0x18]
je 0x10040c9f
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x10040d0b
xor eax, eax
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebx], 0x1b
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x10040d55
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x10040d55
cmp esi, 0x20
jae 0x10040cfc
lea ebx, [ebx]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10040d6b
mov edx, ecx
dec edx
mov dword [ebp - 4], edx
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
add esi, 8
mov dword [ebp - 0x10], esi
add eax, edx
inc edi
cmp esi, 0x20
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
jb 0x10040cd0
cmp eax, dword [ebx + 0x1c]
je 0x10040d51
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_length_check
mov dword [ebx], 0x1d
mov ecx, dword [ebx]
cmp ecx, 0x1e
jbe 0x1003f918
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 4]
mov dword [ecx], edi
mov dword [ecx + 4], edx
pop edi
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x38], eax
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
xor esi, esi
mov dword [ebx], 0x1c
mov dword [ebp - 0x2c], 1
jmp 0x10040d6b
mov dword [ebp - 0x2c], 0xfffffffd
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 4]
mov dword [ecx], edi
mov dword [ecx + 4], edx
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x28]
test eax, eax
mov dword [ebx + 0x3c], esi
jne 0x10040d9c
cmp dword [ebx], 0x1a
jge 0x10040dc1
mov eax, dword [ebp - 0x28]
cmp eax, dword [ecx + 0x10]
je 0x10040dc1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
push edx
call fcn.1003f760
add esp, 4
test eax, eax
je 0x10040dc1
mov dword [ebx], 0x1e
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov edi, dword [esi + 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 8]
sub eax, edi
mov edi, dword [ebp - 0x28]
sub edi, edx
mov edx, dword [esi + 0x14]
add ecx, eax
mov dword [esi + 8], ecx
add edx, edi
mov dword [esi + 0x14], edx
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 8]
add ecx, edi
test eax, eax
mov dword [ebx + 0x1c], ecx
je 0x10040e2b
test edi, edi
je 0x10040e2b
mov eax, dword [ebx + 0x10]
test eax, eax
push edi
je 0x10040e13
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0x18]
sub eax, edi
push eax
push ecx
call fcn.1003f580
jmp 0x10040e22
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x18]
sub edx, edi
push edx
push eax
call fcn.10040f90
mov dword [ebx + 0x18], eax
add esp, 0xc
mov dword [esi + 0x30], eax
mov eax, dword [ebx]
cmp eax, 0x13
je 0x10040e3e
cmp eax, 0xe
mov dword [ebp + 8], 0
jne 0x10040e45
mov dword [ebp + 8], 0x100
mov ecx, dword [ebx + 4]
neg ecx
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
cmp eax, 0xb
mov eax, dword [ebp + 8]
setne dl
add ecx, eax
mov eax, dword [ebp - 0x30]
dec edx
and edx, 0x80
add edx, ecx
add edx, dword [ebx + 0x3c]
test eax, eax
mov dword [esi + 0x2c], edx
jne 0x10040e76
test edi, edi
je 0x10040e7c
cmp dword [ebp + 0xc], 4
jne 0x10040e93
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x1003f911
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret