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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov ebp, dword [esp + 0x70]
mov esi, 0xfffffffe
test ebp, ebp
je 0x40c3cc
cmp dword [ebp + 0x20], 0
je 0x40c3cc
cmp dword [ebp + 0x24], 0
je 0x40c3cc
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x40c3cc
cmp dword [edi], ebp
jne 0x40c3cc
mov eax, dword [edi + 4]
lea ecx, [eax - 0x3f34]
cmp ecx, 0x1f
ja 0x40c3cc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40c3cc
mov edx, dword [ebp]
mov ebx, edx
test edx, edx
je 0x40bf9a
mov dword [esp + 0x24], ecx
cmp eax, 0x3f3f
jne 0x40a0b0
mov dword [edi + 4], 0x3f40
mov eax, 0x3f40
mov edx, dword [ebp + 4]
mov esi, dword [ebp + 0x10]
mov ecx, dword [edi + 0x3c]
mov dword [esp + 8], ecx
mov ecx, dword [edi + 0x40]
mov dword [esp + 4], ecx
lea ecx, [edi + 0x534]
mov dword [esp + 0x48], ecx
lea ecx, [edi + 0x70]
mov dword [esp + 0x38], ecx
lea ecx, [edi + 0x58]
mov dword [esp + 0x44], ecx
lea ecx, [edi + 0x74]
mov dword [esp + 0x3c], ecx
lea ecx, [edi + 0x2f4]
mov dword [esp + 0x34], ecx
lea ecx, [edi + 0x5c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x74]
add ecx, 0xfffffffb
mov dword [esp + 0x58], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], edi
mov ecx, ebx
mov ebx, edx
mov edx, ecx
mov dword [esp], edx
add eax, 0xffffc0cc
cmp eax, 0x1e
ja case.default.0x40a12e
mov dword [esp + 0x10], esi
jmp dword [eax*4 + 0x6b19c4]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40a807
cmp dword [esp + 4], 0x10
jae 0x40a84e
test ebx, ebx
mov esi, dword [esp]
je 0x40c0f8
lea edx, [ebx - 1]
movzx edi, byte [esi]
mov ecx, dword [esp + 4]
shl edi, cl
inc esi
add dword [esp + 8], edi
lea edi, [ecx + 8]
cmp ecx, 7
ja 0x40b533
mov ecx, edi
test edx, edx
mov edi, dword [esp + 0x14]
je 0x40c0df
mov esi, dword [esp]
movzx edx, byte [esi + 1]
shl edx, cl
add ebx, 0xfffffffe
add esi, 2
add dword [esp + 8], edx
mov edx, esi
add dword [esp + 4], 0x10
jmp 0x40b53f
cmp dword [esp + 4], 0x10
jae 0x40a7bf
test ebx, ebx
mov ecx, dword [esp]
je 0x40c12d
lea eax, [ebx - 1]
mov edx, ecx
movzx esi, byte [ecx]
mov ecx, dword [esp + 4]
shl esi, cl
inc edx
add dword [esp + 8], esi
lea esi, [ecx + 8]
cmp ecx, 7
ja 0x40a8b2
mov ecx, esi
test eax, eax
je 0x40c174
mov edx, dword [esp]
movzx eax, byte [edx + 1]
shl eax, cl
add ebx, 0xfffffffe
add edx, 2
add dword [esp + 8], eax
add dword [esp + 4], 0x10
jmp 0x40a8b8
mov ecx, dword [esp + 4]
cmp ecx, 0x1f
mov edx, dword [esp]
jbe 0x40b416
jmp 0x40b7b6
mov ecx, dword [esp + 4]
cmp ecx, 0xf
mov edx, dword [esp]
jbe 0x40b80e
jmp 0x40b857
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x14]
test eax, 0x400
jne 0x40a7c7
mov ebx, dword [esp + 8]
mov edx, dword [esp]
jmp 0x40b8d4
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 8]
jmp 0x40b99b
mov edx, dword [esp]
jmp 0x40ba5a
mov edx, dword [esp]
jmp 0x40bb1b
mov edx, dword [esp]
jmp 0x40bbd4
mov ecx, dword [esp + 4]
cmp ecx, 0x20
jae 0x40a7da
test ebx, ebx
mov eax, dword [esp]
je 0x40c14a
mov esi, ebx
mov ebx, eax
movzx edx, byte [eax]
shl edx, cl
mov dword [esp + 0xc], esi
lea eax, [esi - 1]
add dword [esp + 8], edx
lea edx, [ebx + 1]
cmp ecx, 0x17
ja 0x40a8ec
mov ebp, ecx
add ecx, 8
test eax, eax
mov esi, dword [esp + 0x10]
je 0x40c19d
mov ebx, dword [esp]
movzx edx, byte [ebx + 1]
shl edx, cl
mov eax, dword [esp + 0xc]
add eax, 0xfffffffe
add dword [esp + 8], edx
lea edx, [ebx + 2]
cmp ebp, 0xf
ja 0x40bdc5
mov ecx, ebp
lea ecx, [ebp + 0x10]
test eax, eax
je 0x40c19d
mov ebx, dword [esp]
movzx edx, byte [ebx + 2]
shl edx, cl
mov eax, dword [esp + 0xc]
add eax, 0xfffffffd
add dword [esp + 8], edx
mov edx, ebx
add ebx, 3
mov ecx, ebp
cmp ebp, 7
ja 0x40bdc3
add ebp, 0x18
mov ecx, ebp
test eax, eax
mov ebp, dword [esp + 0x70]
je 0x40c448
mov ebx, dword [esp + 0xc]
add ebx, 0xfffffffc
movzx eax, byte [edx + 3]
add edx, 4
shl eax, cl
add dword [esp + 8], eax
jmp 0x40bdcb
mov edx, dword [esp]
jmp 0x40bdee
mov edx, dword [esp]
jmp 0x40be23
mov edx, dword [esp]
jmp 0x40be2e
mov eax, dword [esp + 4]
mov ecx, eax
and cl, 7
shr dword [esp + 8], cl
and eax, 0xfffffff8
mov dword [esp + 4], eax
cmp eax, 0x1f
ja 0x40a7e2
test ebx, ebx
mov ecx, dword [esp]
je 0x40c12d
lea eax, [ebx - 1]
mov edx, ecx
movzx esi, byte [ecx]
mov ecx, dword [esp + 4]
shl esi, cl
inc edx
add dword [esp + 8], esi
lea esi, [ecx + 8]
cmp ecx, 0x17
ja 0x40a8fb
mov ecx, esi
test eax, eax
je 0x40c174
lea eax, [ebx - 2]
mov edx, dword [esp]
movzx esi, byte [edx + 1]
shl esi, cl
add edx, 2
add dword [esp + 8], esi
mov esi, dword [esp + 4]
lea ecx, [esi + 0x10]
cmp esi, 0xf
ja 0x40a3df
test eax, eax
je 0x40c174
lea eax, [ebx - 3]
mov edx, dword [esp]
movzx esi, byte [edx + 2]
shl esi, cl
add edx, 3
add dword [esp + 8], esi
mov esi, dword [esp + 4]
lea ecx, [esi + 0x18]
test esi, esi
je 0x40bf11
mov ebx, eax
mov dword [esp + 4], ecx
jmp 0x40a901
mov edi, dword [esp + 4]
cmp edi, 0xe
jae 0x40a7ea
test ebx, ebx
je 0x40c0f8
lea eax, [ebx - 1]
mov edx, dword [esp]
movzx esi, byte [edx]
mov ecx, dword [esp + 4]
shl esi, cl
inc edx
add dword [esp + 8], esi
lea edi, [ecx + 8]
cmp ecx, 5
ja 0x40a9c9
mov ecx, edi
test eax, eax
je 0x40c1cb
mov edx, dword [esp]
movzx eax, byte [edx + 1]
shl eax, cl
add ebx, 0xfffffffe
mov dword [esp + 0xc], ebx
add edx, 2
mov dword [esp], edx
add dword [esp + 8], eax
mov edi, dword [esp + 4]
add edi, 0x10
jmp 0x40a9d0
mov dword [esp + 0xc], ebx
mov ecx, dword [edi + 0x60]
mov eax, dword [edi + 0x6c]
cmp eax, ecx
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
jb 0x40aa3e
jmp 0x40aad4
mov ecx, dword [edi + 0x6c]
mov ebp, dword [esp]
jmp 0x40abd8
mov ebp, dword [esp]
mov dword [edi + 4], 0x3f48
mov esi, ebp
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
jmp 0x40a4a0
mov ecx, esi
mov eax, dword [esp + 0x28]
mov esi, dword [esp]
cmp ebx, 6
jb 0x40a514
mov edx, ecx
cmp ecx, 0x102
jb 0x40a514
mov ecx, dword [esp + 0x24]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov dword [ebp], esi
mov dword [ebp + 4], ebx
mov ecx, dword [esp + 8]
mov dword [edi + 0x3c], ecx
mov ecx, dword [esp + 4]
mov dword [edi + 0x40], ecx
push eax
push ebp
call fcn.004b57b0
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp]
mov ebx, dword [ebp + 4]
mov eax, dword [edi + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 4], eax
cmp dword [edi + 4], 0x3f3f
jne 0x40bf09
mov dword [edi + 0x1bc8], 0xffffffff
mov eax, dword [edi + 4]
jmp 0x40a119
mov dword [esp], esi
mov dword [esp + 0xc], ebx
mov dword [edi + 0x1bc8], 0
movzx ecx, byte [edi + 0x58]
mov ebx, 0xffffffff
shl ebx, cl
mov esi, dword [edi + 0x50]
not ebx
mov ecx, dword [esp + 8]
and ecx, ebx
movzx edx, byte [esi + ecx*4 + 1]
movzx eax, dl
mov edi, dword [esp + 4]
cmp edi, eax
jae 0x40a708
mov dword [esp + 0x18], esi
mov ecx, edi
mov edi, dword [esp + 0xc]
mov ebp, dword [esp]
sub edi, 1
jb 0x40bfa9
movzx eax, byte [ebp]
shl eax, cl
inc ebp
mov esi, dword [esp + 8]
add esi, eax
add ecx, 8
mov dword [esp + 8], esi
and esi, ebx
mov eax, dword [esp + 0x18]
movzx edx, byte [eax + esi*4 + 1]
movzx eax, dl
cmp ecx, eax
jb 0x40a55c
mov ebx, dword [esp + 0x18]
lea ebx, [ebx + esi*4]
mov esi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0x70]
jmp 0x40a710
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x40afa0
mov edx, dword [esp + 4]
cmp edx, eax
jae 0x40a81a
mov edi, ebx
mov ecx, dword [esp]
mov ebp, ecx
sub ebx, 1
jb 0x40c02a
movzx esi, byte [ebp]
mov ecx, edx
shl esi, cl
inc ebp
add dword [esp + 8], esi
mov ecx, dword [esp]
add edx, 8
cmp edx, eax
jb 0x40a5c7
jmp 0x40a81d
mov dword [esp + 0xc], ebx
jmp 0x40afc0
mov eax, dword [edi + 0x4c]
jmp 0x40b17b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 4]
jmp 0x40b215
test esi, esi
je 0x40c134
movzx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x24]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x24], ecx
dec esi
mov dword [edi + 4], 0x3f48
jmp 0x40bf06
mov edx, dword [edi + 0xc]
test edx, edx
je 0x40a813
cmp dword [esp + 4], 0x1f
mov dword [esp + 0xc], ebx
mov dword [esp + 0x20], edx
ja 0x40a869
test ebx, ebx
je 0x40c0f8
lea edx, [ebx - 1]
mov eax, dword [esp]
movzx edi, byte [eax]
mov ecx, dword [esp + 4]
shl edi, cl
lea ebx, [eax + 1]
mov eax, ecx
add dword [esp + 8], edi
add ecx, 8
cmp eax, 0x17
ja 0x40a856
test edx, edx
je 0x40c13b
mov eax, dword [esp + 0xc]
lea edx, [eax - 2]
mov eax, dword [esp]
movzx edi, byte [eax + 1]
shl edi, cl
lea ebx, [eax + 2]
add dword [esp + 8], edi
mov eax, dword [esp + 4]
lea ecx, [eax + 0x10]
cmp eax, 0xf
ja 0x40a856
test edx, edx
je 0x40c13b
mov eax, dword [esp + 0xc]
lea edx, [eax - 3]
mov eax, dword [esp]
movzx edi, byte [eax + 2]
shl edi, cl
lea ebx, [eax + 3]
add dword [esp + 8], edi
mov eax, dword [esp + 4]
lea ecx, [eax + 0x18]
cmp eax, 7
ja 0x40a856
test edx, edx
je 0x40c13b
mov eax, dword [esp]
movzx edx, byte [eax + 3]
shl edx, cl
add dword [esp + 0xc], 0xfffffffc
add eax, 4
mov dword [esp], eax
add dword [esp + 8], edx
add dword [esp + 4], 0x20
jmp 0x40a861
mov eax, dword [edi + 0xc]
jmp 0x40b667
lea ebx, [esi + ecx*4]
mov edi, esi
mov esi, dword [esp]
mov dword [esp], esi
movzx esi, word [ebx + 2]
mov ch, byte [ebx]
mov cl, ch
dec cl
cmp cl, 0xe
ja 0x40a7f3
movzx ecx, ch
add ecx, eax
mov edx, 0xffffffff
shl edx, cl
movzx ebx, si
not edx
mov esi, dword [esp + 8]
mov dword [esp + 0x20], edx
and esi, edx
mov ecx, eax
shr esi, cl
mov dword [esp + 0x30], ebx
add esi, ebx
movzx edx, byte [edi + esi*4 + 1]
lea ecx, [eax + edx]
mov ebx, dword [esp + 4]
cmp ecx, ebx
jbe 0x40af25
mov dword [esp + 0x18], edi
mov ebp, dword [esp + 0xc]
mov edi, dword [esp]
sub ebp, 1
jb 0x40bfa9
movzx edx, byte [edi]
inc edi
mov ecx, ebx
shl edx, cl
mov esi, dword [esp + 8]
add esi, edx
add ebx, 8
mov dword [esp + 8], esi
and esi, dword [esp + 0x20]
mov ecx, eax
shr esi, cl
add esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx + esi*4 + 1]
lea ecx, [eax + edx]
cmp ecx, ebx
ja 0x40a76a
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + esi*4]
mov dword [esp], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x70]
jmp 0x40af28
mov edx, dword [esp]
jmp 0x40a8bc
cmp dword [esp + 4], 0xf
mov edx, dword [esp]
ja 0x40b949
jmp 0x40b8ee
mov edx, dword [esp]
jmp 0x40bdcb
mov edx, dword [esp]
jmp 0x40a905
mov dword [esp + 0xc], ebx
jmp 0x40a9d0
xor eax, eax
mov ebx, dword [esp + 8]
mov edi, dword [esp + 4]
mov word [esp + 0x18], si
jmp 0x40af41
mov dword [edi + 4], 0x3f40
jmp 0x40bf06
xor eax, eax
jmp 0x40b660
mov ebp, dword [esp]
mov edi, 0xffffffff
mov ecx, eax
shl edi, cl
not edi
and edi, dword [esp + 8]
mov esi, dword [esp + 0x14]
add edi, dword [esi + 0x44]
shr dword [esp + 8], cl
mov dword [esi + 0x44], edi
add dword [esi + 0x1bc8], eax
sub edx, eax
mov dword [esp], ebp
mov ebp, dword [esp + 0x70]
jmp 0x40afa9
mov edx, dword [esp]
jmp 0x40b543
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, eax
mov ebx, dword [esp + 0x10]
sub ecx, ebx
add dword [ebp + 0x14], ecx
add dword [edi + 0x20], ecx
and edx, 4
je 0x40b528
cmp eax, ebx
mov esi, ebx
mov ebx, dword [esp + 0xc]
je 0x40b612
mov edx, dword [esp + 0x24]
sub edx, ecx
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 0x1c]
je 0x40b5f7
push ecx
push edx
push eax
call fcn.00405ea0
jmp 0x40b5ff
mov ebx, eax
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov dword [edi + 0x14], eax
cmp al, 8
jne 0x40bdad
test eax, 0xe000
je 0x40b3b4
mov dword [ebp + 0x18], str.unknown_header_flags_set
mov dword [edi + 4], 0x3f51
mov eax, dword [edi + 4]
jmp 0x40a119
mov ebx, eax
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
jmp 0x40bdcb
mov ebx, eax
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 8]
movzx eax, cx
not ecx
shr ecx, 0x10
cmp eax, ecx
jne 0x40a9b3
mov dword [esp], edx
mov dword [esp + 8], 0
mov dword [edi + 0x44], eax
mov dword [edi + 4], 0x3f42
mov dword [esp + 4], 0
cmp dword [esp + 0x74], 6
je 0x40c18e
mov dword [edi + 4], 0x3f43
mov eax, edi
mov edi, dword [edi + 0x44]
test edi, edi
je 0x40a9a5
cmp edi, ebx
cmovae edi, ebx
cmp edi, esi
cmovae edi, esi
test edi, edi
je 0x40c0e7
push edi
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 4]
push ebx
mov esi, dword [esp + 0x2c]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
sub dword [esp + 0xc], edi
add ebx, edi
sub dword [esp + 0x10], edi
add esi, edi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x10]
mov edx, ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
sub dword [eax + 0x44], edi
mov edi, eax
mov eax, dword [eax + 4]
jmp 0x40a119
mov dword [eax + 4], 0x3f3f
mov edi, eax
jmp 0x40bf06
mov dword [ebp + 0x18], str.invalid_stored_block_lengths
mov dword [edi + 4], 0x3f51
mov eax, dword [edi + 4]
jmp 0x40a119
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 8]
mov ecx, esi
and ecx, 0x1f
lea eax, [ecx + 0x101]
mov ebx, dword [esp + 0x14]
mov dword [ebx + 0x64], eax
mov eax, esi
shr eax, 5
and eax, 0x1f
lea edx, [eax + 1]
mov dword [ebx + 0x68], edx
mov edx, esi
shr edx, 0xa
and edx, 0xf
add edx, 4
mov dword [esp + 0x20], edx
mov dword [ebx + 0x60], edx
shr esi, 0xe
mov dword [esp + 8], esi
add edi, 0xfffffff2
mov dword [esp + 4], edi
cmp ecx, 0x1d
ja 0x40aba2
cmp eax, 0x1e
jae 0x40aba2
mov edi, dword [esp + 0x14]
mov dword [edi + 0x6c], 0
mov dword [edi + 4], 0x3f45
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
neg ecx
mov dword [esp + 0x18], ecx
inc eax
mov ecx, dword [esp + 4]
jmp 0x40aa99
mov edx, dword [esp + 8]
mov ecx, ebx
mov ebx, edx
and ebx, 7
mov ebp, dword [esp + 0x14]
mov dword [ebp + 0x6c], eax
movzx esi, word [eax + eax + 0x6b1a4e]
mov word [ebp + esi*2 + 0x74], bx
shr edx, 3
mov dword [esp + 8], edx
add ecx, 0xfffffffd
mov edx, dword [esp + 0x18]
add edx, eax
inc edx
inc eax
cmp edx, 1
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x70]
je 0x40aac4
mov ebx, ecx
cmp ecx, 2
ja 0x40aa53
test edi, edi
mov ecx, dword [esp]
je 0x40bfe5
mov edx, ecx
movzx esi, byte [ecx]
mov ecx, ebx
shl esi, cl
dec edi
inc edx
mov dword [esp], edx
mov edx, dword [esp + 8]
add edx, esi
add ecx, 8
jmp 0x40aa59
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x14]
cmp eax, 0x12
ja 0x40ab5f
mov edx, 3
sub edx, eax
mov ecx, eax
and edx, 3
je 0x40ab00
mov ecx, eax
movzx esi, word [ecx + ecx + 0x6b1a50]
inc ecx
mov word [edi + esi*2 + 0x74], 0
dec edx
jne 0x40aaed
add eax, 0xfffffff0
cmp eax, 3
jb 0x40ab4c
add ecx, 0xffffffed
movzx eax, word [ecx + ecx + str.incorrect_header_check]
mov word [edi + eax*2 + 0x74], 0
movzx eax, word [ecx + ecx + 0x6b1a78]
mov word [edi + eax*2 + 0x74], 0
movzx eax, word [ecx + ecx + 0x6b1a7a]
mov word [edi + eax*2 + 0x74], 0
movzx eax, word [ecx + ecx + 0x6b1a7c]
mov word [edi + eax*2 + 0x74], 0
add ecx, 4
jne 0x40ab0b
mov dword [edi + 0x6c], 0x13
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
mov dword [edi + 0x70], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x58], 7
push esi
push dword [esp + 0x48]
push ebx
push 0x13
push edx
push 0
call fcn.004b61e0
add esp, 0x18
mov dword [esp + 0x1c], eax
test eax, eax
mov esi, dword [esp + 0x10]
je 0x40abb9
mov dword [ebp + 0x18], str.invalid_code_lengths_set
mov dword [edi + 4], 0x3f51
jmp 0x40b1c4
mov dword [ebp + 0x18], str.too_many_length_or_distance_symbols
mov edi, dword [esp + 0x14]
mov dword [edi + 4], 0x3f51
jmp 0x40b38b
mov dword [edi + 0x6c], 0
mov dword [edi + 4], 0x3f46
xor ecx, ecx
mov dword [esp + 0x1c], 0
mov ebp, dword [esp]
mov ebx, dword [esp + 0xc]
mov eax, dword [edi + 0x64]
mov edx, dword [edi + 0x68]
mov dword [esp + 0x50], eax
add edx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], edx
cmp ecx, edx
jae 0x40aeb7
mov dword [esp], ebp
mov dword [esp + 0xc], ebx
mov edx, dword [edi + 0x50]
movzx ecx, byte [edi + 0x58]
mov esi, 0xffffffff
shl esi, cl
not esi
mov eax, dword [esp + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 8]
and ecx, esi
movzx edx, byte [edx + ecx*4 + 1]
cmp eax, edx
jae 0x40ac63
mov edi, eax
mov ebx, dword [esp + 0xc]
mov esi, dword [esp]
mov ebp, esi
sub ebx, 1
jb 0x40bfd4
movzx edx, byte [ebp]
mov ecx, eax
shl edx, cl
inc ebp
mov ecx, dword [esp + 8]
add ecx, edx
add eax, 8
mov dword [esp + 8], ecx
and ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + ecx*4 + 1]
cmp eax, edx
jb 0x40ac31
jmp 0x40ac6a
mov ebp, dword [esp]
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
movzx edi, word [esi + ecx*4 + 2]
cmp edi, 0xf
ja 0x40ac9a
mov ecx, edx
shr dword [esp + 8], cl
sub eax, edx
mov esi, dword [esp + 0x30]
lea ecx, [esi + 1]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x6c], ecx
mov word [edx + esi*2 + 0x74], di
mov edi, edx
jmp 0x40ae98
cmp edi, 0x10
je 0x40aced
cmp edi, 0x11
jne 0x40ad48
lea edi, [edx + 3]
cmp eax, edi
jae 0x40accc
sub ebx, 1
jb 0x40c022
movzx esi, byte [ebp]
mov ecx, eax
shl esi, cl
inc ebp
add dword [esp + 8], esi
add eax, 8
cmp eax, edi
jb 0x40acaf
mov ecx, edx
mov esi, dword [esp + 8]
shr esi, cl
mov ecx, esi
and ecx, 7
add ecx, 3
shr esi, 3
mov dword [esp + 8], esi
sub eax, edx
add eax, 0xfffffffd
jmp 0x40ad88
lea edi, [edx + 2]
cmp eax, edi
jae 0x40ad11
sub ebx, 1
jb 0x40c022
movzx esi, byte [ebp]
mov ecx, eax
shl esi, cl
inc ebp
add dword [esp + 8], esi
add eax, 8
cmp eax, edi
jb 0x40acf4
mov ecx, edx
mov esi, dword [esp + 8]
shr esi, cl
sub eax, edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40bf6c
mov edi, dword [esp + 0x14]
movzx edx, word [edi + ecx*2 + 0x72]
mov ecx, esi
and ecx, 3
add ecx, 3
shr esi, 2
mov dword [esp + 8], esi
add eax, 0xfffffffe
mov dword [esp + 4], eax
jmp 0x40ad92
lea edi, [edx + 7]
cmp eax, edi
jae 0x40ad6c
sub ebx, 1
jb 0x40c022
movzx esi, byte [ebp]
mov ecx, eax
shl esi, cl
inc ebp
add dword [esp + 8], esi
add eax, 8
cmp eax, edi
jb 0x40ad4f
mov ecx, edx
mov esi, dword [esp + 8]
shr esi, cl
mov ecx, esi
and ecx, 0x7f
add ecx, 0xb
shr esi, 7
mov dword [esp + 8], esi
sub eax, edx
add eax, 0xfffffff9
xor edx, edx
mov dword [esp + 4], eax
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
lea eax, [ecx + esi]
cmp eax, dword [esp + 0x40]
ja 0x40bf3a
cmp ecx, 0x10
jb 0x40ae80
mov eax, ecx
and eax, 0xfffffff0
movd xmm0, edx
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
movdqu xmmword [edi + esi*2 + 0x74], xmm0
movdqu xmmword [edi + esi*2 + 0x84], xmm0
cmp eax, 0x10
je 0x40ae77
movdqu xmmword [edi + esi*2 + 0x94], xmm0
movdqu xmmword [edi + esi*2 + 0xa4], xmm0
cmp eax, 0x20
je 0x40ae77
movdqu xmmword [edi + esi*2 + 0xb4], xmm0
movdqu xmmword [edi + esi*2 + 0xc4], xmm0
cmp eax, 0x30
je 0x40ae77
movdqu xmmword [edi + esi*2 + 0xd4], xmm0
movdqu xmmword [edi + esi*2 + 0xe4], xmm0
cmp eax, 0x40
je 0x40ae77
movdqu xmmword [edi + esi*2 + 0xf4], xmm0
movdqu xmmword [edi + esi*2 + 0x104], xmm0
cmp eax, 0x50
je 0x40ae77
movdqu xmmword [edi + esi*2 + 0x114], xmm0
movdqu xmmword [edi + esi*2 + 0x124], xmm0
cmp eax, 0x60
je 0x40ae77
movdqu xmmword [edi + esi*2 + 0x134], xmm0
movdqu xmmword [edi + esi*2 + 0x144], xmm0
cmp eax, 0x70
je 0x40ae77
movdqu xmmword [edi + esi*2 + 0x154], xmm0
movdqu xmmword [edi + esi*2 + 0x164], xmm0
add esi, eax
cmp ecx, eax
je 0x40ae8f
and ecx, 0xf
mov eax, esi
lea esi, [eax + 1]
mov word [edi + eax*2 + 0x74], dx
mov eax, esi
dec ecx
jne 0x40ae82
mov dword [edi + 0x6c], esi
mov eax, dword [esp + 4]
mov ecx, esi
mov dword [esp + 0xc], ebx
mov dword [esp], ebp
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
jb 0x40ac17
jmp 0x40aebb
mov eax, dword [esp + 4]
mov dword [esp + 4], eax
cmp word [edi + 0x274], 0
je 0x40af15
mov eax, dword [esp + 0x48]
mov dword [edi + 0x70], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x58], 9
push dword [esp + 0x34]
push dword [esp + 0x48]
push dword [esp + 0x40]
push dword [esp + 0x5c]
mov esi, dword [esp + 0x4c]
push esi
push 1
call fcn.004b61e0
add esp, 0x18
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40b4cd
mov eax, dword [esp + 0x70]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x40b511
mov eax, dword [esp + 0x70]
mov dword [eax + 0x18], str.invalid_code____missing_end_of_block
jmp 0x40b511
lea ecx, [edi + esi*4]
movzx esi, word [ecx + 2]
mov word [esp + 0x18], si
mov ch, byte [ecx]
mov cl, al
mov ebx, dword [esp + 8]
shr ebx, cl
mov edi, dword [esp + 4]
sub edi, eax
movzx esi, dl
sub edi, esi
mov dword [esp + 4], edi
add eax, esi
mov esi, dword [esp + 0x14]
mov dword [esi + 0x1bc8], eax
movzx eax, word [esp + 0x18]
mov edi, esi
mov dword [esi + 0x44], eax
mov cl, dl
shr ebx, cl
mov dword [esp + 8], ebx
test ch, ch
je 0x40b384
movzx eax, ch
test al, 0x20
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
jne 0x40b39e
test al, 0x40
jne 0x40b79b
and eax, 0xf
mov dword [edi + 0x4c], eax
mov dword [edi + 4], 0x3f49
test eax, eax
jne 0x40a5b4
mov esi, edi
mov edi, dword [edi + 0x44]
mov edx, dword [esp + 4]
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esi + 0x1bcc], edi
mov dword [esi + 4], 0x3f4a
mov edi, esi
movzx ecx, byte [edi + 0x5c]
mov ebx, 0xffffffff
shl ebx, cl
mov esi, dword [edi + 0x54]
not ebx
mov ecx, dword [esp + 8]
and ecx, ebx
movzx edx, byte [esi + ecx*4 + 1]
movzx eax, dl
mov edi, dword [esp + 4]
cmp edi, eax
mov dword [esp + 0x18], esi
jae 0x40b03d
mov ecx, edi
mov edi, dword [esp + 0xc]
mov ebp, dword [esp]
sub edi, 1
jb 0x40bfa9
movzx eax, byte [ebp]
shl eax, cl
inc ebp
mov esi, dword [esp + 8]
add esi, eax
add ecx, 8
mov dword [esp + 8], esi
and esi, ebx
mov eax, dword [esp + 0x18]
movzx edx, byte [eax + esi*4 + 1]
movzx eax, dl
cmp ecx, eax
jb 0x40aff3
mov ebx, dword [esp + 0x18]
lea ebx, [ebx + esi*4]
mov esi, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x14]
jmp 0x40b047
lea ebx, [esi + ecx*4]
mov edi, dword [esp + 0x14]
mov esi, dword [esp]
mov dword [esp], esi
movzx esi, word [ebx + 2]
movzx ecx, byte [ebx]
cmp ecx, 0x10
jae 0x40b0f2
add ecx, eax
mov edx, 0xffffffff
shl edx, cl
movzx edi, si
not edx
mov ebx, dword [esp + 8]
mov esi, ebx
mov dword [esp + 0x20], edx
and esi, edx
mov ecx, eax
shr esi, cl
mov dword [esp + 0x30], edi
add esi, edi
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx + esi*4 + 1]
lea ecx, [eax + edx]
mov edi, dword [esp + 4]
cmp ecx, edi
jbe 0x40b10b
mov ebx, edi
mov edi, dword [esp + 0xc]
mov ebp, dword [esp]
sub edi, 1
jb 0x40bfa9
movzx edx, byte [ebp]
inc ebp
mov ecx, ebx
shl edx, cl
mov esi, dword [esp + 8]
add esi, edx
add ebx, 8
mov dword [esp + 8], esi
and esi, dword [esp + 0x20]
mov ecx, eax
shr esi, cl
add esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx + esi*4 + 1]
lea ecx, [eax + edx]
cmp ecx, ebx
ja 0x40b09b
mov ecx, dword [esp + 0x18]
lea esi, [ecx + esi*4]
mov dword [esp], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 8]
jmp 0x40b112
mov word [esp + 0x20], si
mov eax, dword [edi + 0x1bc8]
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 8]
mov edi, dword [esp + 4]
jmp 0x40b136
mov ecx, dword [esp + 0x18]
lea esi, [ecx + esi*4]
movzx ecx, word [esi + 2]
mov word [esp + 0x20], cx
mov ecx, eax
shr ebx, cl
movzx ecx, byte [esi]
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 4]
sub edi, eax
mov ecx, dword [esp + 0x14]
add eax, dword [ecx + 0x1bc8]
movzx esi, dl
mov ecx, edx
shr ebx, cl
mov dword [esp + 8], ebx
add eax, esi
mov edx, dword [esp + 0x14]
mov dword [edx + 0x1bc8], eax
sub edi, esi
mov dword [esp + 4], edi
movzx eax, byte [esp + 0x18]
test al, 0x40
jne 0x40b1b0
movzx ecx, word [esp + 0x20]
mov dword [edx + 0x48], ecx
and eax, 0xf
mov dword [edx + 0x4c], eax
mov dword [edx + 4], 0x3f4b
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov edi, edx
test eax, eax
je 0x40b1d3
mov edx, dword [esp + 4]
cmp edx, eax
mov ecx, dword [esp]
jae 0x40b1d9
mov edi, ebx
mov ebp, ecx
sub ebx, 1
jb 0x40bffe
movzx esi, byte [ebp]
mov ecx, edx
shl esi, cl
inc ebp
add dword [esp + 8], esi
mov ecx, dword [esp]
add edx, 8
cmp edx, eax
jb 0x40b18e
jmp 0x40b1db
mov dword [ebp + 0x18], 0x6b1be3
mov dword [edx + 4], 0x3f51
mov esi, dword [esp + 0x10]
mov edi, edx
mov edx, dword [esp]
mov ebx, dword [esp + 0xc]
mov eax, dword [edi + 4]
jmp 0x40a119
mov eax, dword [esp + 4]
jmp 0x40b20a
mov ebp, ecx
mov esi, 0xffffffff
mov ecx, eax
shl esi, cl
not esi
and esi, dword [esp + 8]
mov edi, dword [esp + 0x14]
add dword [edi + 0x48], esi
shr dword [esp + 8], cl
add dword [edi + 0x1bc8], eax
sub edx, eax
mov dword [esp], ebp
mov eax, edx
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
mov dword [edi + 4], 0x3f4c
mov edx, dword [esp + 0x28]
mov dword [esp + 4], eax
test esi, esi
je 0x40c0a2
sub edx, esi
mov eax, dword [edi + 0x48]
mov ecx, eax
sub ecx, edx
jbe 0x40b24d
cmp ecx, dword [edi + 0x30]
jbe 0x40b260
cmp dword [edi + 0x1bc4], 0
je 0x40b260
mov dword [ebp + 0x18], 0x6b1bf9
mov dword [edi + 4], 0x3f51
jmp 0x40bf06
mov dword [esp + 0xc], ebx
mov edx, esi
mov ebx, dword [esp + 0x24]
sub ebx, eax
mov ecx, dword [edi + 0x44]
mov ebp, ecx
jmp 0x40b288
mov dword [esp + 0xc], ebx
mov edx, esi
mov ebx, dword [edi + 0x34]
mov ebp, ecx
sub ebp, ebx
jbe 0x40b279
mov ebx, dword [edi + 0x2c]
sub ebx, ebp
add ebx, dword [edi + 0x38]
jmp 0x40b280
sub ebx, ecx
add ebx, dword [edi + 0x38]
mov ebp, ecx
mov ecx, dword [edi + 0x44]
cmp ebp, ecx
cmovae ebp, ecx
cmp ebp, edx
cmovae ebp, edx
sub ecx, ebp
mov dword [edi + 0x44], ecx
cmp ebp, 0x10
jb 0x40b2d8
mov eax, dword [esp + 0x24]
mov ecx, eax
sub ecx, ebx
cmp ecx, 0x10
jb 0x40b2de
mov edi, ebp
and edi, 0xfffffff0
lea ecx, [eax + edi]
mov edx, ebp
and edx, 0xf
mov dword [esp + 0x18], edx
lea edx, [ebx + edi]
xor esi, esi
movdqu xmm0, xmmword [ebx + esi]
movdqu xmmword [eax + esi], xmm0
add esi, 0x10
cmp edi, esi
jne 0x40b2ba
cmp ebp, edi
mov eax, dword [esp + 0x18]
jne 0x40b2e4
jmp 0x40b35c
mov ecx, dword [esp + 0x24]
jmp 0x40b2e0
mov ecx, eax
mov eax, ebp
mov edx, ebx
mov edi, eax
and edi, 7
je 0x40b303
xor esi, esi
movzx ebx, byte [edx + esi]
mov byte [ecx + esi], bl
inc esi
cmp edi, esi
jne 0x40b2ed
add ecx, esi
mov ebx, eax
sub ebx, esi
add edx, esi
jmp 0x40b305
mov ebx, eax
dec eax
cmp eax, 7
jb 0x40b35c
xor edi, edi
movzx eax, byte [edx + edi]
mov byte [ecx + edi], al
movzx eax, byte [edx + edi + 1]
mov byte [ecx + edi + 1], al
movzx eax, byte [edx + edi + 2]
mov byte [ecx + edi + 2], al
movzx eax, byte [edx + edi + 3]
mov byte [ecx + edi + 3], al
movzx eax, byte [edx + edi + 4]
mov byte [ecx + edi + 4], al
movzx eax, byte [edx + edi + 5]
mov byte [ecx + edi + 5], al
movzx eax, byte [edx + edi + 6]
mov byte [ecx + edi + 6], al
movzx eax, byte [edx + edi + 7]
mov byte [ecx + edi + 7], al
add edi, 8
cmp ebx, edi
jne 0x40b30d
add ecx, edi
mov esi, dword [esp + 0x10]
sub esi, ebp
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x44], 0
jne 0x40b373
mov dword [edi + 4], 0x3f48
mov dword [esp + 0x24], ecx
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0xc]
jmp 0x40bf06
mov dword [edi + 4], 0x3f4d
mov edx, dword [esp]
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 4]
jmp 0x40a119
mov dword [edi + 0x1bc8], 0xffffffff
mov dword [edi + 4], 0x3f3f
jmp 0x40bf06
mov dword [esp + 0xc], ebx
mov ebx, ebp
mov ebp, edx
mov eax, dword [edi + 0x24]
test eax, eax
mov edx, dword [esp + 8]
je 0x40b3d1
mov ecx, edx
shr ecx, 8
and ecx, 1
mov dword [eax], ecx
test edx, 0x200
je 0x40b3fd
test byte [edi + 0xc], 4
je 0x40b3fd
mov eax, dword [esp + 8]
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2c]
push 2
push eax
push dword [edi + 0x1c]
call fcn.00405ea0
add esp, 0xc
mov dword [edi + 0x1c], eax
mov dword [edi + 4], 0x3f36
xor ecx, ecx
mov dword [esp + 8], 0
mov edx, ebp
mov ebp, ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
mov dword [esp], edx
je 0x40c155
mov eax, ebx
mov ebp, edx
movzx edx, byte [edx]
shl edx, cl
mov dword [esp + 0xc], ebx
lea eax, [ebx - 1]
add dword [esp + 8], edx
lea edx, [ebp + 1]
cmp ecx, 0x17
ja 0x40b7b0
mov ebx, ecx
add ecx, 8
test eax, eax
je 0x40c17f
mov ebp, dword [esp]
movzx edx, byte [ebp + 1]
shl edx, cl
mov eax, dword [esp + 0xc]
add eax, 0xfffffffe
add dword [esp + 8], edx
lea edx, [ebp + 2]
cmp ebx, 0xf
ja 0x40b7b0
mov ecx, ebx
lea ecx, [ebx + 0x10]
test eax, eax
je 0x40c17f
mov ebp, dword [esp]
movzx edx, byte [ebp + 2]
shl edx, cl
mov eax, dword [esp + 0xc]
add eax, 0xfffffffd
add dword [esp + 8], edx
mov edx, ebp
add ebp, 3
mov ecx, ebx
cmp ebx, 7
ja 0x40b7ae
mov dword [esp + 0x18], ebp
add ebx, 0x18
mov ecx, ebx
test eax, eax
mov ebp, dword [esp + 0x70]
je 0x40c41f
mov ebx, dword [esp + 0xc]
add ebx, 0xfffffffc
movzx eax, byte [edx + 3]
add edx, 4
shl eax, cl
add dword [esp + 8], eax
jmp 0x40b7b6
mov eax, dword [edi + 0x70]
mov dword [edi + 0x54], eax
mov dword [edi + 0x5c], 6
mov eax, dword [edi + 0x64]
lea eax, [esi + eax*2]
push dword [esp + 0x34]
push dword [esp + 0x58]
push dword [esp + 0x40]
push dword [edi + 0x68]
push eax
push 2
call fcn.004b61e0
add esp, 0x18
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40bcf4
mov eax, dword [esp + 0x70]
mov dword [eax + 0x18], str.invalid_distances_set
mov dword [edi + 4], 0x3f51
mov edx, ebp
mov ebp, eax
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 4]
jmp 0x40a119
mov esi, ebx
mov ebx, dword [esp + 0xc]
jmp 0x40b612
mov ebx, edx
mov edx, esi
mov dword [esp + 4], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test al, 2
je 0x40b5ad
cmp dword [esp + 8], 0x8b1f
jne 0x40b5ad
mov dword [esp + 0xc], ebx
mov ebx, ebp
mov ebp, edx
cmp dword [edi + 0x28], 0
jne 0x40b566
mov dword [edi + 0x28], 0xf
push 0
push 0
push 0
call fcn.00405ea0
add esp, 0xc
mov dword [edi + 0x1c], eax
mov word [esp + 0x2c], 0x8b1f
lea ecx, [esp + 0x2c]
push 2
push ecx
push eax
call fcn.00405ea0
add esp, 0xc
mov dword [edi + 0x1c], eax
mov dword [edi + 4], 0x3f35
mov dword [esp + 8], 0
mov dword [esp + 4], 0
jmp 0x40bcc8
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x40b5bb
mov dword [ecx + 0x30], 0xffffffff
test al, 1
je 0x40b5e1
mov ecx, dword [esp + 8]
mov eax, ecx
shl eax, 8
movzx eax, ax
shr ecx, 8
add ecx, eax
imul eax, ecx, 0xbdef7bdf
cmp eax, 0x8421085
jb 0x40bd13
mov dword [ebp + 0x18], str.incorrect_header_check
mov dword [edi + 4], 0x3f51
mov eax, dword [edi + 4]
jmp 0x40a119
push ecx
push edx
push eax
call fcn.004b3460
add esp, 0xc
mov dword [edi + 0x1c], eax
mov dword [ebp + 0x30], eax
mov edx, dword [edi + 0xc]
mov dword [esp + 0x20], edx
and edx, 4
test edx, edx
je 0x40b648
cmp dword [edi + 0x14], 0
mov eax, dword [esp + 8]
mov ecx, eax
bswap ecx
cmovne ecx, eax
cmp ecx, dword [edi + 0x1c]
mov eax, dword [esp + 0x20]
jne 0x40b784
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x28], esi
jmp 0x40b660
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x20]
mov dword [edi + 4], 0x3f4f
test eax, eax
je 0x40c06b
cmp dword [edi + 0x14], 0
je 0x40c06b
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 4]
cmp ecx, 0x1f
ja 0x40b758
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x40c09b
mov dword [esp + 0xc], ebx
lea edx, [ebx - 1]
mov eax, dword [esp]
movzx edi, byte [eax]
mov ecx, dword [esp + 4]
shl edi, cl
lea ebx, [eax + 1]
mov eax, ecx
add dword [esp + 8], edi
add ecx, 8
cmp eax, 0x17
ja 0x40b747
test edx, edx
je 0x40c13b
mov eax, dword [esp + 0xc]
lea edx, [eax - 2]
mov eax, dword [esp]
movzx edi, byte [eax + 1]
shl edi, cl
lea ebx, [eax + 2]
add dword [esp + 8], edi
mov eax, dword [esp + 4]
lea ecx, [eax + 0x10]
cmp eax, 0xf
ja 0x40b747
test edx, edx
je 0x40c13b
mov eax, dword [esp + 0xc]
lea edx, [eax - 3]
mov eax, dword [esp]
movzx edi, byte [eax + 2]
shl edi, cl
lea ebx, [eax + 3]
add dword [esp + 8], edi
mov eax, dword [esp + 4]
lea ecx, [eax + 0x18]
cmp eax, 7
ja 0x40b747
test edx, edx
mov edi, dword [esp + 0x14]
je 0x40c417
mov eax, dword [esp]
movzx edx, byte [eax + 3]
shl edx, cl
mov ebx, dword [esp + 0xc]
add ebx, 0xfffffffc
add eax, 4
mov dword [esp], eax
add dword [esp + 8], edx
mov ecx, dword [esp + 4]
add ecx, 0x20
jmp 0x40b750
mov dword [esp], ebx
mov ebx, edx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
test al, 4
je 0x40c07f
mov dword [esp + 4], ecx
mov eax, dword [esp + 8]
cmp eax, dword [edi + 0x20]
je 0x40c07f
mov dword [ebp + 0x18], str.incorrect_length_check
mov dword [edi + 4], 0x3f51
jmp 0x40bf06
mov dword [ebp + 0x18], str.incorrect_data_check
mov dword [edi + 4], 0x3f51
mov dword [esp + 0x28], esi
jmp 0x40bf06
mov dword [ebp + 0x18], 0x6b1bc7
mov dword [edi + 4], 0x3f51
jmp 0x40bf06
mov edx, ebp
mov ebp, dword [esp + 0x70]
mov ebx, eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40b7c4
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
test byte [edi + 0x15], 2
je 0x40b7fd
test byte [edi + 0xc], 4
je 0x40b7fd
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push 4
push eax
push dword [edi + 0x1c]
mov esi, ebx
mov ebx, ebp
mov ebp, edx
call fcn.00405ea0
mov edx, ebp
mov ebp, ebx
mov ebx, esi
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x1c], eax
mov dword [edi + 4], 0x3f37
xor ecx, ecx
mov dword [esp + 8], 0
test ebx, ebx
je 0x40c0d1
mov ebp, edx
movzx edx, byte [edx]
shl edx, cl
lea eax, [ebx - 1]
add dword [esp + 8], edx
lea edx, [ebp + 1]
cmp ecx, 7
ja 0x40b851
add ecx, 8
test eax, eax
je 0x40c143
mov esi, ebx
mov ebx, ebp
add esi, 0xfffffffe
mov edx, ebp
mov ebx, esi
movzx eax, byte [ebp + 1]
add edx, 2
shl eax, cl
add dword [esp + 8], eax
jmp 0x40b853
mov ebx, eax
mov ebp, dword [esp + 0x70]
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40b87c
mov esi, ebx
mov ebx, ebp
mov ebp, edx
mov edx, dword [esp + 8]
movzx ecx, dl
mov dword [eax + 8], ecx
mov ecx, edx
mov edx, ebp
mov ebp, ebx
mov ebx, esi
shr ecx, 8
mov dword [eax + 0xc], ecx
mov dword [esp + 0xc], ebx
test byte [edi + 0x15], 2
je 0x40b8ae
test byte [edi + 0xc], 4
je 0x40b8ae
mov eax, dword [esp + 8]
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2c]
push 2
push eax
push dword [edi + 0x1c]
mov esi, edx
call fcn.00405ea0
mov edx, esi
add esp, 0xc
mov dword [edi + 0x1c], eax
mov dword [edi + 4], 0x3f38
mov eax, dword [edi + 0x14]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ebx, 0
test eax, 0x400
jne 0x40b8ee
mov dword [esp], edx
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40b994
mov dword [eax + 0x10], 0
jmp 0x40b994
mov edi, dword [esp + 0xc]
test edi, edi
mov dword [esp], edx
je 0x40c168
mov esi, edx
movzx edx, byte [edx]
mov ecx, dword [esp + 4]
shl edx, cl
dec edi
mov ebx, dword [esp + 8]
add ebx, edx
lea edx, [esi + 1]
cmp ecx, 7
ja 0x40b93d
add ecx, 8
test edi, edi
je 0x40c15d
add dword [esp + 0xc], 0xfffffffe
mov esi, dword [esp]
movzx edx, byte [esi + 1]
add esi, 2
shl edx, cl
add ebx, edx
mov dword [esp + 8], ebx
mov edx, esi
jmp 0x40b945
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x14]
mov esi, edx
mov edx, dword [esp + 8]
mov dword [edi + 0x44], edx
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x40b95c
mov dword [ecx + 0x14], edx
xor ebx, ebx
test eax, 0x200
mov dword [esp], esi
je 0x40b98c
test byte [edi + 0xc], 4
je 0x40b98c
mov eax, dword [esp + 8]
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2c]
push 2
push eax
push dword [edi + 0x1c]
call fcn.00405ea0
add esp, 0xc
mov dword [edi + 0x1c], eax
mov dword [esp + 4], 0
mov dword [edi + 4], 0x3f39
mov dword [esp + 8], ebx
mov eax, dword [edi + 0x14]
test eax, 0x400
jne 0x40b9b9
mov esi, dword [esp + 0x10]
mov edx, dword [esp]
mov ebx, dword [esp + 0xc]
jmp 0x40ba4c
mov ecx, dword [edi + 0x44]
mov ebx, dword [esp + 0xc]
cmp ecx, ebx
cmovb ebx, ecx
test ebx, ebx
mov edx, dword [esp]
je 0x40ba3c
mov edi, dword [edi + 0x24]
test edi, edi
je 0x40ba06
mov edx, dword [edi + 0x10]
test edx, edx
je 0x40ba06
mov esi, dword [edi + 0x14]
mov edi, dword [edi + 0x18]
sub esi, ecx
mov ecx, edi
sub ecx, esi
jbe 0x40ba06
add edx, esi
add esi, ebx
cmp esi, edi
cmovbe ecx, ebx
push ecx
push dword [esp + 4]
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
test eax, 0x200
mov edi, dword [esp + 0x14]
mov edx, dword [esp]
je 0x40ba2e
test byte [edi + 0xc], 4
je 0x40ba2e
push ebx
push edx
push dword [edi + 0x1c]
mov esi, edx
call fcn.00405ea0
mov edx, esi
add esp, 0xc
mov dword [edi + 0x1c], eax
sub dword [esp + 0xc], ebx
add edx, ebx
mov ecx, dword [edi + 0x44]
sub ecx, ebx
mov dword [edi + 0x44], ecx
test ecx, ecx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
jne 0x40c037
mov dword [edi + 0x44], 0
mov dword [edi + 4], 0x3f3a
test byte [edi + 0x15], 8
jne 0x40ba77
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40bb0d
mov dword [eax + 0x1c], 0
jmp 0x40bb0d
test ebx, ebx
je 0x40c035
mov esi, edi
mov edi, ebx
xor ebx, ebx
nop word cs:[eax + eax]
mov ebp, edx
movzx eax, byte [edx + ebx]
mov byte [esp], al
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x40bac0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x40bac0
mov edx, dword [esi + 0x44]
cmp edx, dword [ecx + 0x20]
jae 0x40bac0
lea ecx, [edx + 1]
mov dword [esi + 0x44], ecx
movzx ecx, byte [esp]
mov byte [eax + edx], cl
nop dword [eax]
inc ebx
cmp byte [esp], 0
mov edx, ebp
je 0x40bacd
cmp ebx, edi
jb 0x40ba90
test byte [esi + 0x15], 2
je 0x40baf1
mov eax, esi
test byte [esi + 0xc], 4
je 0x40baf1
push ebx
push edx
push dword [eax + 0x1c]
call fcn.00405ea0
mov edx, ebp
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x1c], eax
cmp byte [esp], 0
jne 0x40c046
sub edi, ebx
add edx, ebx
mov ebx, edi
mov eax, dword [esp + 0x10]
mov edi, esi
mov esi, eax
mov ebp, dword [esp + 0x70]
mov dword [edi + 0x44], 0
mov dword [edi + 4], 0x3f3b
test byte [edi + 0x15], 0x10
jne 0x40bb38
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40bbcd
mov dword [eax + 0x24], 0
jmp 0x40bbcd
test ebx, ebx
je 0x40c035
mov esi, edi
mov edi, ebx
xor ebx, ebx
nop word cs:[eax + eax]
mov ebp, edx
movzx eax, byte [edx + ebx]
mov byte [esp], al
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x40bb80
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x40bb80
mov edx, dword [esi + 0x44]
cmp edx, dword [ecx + 0x28]
jae 0x40bb80
lea ecx, [edx + 1]
mov dword [esi + 0x44], ecx
movzx ecx, byte [esp]
mov byte [eax + edx], cl
nop dword [eax]
inc ebx
cmp byte [esp], 0
mov edx, ebp
je 0x40bb8d
cmp ebx, edi
jb 0x40bb50
test byte [esi + 0x15], 2
je 0x40bbb1
mov eax, esi
test byte [esi + 0xc], 4
je 0x40bbb1
push ebx
push edx
push dword [eax + 0x1c]
call fcn.00405ea0
mov edx, ebp
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x1c], eax
cmp byte [esp], 0
jne 0x40c046
sub edi, ebx
add edx, ebx
mov ebx, edi
mov eax, dword [esp + 0x10]
mov edi, esi
mov esi, eax
mov ebp, dword [esp + 0x70]
mov dword [edi + 4], 0x3f3c
mov eax, dword [edi + 0x14]
test eax, 0x200
mov dword [esp + 0xc], ebx
jne 0x40bbe9
mov ebx, ebp
jmp 0x40bc94
cmp dword [esp + 4], 0xf
ja 0x40bc44
test ebx, ebx
mov dword [esp], edx
je 0x40c09b
mov esi, edx
lea edx, [ebx - 1]
movzx edi, byte [esi]
mov ecx, dword [esp + 4]
shl edi, cl
inc esi
add dword [esp + 8], edi
lea edi, [ecx + 8]
cmp ecx, 7
ja 0x40bc4a
mov ecx, edi
test edx, edx
mov edi, dword [esp + 0x14]
je 0x40c0df
mov ebx, ebp
mov esi, dword [esp]
movzx edx, byte [esi + 1]
shl edx, cl
add dword [esp + 0xc], 0xfffffffe
add esi, 2
mov ebp, esi
add dword [esp + 8], edx
add dword [esp + 4], 0x10
jmp 0x40bc5a
mov ebx, ebp
mov ebp, edx
jmp 0x40bc5e
mov ebx, ebp
mov ebp, esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test byte [edi + 0xc], 4
jne 0x40bc78
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edx, ebp
jmp 0x40bc94
movzx ecx, word [edi + 0x1c]
cmp dword [esp + 8], ecx
mov edx, ebp
jne 0x40bcd8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ebp, edx
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x40bcad
shr eax, 9
and eax, 1
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], 1
push 0
push 0
push 0
call fcn.00405ea0
add esp, 0xc
mov dword [edi + 0x1c], eax
mov dword [ebx + 0x30], eax
mov dword [edi + 4], 0x3f3f
mov edx, ebp
mov ebp, ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [edi + 4]
jmp 0x40a119
mov ebp, ebx
mov dword [ebx + 0x18], str.header_crc_mismatch
mov dword [edi + 4], 0x3f51
mov ebx, dword [esp + 0xc]
mov eax, dword [edi + 4]
jmp 0x40a119
mov dword [esp + 0x1c], 0
mov dword [edi + 4], 0x3f47
cmp dword [esp + 0x74], 6
jne 0x40a480
jmp 0x40c431
mov eax, dword [esp + 8]
and eax, 0xf
cmp eax, 8
jne 0x40bdad
mov dword [esp + 0xc], ebx
mov dword [esp], edx
mov ebx, esi
mov eax, dword [esp + 8]
shr eax, 4
mov ecx, eax
and ecx, 0xf
lea edx, [ecx + 8]
mov esi, dword [edi + 0x28]
test esi, esi
jne 0x40bd47
mov dword [edi + 0x28], edx
mov esi, edx
cmp ecx, 7
ja 0x40bf4a
cmp edx, esi
ja 0x40bf4a
mov eax, 0x100
shl eax, cl
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], 0
push 0
push 0
push 0
call fcn.004b3460
add esp, 0xc
mov dword [edi + 0x1c], eax
mov ebp, dword [esp + 0x70]
mov dword [ebp + 0x30], eax
xor eax, eax
test dword [esp + 8], 0x2000
sete al
lea eax, [eax + eax + 0x3f3d]
mov dword [edi + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
jmp 0x40bf65
mov dword [ebp + 0x18], str.unknown_compression_method
mov dword [edi + 4], 0x3f51
mov eax, dword [edi + 4]
jmp 0x40a119
mov edx, ebx
mov ebx, eax
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 8]
bswap eax
mov dword [edi + 0x1c], eax
mov dword [ebp + 0x30], eax
mov dword [edi + 4], 0x3f3e
mov dword [esp + 8], 0
mov dword [esp + 4], 0
cmp dword [edi + 0x10], 0
je 0x40c0a9
push 0
push 0
push 0
mov esi, ebx
mov ebx, ebp
mov ebp, edx
call fcn.004b3460
mov edx, ebp
mov ebp, ebx
mov ebx, esi
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x1c], eax
mov dword [ebp + 0x30], eax
mov dword [edi + 4], 0x3f3f
cmp dword [esp + 0x58], 2
jb 0x40c037
cmp dword [edi + 8], 0
je 0x40be57
mov eax, dword [esp + 4]
mov ecx, eax
and cl, 7
shr dword [esp + 8], cl
and eax, 0xfffffff8
mov dword [esp + 4], eax
mov dword [edi + 4], 0x3f4e
mov eax, dword [edi + 4]
jmp 0x40a119
cmp dword [esp + 4], 3
jae 0x40be85
test ebx, ebx
je 0x40c0d5
mov esi, edi
movzx eax, byte [edx]
mov ecx, dword [esp + 4]
shl eax, cl
dec ebx
inc edx
mov dword [esp], edx
mov edi, dword [esp + 8]
add edi, eax
add ecx, 8
mov dword [esp + 4], ecx
jmp 0x40be8e
mov dword [esp], edx
mov esi, edi
mov edi, dword [esp + 8]
mov eax, edi
and eax, 1
mov dword [esi + 8], eax
mov edx, edi
mov eax, edi
shr eax, 1
and eax, 3
jmp dword [eax*4 + 0x6b1a40]
mov eax, 0x3f41
jmp 0x40bef1
mov edi, esi
mov dword [esi + 0x50], 0x6b1c44
mov dword [esi + 0x58], 9
mov dword [esi + 0x54], 0x6b2444
mov dword [esi + 0x5c], 5
mov dword [esi + 4], 0x3f47
cmp dword [esp + 0x74], 6
jne 0x40bef6
jmp 0x40c1ac
mov eax, 0x3f44
jmp 0x40bef1
mov dword [ebp + 0x18], str.invalid_block_type
mov eax, 0x3f51
mov edi, esi
mov dword [esi + 4], eax
shr edx, 3
mov dword [esp + 8], edx
add dword [esp + 4], 0xfffffffd
mov esi, dword [esp + 0x10]
mov edx, dword [esp]
mov eax, dword [edi + 4]
jmp 0x40a119
test eax, eax
mov esi, dword [esp + 0x10]
je 0x40c456
mov edx, dword [esp]
movzx eax, byte [edx + 3]
shl eax, cl
add ebx, 0xfffffffc
add edx, 4
add dword [esp + 8], eax
add dword [esp + 4], 0x20
jmp 0x40a905
mov eax, dword [esp + 0x70]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x40b511
add dword [esp + 4], 0xfffffffc
mov ebp, dword [esp + 0x70]
mov dword [ebp + 0x18], str.invalid_window_size
mov dword [edi + 4], 0x3f51
mov dword [esp + 8], eax
mov esi, ebx
jmp 0x40b1c4
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x70]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
mov edi, dword [esp + 0x14]
mov dword [edi + 4], 0x3f51
mov edx, ebp
mov ebp, ecx
mov dword [esp + 4], eax
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 4]
jmp 0x40a119
cmp dword [ebp + 4], 0
jne 0x40c3cc
jmp 0x40a099
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea edx, [edx + eax*8]
mov ecx, dword [esp]
add ecx, eax
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x40c1eb
mov eax, dword [esp + 0xc]
mov edx, edi
lea edx, [edi + eax*8]
add esi, eax
xor ebx, ebx
mov ecx, esi
jmp 0x40c009
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x10]
mov edx, ebx
xor ebx, ebx
mov edi, dword [esp + 0x14]
jmp 0x40c1eb
mov edx, dword [esp + 4]
lea edx, [edx + edi*8]
add ecx, edi
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x40c1eb
xor ebx, ebx
mov ecx, ebp
mov edx, eax
jmp 0x40bfbb
mov edx, dword [esp + 4]
lea edx, [edx + edi*8]
add ecx, edi
jmp 0x40bfb9
xor ebx, ebx
mov ecx, edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jmp 0x40c1e7
add edx, ebx
sub edi, ebx
mov ebx, edi
mov ecx, edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov edi, esi
mov esi, eax
mov ebp, dword [esp + 0x70]
jmp 0x40c1eb
mov dword [esp + 0x18], 1
mov dword [edi + 4], 0x3f50
jmp 0x40c1e4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [edi + 4], 0x3f50
jmp 0x40c1e4
xor ebx, ebx
jmp 0x40c1dc
xor esi, esi
mov ecx, dword [esp]
jmp 0x40c039
mov eax, dword [esp + 0x24]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], esi
mov dword [ebp], edx
mov dword [ebp + 4], ebx
mov eax, dword [esp + 8]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 4]
mov dword [edi + 0x40], eax
mov esi, 2
jmp 0x40c3cc
mov dword [esp + 4], ecx
mov dword [esp], edx
xor ebx, ebx
jmp 0x40c1dc
mov dword [esp], esi
jmp 0x40c177
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x14]
jmp 0x40c1e4
xor ebx, ebx
jmp 0x40c1d4
mov esi, 0xfffffffe
jmp 0x40c3cc
mov dword [esp + 0x18], 1
jmp 0x40c1e4
mov dword [esp + 0x1c], 0xfffffffd
jmp 0x40c1dc
mov esi, 0xfffffffc
jmp 0x40c3cc
xor ebx, ebx
jmp 0x40c1d8
xor esi, esi
jmp 0x40c1dc
mov dword [esp], ebx
jmp 0x40c1ce
mov dword [esp + 4], ecx
mov dword [esp], edx
xor ebx, ebx
mov ebp, dword [esp + 0x70]
jmp 0x40c1d8
mov dword [esp + 4], ecx
xor ebx, ebx
jmp 0x40c1dc
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp], edx
xor ebx, ebx
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x40c1dc
mov dword [esp], edx
xor ebx, ebx
mov dword [esp + 4], ecx
jmp 0x40c1d8
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0x70]
xor ebx, ebx
jmp 0x40c1dc
xor edx, edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ecx, dword [esp]
jmp 0x40c1eb
mov dword [esp], edx
xor ebx, ebx
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0x70]
jmp 0x40c1dc
shr edx, 3
mov dword [esp + 8], edx
mov edx, dword [esp + 4]
add edx, 0xfffffffd
mov ecx, dword [esp]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x10]
jmp 0x40c1eb
mov dword [esp], edx
xor ebx, ebx
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x24]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], esi
mov dword [ebp], ecx
mov dword [ebp + 4], ebx
mov eax, dword [esp + 8]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], edx
cmp dword [edi + 0x2c], 0
je 0x40c2af
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x40c23b
movzx ecx, byte [ebx + 0x28]
mov eax, 1
shl eax, cl
push 1
push eax
push dword [ebp + 0x28]
call dword [ebp + 0x20]
add esp, 0xc
mov dword [ebx + 0x38], eax
test eax, eax
je 0x40c409
mov ebp, dword [esp + 0x28]
sub ebp, esi
mov edi, dword [ebx + 0x2c]
test edi, edi
jne 0x40c264
movzx ecx, byte [ebx + 0x28]
mov edi, 1
shl edi, cl
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov esi, ebx
cmp edi, ebp
mov ebx, dword [esp + 0x24]
jbe 0x40c2d6
mov ecx, dword [esi + 0x34]
sub edi, ecx
cmp edi, ebp
mov edx, ebp
cmovb edx, edi
add eax, ecx
mov ecx, ebx
sub ecx, ebp
mov dword [esp + 8], edx
push edx
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp edi, ebp
jae 0x40c3d6
sub ebp, dword [esp + 8]
sub ebx, ebp
push ebp
push ebx
push dword [esi + 0x38]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi + 0x34], ebp
jmp 0x40c2ea
cmp dword [esp + 0x28], esi
je 0x40c2f8
mov eax, dword [edi + 4]
cmp eax, 0x3f50
ja 0x40c2f8
cmp dword [esp + 0x74], 4
jne 0x40c20f
cmp eax, 0x3f4d
ja 0x40c2f8
jmp 0x40c20f
sub ebx, edi
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov esi, dword [ebp + 4]
mov edx, edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x4c]
sub eax, esi
add dword [ebp + 8], eax
mov ebp, dword [esp + 0x28]
mov eax, ebp
sub eax, edi
add dword [ecx + 0x14], eax
add dword [edx + 0x20], eax
test byte [edx + 0xc], 4
je 0x40c360
cmp ebp, edi
je 0x40c360
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0xc]
sub edx, eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x14], 0
mov ecx, dword [ecx + 0x1c]
je 0x40c343
push eax
push edx
push ecx
call fcn.00405ea0
jmp 0x40c34b
push eax
push edx
push ecx
call fcn.004b3460
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esp + 0x70]
mov dword [ecx + 0x30], eax
mov ebp, dword [esp + 0x28]
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 8], 0
setne al
shl eax, 6
add eax, dword [ecx + 0x40]
mov edx, dword [ecx + 4]
xor ecx, ecx
cmp edx, 0x3f3f
sete cl
shl ecx, 7
cmp edx, 0x3f47
sete bl
cmp edx, 0x3f42
sete dl
or dl, bl
movzx edx, dl
shl edx, 8
add edx, ecx
add edx, eax
mov ebx, dword [esp + 0x4c]
xor ebx, esi
xor ebp, edi
mov esi, dword [esp + 0x18]
test esi, esi
mov eax, 0xfffffffb
cmovne eax, esi
mov ecx, dword [esp + 0x70]
mov dword [ecx + 0x2c], edx
or ebp, ebx
cmove esi, eax
cmp dword [esp + 0x74], 4
cmove esi, eax
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x34]
mov ebx, dword [esp + 8]
add ecx, ebx
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
xor edi, edi
cmp ecx, edx
cmovne edi, ecx
mov dword [esi + 0x34], edi
cmp eax, edx
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x14]
jae 0x40c2f8
add eax, ebx
mov dword [esi + 0x30], eax
jmp 0x40c2f8
mov dword [edi + 4], 0x3f52
mov esi, 0xfffffffc
jmp 0x40c3cc
mov dword [esp], ebx
jmp 0x40c177
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x18]
mov dword [esp], eax
xor ebx, ebx
jmp 0x40c1dc
mov ecx, ebp
mov dword [esp + 0x18], 0
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
jmp 0x40c1e7
mov dword [esp + 4], ecx
mov dword [esp], ebx
xor ebx, ebx
jmp 0x40c1dc
mov dword [esp], edx
xor ebx, ebx
mov dword [esp + 4], ecx
jmp 0x40c1dc