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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x40024cf0
mov esi, dword [eax + 0x1c]
cmp esi, edi
je 0x40024cf0
mov dword [eax + 0x18], edi
mov dword [esi], 0xb
mov dword [esi + 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [eax]
cmp ecx, edi
mov dword [ebp - 4], ecx
je 0x4002423c
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jmp 0x4002423f
mov dword [ebp - 8], edi
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x28]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
sub eax, 0xb
je 0x40024bf4
dec eax
dec eax
je 0x40024af5
dec eax
dec eax
je 0x400242b7
sub eax, 3
je 0x400246a7
sub eax, 8
je 0x40024cb5
dec eax
je 0x40024cb1
push 0xfffffffffffffffe
jmp 0x40024cdc
cmp dword [ebp - 8], 0
jne 0x400242a2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
cmp edi, 0xe
jb 0x40024285
mov eax, ebx
and eax, 0x1f
add eax, 0x101
mov dword [esi + 0x60], eax
shr ebx, 5
mov eax, ebx
and eax, 0x1f
inc eax
shr ebx, 5
mov dword [esi + 0x64], eax
mov eax, ebx
and eax, 0xf
add eax, 4
shr ebx, 4
sub edi, 0xe
cmp dword [esi + 0x60], 0x11e
mov dword [esi + 0x5c], eax
ja 0x40024ae9
cmp dword [esi + 0x64], 0x1e
ja 0x40024ae9
and dword [esi + 0x68], 0
test eax, eax
jbe 0x4002437f
jmp 0x4002433c
cmp dword [ebp - 8], 0
jne 0x40024327
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
cmp edi, 3
jb 0x4002430a
mov ecx, dword [esi + 0x68]
movzx ecx, word [ecx*2 + 0x40030410]
xor eax, eax
mov al, bl
shr ebx, 3
sub edi, 3
and eax, 7
mov word [esi + ecx*2 + 0x70], ax
inc dword [esi + 0x68]
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 0x5c]
jb 0x4002433c
jmp 0x4002437f
mov eax, dword [esi + 0x68]
movzx eax, word [eax*2 + 0x40030410]
and word [esi + eax*2 + 0x70], 0
inc dword [esi + 0x68]
cmp dword [esi + 0x68], 0x13
jb 0x4002436b
lea eax, [esi + 0x530]
lea ecx, [esi + 0x6c]
mov dword [ecx], eax
mov dword [esi + 0x4c], eax
lea edx, [esi + 0x2f0]
push edx
lea eax, [esi + 0x54]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [esi + 0x70]
push eax
push 0
call fcn.40011745
add esp, 0x18
test eax, eax
je 0x400243c8
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x40024b53
mov eax, dword [esi + 0x64]
and dword [esi + 0x68], 0
add eax, dword [esi + 0x60]
je 0x40024612
jmp 0x4002440c
cmp dword [ebp - 8], 0
jne 0x400243f7
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
mov ecx, dword [esi + 0x54]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x4c]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0x10], eax
ja 0x400243da
cmp word [ebp - 0xe], 0x10
jae 0x4002448a
movzx eax, ah
cmp edi, eax
mov dword [ebp - 0x18], eax
jae 0x4002446f
cmp dword [ebp - 8], 0
jne 0x40024455
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 4]
cmp edi, dword [ebp - 0x18]
jb 0x40024438
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x68]
shr ebx, cl
sub edi, ecx
mov cx, word [ebp - 0xe]
mov word [esi + eax*2 + 0x70], cx
inc dword [esi + 0x68]
jmp 0x400245e2
movzx ecx, ah
mov dword [ebp - 0x18], ecx
jne 0x40024501
lea eax, [ecx + 2]
cmp edi, eax
jae 0x400244d8
cmp dword [ebp - 8], 0
jne 0x400244b6
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
mov eax, dword [ebp - 0x18]
inc dword [ebp - 4]
add eax, 2
cmp edi, eax
jb 0x40024499
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x68]
shr ebx, cl
sub edi, ecx
test eax, eax
je 0x400245f3
movzx eax, word [esi + eax*2 + 0x6e]
mov dword [ebp - 0x1c], eax
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
dec edi
dec edi
jmp 0x400245bd
cmp word [ebp - 0xe], 0x11
jne 0x4002455f
lea eax, [ecx + 3]
cmp edi, eax
jae 0x4002454e
cmp dword [ebp - 8], 0
jne 0x4002452c
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
mov eax, dword [ebp - 0x18]
inc dword [ebp - 4]
add eax, 3
cmp edi, eax
jb 0x4002450f
mov ecx, dword [ebp - 0x18]
shr ebx, cl
push 0xfffffffffffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x400245b4
lea eax, [ecx + 7]
cmp edi, eax
jae 0x400245a5
cmp dword [ebp - 8], 0
jne 0x40024583
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
mov eax, dword [ebp - 0x18]
inc dword [ebp - 4]
add eax, 7
cmp edi, eax
jb 0x40024566
mov ecx, dword [ebp - 0x18]
shr ebx, cl
push 0xfffffffffffffff9
mov eax, ebx
and eax, 0x7f
add eax, 0xb
shr ebx, 7
and dword [ebp - 0x1c], 0
pop edx
sub edx, ecx
add edi, edx
mov edx, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
add edx, dword [esi + 0x60]
add ecx, eax
cmp ecx, edx
ja 0x40024602
test eax, eax
je 0x400245e2
mov ecx, dword [esi + 0x68]
mov dx, word [ebp - 0x1c]
mov word [esi + ecx*2 + 0x70], dx
inc dword [esi + 0x68]
dec eax
jne 0x400245d0
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x60]
cmp dword [esi + 0x68], eax
jb 0x4002440c
jmp 0x40024612
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x40024b53
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [esi], 0x1b
cmp dword [esi], 0x1b
je 0x4002424e
lea eax, [esi + 0x530]
lea ecx, [esi + 0x6c]
mov dword [ecx], eax
mov dword [esi + 0x4c], eax
lea edx, [esi + 0x2f0]
push edx
lea eax, [esi + 0x54]
push eax
push ecx
push dword [esi + 0x60]
mov dword [eax], 9
lea eax, [esi + 0x70]
push eax
push 1
call fcn.40011745
add esp, 0x18
test eax, eax
je 0x4002465f
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x40024b53
lea ecx, [esi + 0x6c]
mov eax, dword [ecx]
mov dword [esi + 0x50], eax
lea edx, [esi + 0x2f0]
push edx
lea eax, [esi + 0x58]
push eax
push ecx
push dword [esi + 0x64]
mov dword [eax], 6
mov eax, dword [esi + 0x60]
lea eax, [esi + eax*2 + 0x70]
push eax
push 2
call fcn.40011745
add esp, 0x18
test eax, eax
je 0x400246a1
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x40024b53
mov dword [esi], 0x12
cmp dword [ebp - 8], 6
jb 0x4002474f
mov ecx, dword [ebp - 0xc]
cmp ecx, 0x102
jb 0x4002474f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov edx, dword [ebp - 8]
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
mov eax, dword [esi + 0x28]
cmp dword [esi + 0x2c], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
jae 0x400246ec
mov edx, eax
sub edx, ecx
mov dword [esi + 0x2c], edx
mov edi, dword [ebp + 8]
push eax
push edi
call fcn.40011396
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov dword [ebp - 4], eax
mov eax, dword [edi + 4]
mov edi, dword [esi + 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x38]
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
jmp 0x40024bec
cmp dword [ebp - 8], 0
jne 0x4002473a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
mov ecx, dword [esi + 0x54]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x4c]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0x10], eax
ja 0x4002471d
test al, al
je 0x40024815
test al, 0xf0
jne 0x40024815
xor ecx, ecx
mov cl, al
movzx edx, ah
mov dword [ebp - 0x1c], eax
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0xe]
add eax, ecx
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + eax*4]
movzx ecx, byte [ebp - 0x1b]
movzx edx, ah
add edx, ecx
mov dword [ebp - 0x18], ecx
cmp edx, edi
jmp 0x40024809
cmp dword [ebp - 8], 0
jne 0x400247cb
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
xor ecx, ecx
mov cl, byte [ebp - 0x1c]
add edi, 8
add ebx, eax
inc dword [ebp - 4]
xor eax, eax
inc eax
add ecx, dword [ebp - 0x18]
shl eax, cl
mov ecx, dword [ebp - 0x18]
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x1a]
add eax, ecx
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + eax*4]
movzx ecx, ah
add ecx, dword [ebp - 0x18]
cmp ecx, edi
mov dword [ebp - 0x10], eax
ja 0x400247ae
mov ecx, dword [ebp - 0x18]
shr ebx, cl
sub edi, ecx
movzx ecx, ah
shr ebx, cl
sub edi, ecx
test al, al
movzx ecx, word [ebp - 0xe]
mov dword [esi + 0x40], ecx
jne 0x40024868
cmp dword [ebp - 0xc], 0
jne 0x4002484f
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
push eax
push ecx
push dword [ebp + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
mov dword [esi + 0x2c], eax
call dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40024cda
mov ecx, dword [ebp - 0x14]
mov al, byte [esi + 0x40]
inc dword [ebp - 0x14]
dec dword [ebp - 0xc]
mov byte [ecx], al
mov dword [esi], 0x12
jmp 0x4002424e
test al, 0x20
je 0x40024877
mov dword [esi], 0xb
jmp 0x4002424e
test al, 0x40
je 0x4002488a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x40024b53
and eax, 0xf
mov dword [esi + 0x48], eax
je 0x40024917
cmp edi, eax
jae 0x400248d1
cmp dword [ebp - 8], 0
jne 0x400248b7
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 4]
cmp edi, dword [esi + 0x48]
jb 0x4002489a
mov ecx, dword [esi + 0x48]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
add dword [esi + 0x40], eax
shr ebx, cl
sub edi, ecx
jmp 0x40024917
cmp dword [ebp - 8], 0
jne 0x40024902
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
mov ecx, dword [esi + 0x58]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x50]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0x10], eax
ja 0x400248e5
test al, 0xf0
jne 0x400249d5
xor ecx, ecx
mov cl, al
movzx edx, ah
mov dword [ebp - 0x1c], eax
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0xe]
add eax, ecx
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + eax*4]
movzx ecx, byte [ebp - 0x1b]
movzx edx, ah
add edx, ecx
mov dword [ebp - 0x18], ecx
cmp edx, edi
jmp 0x400249c9
cmp dword [ebp - 8], 0
jne 0x4002498b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
xor ecx, ecx
mov cl, byte [ebp - 0x1c]
add edi, 8
add ebx, eax
inc dword [ebp - 4]
xor eax, eax
inc eax
add ecx, dword [ebp - 0x18]
shl eax, cl
mov ecx, dword [ebp - 0x18]
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x1a]
add eax, ecx
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + eax*4]
movzx ecx, ah
add ecx, dword [ebp - 0x18]
cmp ecx, edi
mov dword [ebp - 0x10], eax
ja 0x4002496e
mov ecx, dword [ebp - 0x18]
shr ebx, cl
sub edi, ecx
movzx ecx, ah
shr ebx, cl
sub edi, ecx
test al, 0x40
je 0x400249ef
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x40024b53
movzx ecx, word [ebp - 0xe]
and eax, 0xf
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
je 0x40024a4b
cmp edi, eax
jae 0x40024a39
cmp dword [ebp - 8], 0
jne 0x40024a1f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 4]
cmp edi, dword [esi + 0x48]
jb 0x40024a02
mov ecx, dword [esi + 0x48]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
add dword [esi + 0x44], eax
shr ebx, cl
sub edi, ecx
mov eax, dword [esi + 0x28]
cmp dword [esi + 0x2c], eax
sbb ecx, ecx
and ecx, dword [ebp - 0xc]
sub eax, ecx
cmp dword [esi + 0x44], eax
jbe 0x40024a6c
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x40024b53
cmp dword [ebp - 0xc], 0
jne 0x40024a94
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
push eax
push ecx
push dword [ebp + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
mov dword [esi + 0x2c], eax
call dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40024cda
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x28]
sub eax, ecx
cmp eax, dword [ebp - 0xc]
jae 0x40024aae
mov ecx, dword [ebp - 0x14]
lea edx, [eax + ecx]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
jmp 0x40024ab6
mov edx, dword [ebp - 0x14]
sub edx, ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0x40]
cmp ecx, eax
mov dword [ebp - 0x1c], edx
jbe 0x40024ac2
mov ecx, eax
sub eax, ecx
sub dword [ebp - 0xc], ecx
mov dword [esi + 0x40], eax
mov al, byte [edx]
mov edx, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov byte [edx], al
mov edx, dword [ebp - 0x1c]
inc edx
dec ecx
mov dword [ebp - 0x1c], edx
jne 0x40024aca
cmp dword [esi + 0x40], 0
jne 0x40024a6c
jmp 0x4002424e
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x40024b53
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
jmp 0x40024b32
cmp dword [ebp - 8], 0
jne 0x40024b1d
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
cmp edi, 0x20
jb 0x40024b00
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x40024b5e
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
mov dword [esi], 0x1b
jmp 0x4002424e
xor edi, edi
cmp eax, edi
mov dword [esi + 0x40], eax
mov dword [ebp - 0x1c], edi
je 0x40024be6
cmp dword [ebp - 8], 0
mov ebx, dword [esi + 0x40]
jne 0x40024b8a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
cmp dword [ebp - 0xc], 0
jne 0x40024bb2
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
push eax
push ecx
push dword [ebp + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
mov dword [esi + 0x2c], eax
call dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40024cda
cmp ebx, dword [ebp - 8]
jbe 0x40024bba
mov ebx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jbe 0x40024bc2
mov ebx, dword [ebp - 0xc]
push ebx
push dword [ebp - 4]
push dword [ebp - 0x14]
call sub.MSVCRT.dll_memcpy
add dword [ebp - 4], ebx
sub dword [ebp - 8], ebx
sub dword [ebp - 0xc], ebx
add dword [ebp - 0x14], ebx
sub dword [esi + 0x40], ebx
add esp, 0xc
cmp dword [esi + 0x40], 0
jne 0x40024b6a
mov dword [esi], 0xb
mov ebx, dword [ebp - 0x1c]
jmp 0x4002424e
cmp dword [esi + 4], 0
je 0x40024c40
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x1a
jmp 0x4002424e
cmp dword [ebp - 8], 0
jne 0x40024c2b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x40024cd6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
cmp edi, 3
jb 0x40024c0e
mov eax, ebx
and eax, 1
shr ebx, 1
mov dword [esi + 4], eax
mov eax, ebx
and eax, 3
dec edi
sub eax, 0
je 0x40024ca1
dec eax
je 0x40024c7d
dec eax
je 0x40024c75
dec eax
jne 0x40024ca7
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [esi], 0x1b
jmp 0x40024ca7
mov dword [esi], 0xf
jmp 0x40024ca7
mov dword [esi + 0x4c], 0x4002fb90
mov dword [esi + 0x54], 9
mov dword [esi + 0x50], 0x40030390
mov dword [esi + 0x58], 5
mov dword [esi], 0x12
jmp 0x40024ca7
mov dword [esi], 0xd
shr ebx, 2
dec edi
dec edi
jmp 0x4002424e
push 0xfffffffffffffffd
jmp 0x40024cdc
mov eax, dword [esi + 0x28]
xor edi, edi
inc edi
cmp dword [ebp - 0xc], eax
jae 0x40024cdd
sub eax, dword [ebp - 0xc]
push eax
push dword [esi + 0x34]
push dword [ebp + 0x18]
call dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40024cdd
jmp 0x40024cda
and dword [ebp - 4], 0
push 0xfffffffffffffffb
pop edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, edi
pop ebx
jmp 0x40024cf3
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
leave
ret