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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], edi
mov ebp, dword [edi + 0x1c]
test ebp, ebp
je case.default.0x4e58a6
mov eax, dword [edi + 0xc]
mov dword [esp + 0x2c], eax
test eax, eax
je case.default.0x4e58a6
mov eax, dword [edi]
xor ecx, ecx
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4e5833
cmp dword [edi + 4], ecx
jne case.default.0x4e58a6
mov eax, dword [ebp]
push 0xc
pop edx
cmp eax, 0xb
jne 0x4e5843
mov dword [ebp], edx
mov eax, edx
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 4]
mov ebx, dword [ebp + 0x3c]
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x20]
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x34], ecx
cmp eax, 0x1e
ja case.default.0x4e58a6
mov ecx, eax
mov dword [esp + 0x44], 0x1f
mov dword [esp + 0x54], 1
mov dword [esp + 0x50], 0x1d
mov dword [esp + 0x4c], 0x11
mov dword [esp + 0x58], 0x12
jmp dword [eax*4 + 0x4e6d83]
cmp dword [ebp + 8], 0
jne 0x4e58bf
mov dword [ebp], 0xc
jmp 0x4e67c9
push 0x10
pop eax
cmp ebx, eax
jae 0x4e58f9
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0x10
jb 0x4e58ca
test byte [ebp + 8], 2
je 0x4e594c
cmp edx, 0x8b1f
jne 0x4e594c
xor ebx, ebx
xor edx, edx
push ebx
xor ecx, ecx
call fcn.004e79f0
mov dword [ebp + 0x18], eax
lea edx, [esp + 0x2c]
mov eax, dword [esp + 0x48]
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], 0x8b
mov ecx, dword [ebp + 0x18]
push 2
call fcn.004e79f0
pop ecx
mov edx, ebx
mov dword [ebp + 0x18], eax
pop ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp], 1
jmp 0x4e67c9
and dword [ebp + 0x10], 0
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4e595b
or dword [eax + 0x30], 0xffffffff
test byte [ebp + 8], 1
je 0x4e59fa
movzx ecx, dl
mov eax, edx
shr eax, 8
xor edx, edx
shl ecx, 8
add eax, ecx
div dword [esp + 0x44]
test edx, edx
mov edx, dword [esp + 0x14]
jne 0x4e59fa
mov eax, edx
and al, 0xf
cmp al, 8
je 0x4e5991
mov dword [edi + 0x18], str.unknown_compression_method
jmp 0x4e5a01
shr edx, 4
sub ebx, 4
mov ecx, edx
mov dword [esp + 0x14], edx
and ecx, 0xf
mov dword [esp + 0x1c], ebx
add ecx, 8
cmp dword [ebp + 0x24], 0
jne 0x4e59ec
mov dword [ebp + 0x24], ecx
xor eax, eax
xor ebx, ebx
inc eax
xor edx, edx
shl eax, cl
xor ecx, ecx
push ebx
mov dword [ebp + 0x14], eax
call fcn.004e6f20
mov edx, dword [esp + 0x18]
shr edx, 8
not edx
mov dword [ebp + 0x18], eax
and edx, 2
mov dword [edi + 0x30], eax
or edx, 9
mov dword [ebp], edx
mov edx, ebx
pop ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jmp 0x4e67c9
cmp ecx, dword [ebp + 0x24]
jbe 0x4e59b0
mov dword [edi + 0x18], str.invalid_window_size
jmp 0x4e5a01
mov dword [edi + 0x18], str.incorrect_header_check
mov dword [ebp], 0x1d
jmp 0x4e67c9
push 0x10
pop eax
cmp ebx, eax
jae 0x4e5a47
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0x10
jb 0x4e5a18
mov dword [ebp + 0x10], edx
cmp dl, 8
jne 0x4e5988
test edx, 0xe000
je 0x4e5a64
mov dword [edi + 0x18], str.unknown_header_flags_set
jmp 0x4e5a01
mov esi, dword [ebp + 0x20]
mov ecx, edx
shr ecx, 8
mov eax, edx
test esi, esi
je 0x4e5a7c
mov eax, ecx
and eax, 1
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
test eax, 0x200
je 0x4e5a9d
mov byte [esp + 0x28], dl
lea edx, [esp + 0x28]
mov byte [esp + 0x29], cl
mov ecx, dword [ebp + 0x18]
push 2
call fcn.004e79f0
pop ecx
mov dword [ebp + 0x18], eax
mov esi, dword [esp + 0x10]
xor eax, eax
mov edx, eax
mov dword [ebp], 2
mov dword [esp + 0x14], edx
mov ebx, eax
cmp ebx, 0x20
jae 0x4e5ae6
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x20
jb 0x4e5abb
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4e5af0
mov dword [eax + 4], edx
test dword [ebp + 0x10], 0x200
je 0x4e5b28
mov eax, edx
mov byte [esp + 0x28], dl
shr eax, 8
mov byte [esp + 0x29], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
mov byte [esp + 0x2b], dl
lea edx, [esp + 0x28]
mov byte [esp + 0x2a], al
mov ecx, dword [ebp + 0x18]
push 4
call fcn.004e79f0
pop ecx
mov dword [ebp + 0x18], eax
xor eax, eax
mov dword [ebp], 3
mov edx, eax
mov ebx, eax
mov dword [esp + 0x14], edx
push 0x10
pop eax
cmp ebx, eax
jae 0x4e5b6f
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x4e5b44
mov esi, dword [ebp + 0x20]
mov ecx, edx
shr ecx, 8
test esi, esi
je 0x4e5b87
movzx eax, dl
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
mov dword [eax + 0xc], ecx
test dword [ebp + 0x10], 0x200
je 0x4e5baa
mov byte [esp + 0x28], dl
lea edx, [esp + 0x28]
mov byte [esp + 0x29], cl
mov ecx, dword [ebp + 0x18]
push 2
call fcn.004e79f0
pop ecx
mov dword [ebp + 0x18], eax
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov edx, ecx
mov dword [ebp], 4
mov ebx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jmp 0x4e5bc7
xor ecx, ecx
test dword [ebp + 0x10], 0x400
je 0x4e5c47
push 0x10
pop eax
cmp ebx, eax
jae 0x4e5c06
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x4e5bdb
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x40], edx
test eax, eax
je 0x4e5c13
mov dword [eax + 0x14], edx
test dword [ebp + 0x10], 0x200
je 0x4e5c39
mov byte [esp + 0x28], dl
shr edx, 8
mov byte [esp + 0x29], dl
lea edx, [esp + 0x28]
mov ecx, dword [ebp + 0x18]
push 2
call fcn.004e79f0
pop ecx
mov dword [ebp + 0x18], eax
xor eax, eax
mov ebx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebx
jmp 0x4e5c51
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4e5c51
mov dword [eax + 0x10], ecx
mov dword [ebp], 5
mov eax, dword [ebp + 0x10]
test eax, 0x400
je 0x4e5cd8
mov ecx, dword [ebp + 0x40]
cmp ecx, dword [esp + 0x10]
cmovbe esi, ecx
test esi, esi
je 0x4e5cd0
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x4e5ca6
cmp dword [edi + 0x10], 0
je 0x4e5ca6
mov edx, dword [edi + 0x14]
sub edx, ecx
mov ecx, dword [edi + 0x18]
sub ecx, edx
lea eax, [esi + edx]
cmp eax, dword [edi + 0x18]
mov eax, dword [edi + 0x10]
cmovbe ecx, esi
add eax, edx
push ecx
push dword [esp + 0x1c]
push eax
call fcn.00505060
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, 0x200
je 0x4e5cbe
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x18]
push esi
call fcn.004e79f0
pop ecx
mov dword [ebp + 0x18], eax
sub dword [esp + 0x10], esi
add dword [esp + 0x18], esi
sub dword [ebp + 0x40], esi
mov ecx, dword [ebp + 0x40]
mov edi, dword [esp + 0x24]
test ecx, ecx
jne 0x4e6c7f
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov dword [ebp + 0x40], ecx
mov dword [ebp], 6
jmp 0x4e5cec
xor ecx, ecx
test dword [ebp + 0x10], 0x800
je 0x4e5d7a
test esi, esi
je 0x4e6c7f
mov edi, dword [esp + 0x10]
mov esi, ecx
mov edx, dword [esp + 0x18]
movzx eax, byte [esi + edx]
inc esi
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4e5d38
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x4e5d34
mov ecx, dword [ebp + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x4e5d34
mov eax, dword [esp + 0x40]
mov byte [edx + ecx], al
inc dword [ebp + 0x40]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4e5d44
cmp esi, edi
jb 0x4e5d0b
test dword [ebp + 0x10], 0x200
mov edi, dword [esp + 0x24]
je 0x4e5d62
mov ecx, dword [ebp + 0x18]
push esi
call fcn.004e79f0
pop ecx
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x18], esi
sub eax, esi
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x4e6c83
jmp 0x4e5d84
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4e5d84
mov dword [eax + 0x1c], ecx
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov dword [ebp + 0x40], ecx
mov dword [ebp], 7
jmp 0x4e5d98
xor ecx, ecx
test dword [ebp + 0x10], 0x1000
je 0x4e5e26
test esi, esi
je 0x4e6c7f
mov edi, dword [esp + 0x10]
mov esi, ecx
mov edx, dword [esp + 0x18]
movzx eax, byte [esi + edx]
inc esi
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4e5de4
mov edx, dword [eax + 0x24]
test edx, edx
je 0x4e5de0
mov ecx, dword [ebp + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x4e5de0
mov eax, dword [esp + 0x40]
mov byte [edx + ecx], al
inc dword [ebp + 0x40]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4e5df0
cmp esi, edi
jb 0x4e5db7
test dword [ebp + 0x10], 0x200
mov edi, dword [esp + 0x24]
je 0x4e5e0e
mov ecx, dword [ebp + 0x18]
push esi
call fcn.004e79f0
pop ecx
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x18], esi
sub eax, esi
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x4e6c83
jmp 0x4e5e30
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4e5e30
mov dword [eax + 0x24], ecx
mov edx, dword [esp + 0x14]
mov dword [ebp], 8
mov esi, dword [ebp + 0x10]
test esi, 0x200
jne 0x4e5eaf
xor ecx, ecx
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4e5e61
mov edx, dword [esp + 0x54]
sar esi, 9
and esi, edx
mov dword [eax + 0x2c], esi
mov eax, dword [ebp + 0x20]
mov dword [eax + 0x30], edx
push ecx
xor edx, edx
xor ecx, ecx
call fcn.004e79f0
pop ecx
mov dword [ebp + 0x18], eax
mov dword [edi + 0x30], eax
mov dword [ebp], 0xb
mov edx, dword [esp + 0x14]
jmp 0x4e67c5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e6c83
dec eax
mov ecx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
push 0x10
pop eax
cmp ebx, eax
jb 0x4e5e82
movzx eax, word [ebp + 0x18]
cmp edx, eax
je 0x4e5ed1
mov dword [edi + 0x18], str.header_crc_mismatch
mov dword [ebp], 0x1d
jmp 0x4e67c5
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
jmp 0x4e5e48
cmp ebx, 0x20
jae 0x4e5f16
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x20
jb 0x4e5eeb
mov ecx, edx
mov dword [ebp], 0xa
mov ebx, 0xff00
mov eax, edx
shl eax, 0x10
and ecx, ebx
add ecx, eax
mov eax, edx
shr eax, 8
and eax, ebx
shl ecx, 8
shr edx, 0x18
add eax, ecx
add eax, edx
mov dword [ebp + 0x18], eax
mov dword [edi + 0x30], eax
xor eax, eax
mov edx, eax
mov ebx, eax
mov dword [esp + 0x14], edx
jmp 0x4e5f52
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x4e6c42
push eax
xor edx, edx
xor ecx, ecx
call fcn.004e6f20
mov edx, dword [esp + 0x18]
pop ecx
mov dword [ebp + 0x18], eax
mov dword [edi + 0x30], eax
mov dword [ebp], 0xb
mov eax, dword [esp + 0x38]
cmp eax, 5
je 0x4e6c7f
cmp eax, 6
je 0x4e6c7f
cmp dword [ebp + 4], 0
je 0x4e5fb0
mov ecx, ebx
mov dword [ebp], 0x1a
and ecx, 7
shr edx, cl
sub ebx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jmp 0x4e67c9
cmp ebx, 3
jae 0x4e5fe4
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 3
jb 0x4e5fb9
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebp + 4], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x4e6058
sub eax, 1
je 0x4e601f
sub eax, 1
je 0x4e6017
sub eax, 1
jne 0x4e605f
mov dword [edi + 0x18], str.invalid_block_type
mov dword [ebp], 0x1d
jmp 0x4e605f
push 0x10
pop eax
mov dword [ebp], eax
jmp 0x4e605f
cmp dword [esp + 0x38], 6
mov dword [ebp + 0x4c], 0x552ea8
mov dword [ebp + 0x54], 9
mov dword [ebp + 0x50], 0x5536f8
mov dword [ebp + 0x58], 5
mov dword [ebp], 0x13
jne 0x4e605f
shr edx, 2
add ebx, 0xfffffffd
mov dword [esp + 0x14], edx
jmp 0x4e6c7f
mov dword [ebp], 0xd
shr edx, 2
add ebx, 0xfffffffd
jmp 0x4e59df
mov ecx, ebx
and ecx, 7
sub ebx, ecx
shr edx, cl
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jae 0x4e60b3
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jb 0x4e6084
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x4e60cd
mov dword [edi + 0x18], str.invalid_stored_block_lengths
jmp 0x4e5a01
xor eax, eax
mov dword [ebp + 0x40], ecx
cmp dword [esp + 0x38], 6
mov edx, eax
mov ebx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp], 0xe
je 0x4e6c7f
mov dword [ebp], 0xf
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x4e613f
cmp ecx, esi
mov eax, esi
mov esi, dword [esp + 0x20]
cmovbe eax, ecx
cmp eax, esi
cmovbe esi, eax
test esi, esi
je 0x4e6c7f
push esi
push dword [esp + 0x1c]
push dword [esp + 0x34]
call fcn.00505060
sub dword [esp + 0x1c], esi
add esp, 0xc
add dword [esp + 0x18], esi
sub dword [esp + 0x20], esi
add dword [esp + 0x2c], esi
sub dword [ebp + 0x40], esi
jmp 0x4e5e79
mov dword [ebp], 0xb
jmp 0x4e67c9
cmp ebx, 0xe
jae 0x4e617f
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 0xe
jb 0x4e6154
mov esi, dword [esp + 0x44]
mov ecx, edx
shr edx, 5
and ecx, esi
and esi, edx
add ecx, 0x101
shr edx, 5
inc esi
mov eax, edx
mov dword [ebp + 0x60], ecx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebp + 0x64], esi
sub ebx, 0xe
mov dword [ebp + 0x5c], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
cmp ecx, 0x11e
ja 0x4e61d3
cmp esi, 0x1e
ja 0x4e61d3
mov eax, dword [esp + 0x4c]
and dword [ebp + 0x68], 0
mov esi, dword [esp + 0x10]
mov dword [ebp], eax
jmp case.0x4e58a6.17
mov dword [edi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x4e5ec5
cmp ebx, 3
jae 0x4e6213
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 3
jb 0x4e61e8
mov eax, dword [ebp + 0x68]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [esp + 0x14], edx
movzx eax, word [eax*2 + 0x5536d0]
mov word [ebp + eax*2 + 0x70], cx
inc dword [ebp + 0x68]
sub ebx, 3
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0x68]
cmp eax, dword [ebp + 0x5c]
jb 0x4e61df
cmp eax, 0x13
jae 0x4e6261
mov eax, dword [ebp + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x5536d0]
mov word [ebp + eax*2 + 0x70], cx
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 0x13
jb 0x4e6246
lea eax, [ebp + 0x530]
lea ecx, [ebp + 0x6c]
mov dword [ebp + 0x4c], eax
mov dword [ecx], eax
lea edx, [ebp + 0x54]
lea eax, [ebp + 0x2f0]
mov dword [edx], 7
push eax
push edx
push ecx
push 0x13
lea edx, [ebp + 0x70]
xor ecx, ecx
call fcn.004e714d
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x4e62b1
mov edx, dword [esp + 0x14]
mov dword [edi + 0x18], str.invalid_code_lengths_set
mov dword [ebp], 0x1d
jmp 0x4e67c9
mov eax, dword [esp + 0x58]
mov ecx, eax
and dword [ebp + 0x68], 0
mov dword [ebp], eax
mov eax, dword [ebp + 0x64]
mov edi, dword [ebp + 0x68]
add eax, dword [ebp + 0x60]
mov dword [esp + 0x40], edi
cmp edi, eax
jb 0x4e6321
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
cmp ecx, edx
je 0x4e5e79
xor eax, eax
cmp word [ebp + 0x270], ax
jne 0x4e6538
mov dword [edi + 0x18], str.invalid_code____missing_end_of_block
mov dword [ebp], edx
jmp 0x4e5e79
test esi, esi
je 0x4e6c7f
mov edx, dword [esp + 0x18]
mov ecx, ebx
dec esi
mov dword [esp + 0x10], esi
movzx eax, byte [edx]
shl eax, cl
add dword [esp + 0x14], eax
inc edx
mov dword [esp + 0x18], edx
add ebx, 8
mov ecx, dword [ebp + 0x54]
xor edx, edx
mov eax, dword [ebp + 0x4c]
inc edx
shl edx, cl
dec edx
and edx, dword [esp + 0x14]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x3c], eax
cmp ecx, ebx
ja 0x4e62fd
mov ecx, eax
push 0x10
shr ecx, 0x10
pop edx
cmp cx, dx
jae 0x4e63a5
mov ecx, eax
shr ecx, 8
movzx esi, cl
jmp 0x4e6382
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4e6c7f
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx]
mov ecx, ebx
shl edx, cl
add dword [esp + 0x14], edx
inc dword [esp + 0x18]
add ebx, 8
cmp ebx, esi
jb 0x4e635b
movzx ecx, ah
mov ax, word [esp + 0x3e]
sub ebx, ecx
shr dword [esp + 0x14], cl
mov word [ebp + edi*2 + 0x70], ax
inc dword [ebp + 0x68]
mov dword [esp + 0x1c], ebx
jmp 0x4e64ef
cmp word [esp + 0x3e], dx
mov edx, dword [esp + 0x14]
jne 0x4e6417
movzx esi, ah
lea edi, [esi + 2]
cmp ebx, edi
jae 0x4e63e5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e6c83
dec eax
mov ecx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
mov dword [esp + 0x14], edx
add ebx, 8
jmp 0x4e63b6
mov eax, dword [esp + 0x40]
mov ecx, esi
shr edx, cl
sub ebx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x4e6509
movzx edi, word [ebp + eax*2 + 0x6e]
mov esi, edx
and esi, 3
shr edx, 2
add esi, 3
sub ebx, 2
jmp 0x4e64ca
mov ecx, dword [esp + 0x4c]
cmp word [esp + 0x3e], cx
movzx ecx, ah
jne 0x4e6473
lea esi, [ecx + 3]
mov dword [esp + 0x3c], ecx
cmp ebx, esi
jae 0x4e6462
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e6c83
dec eax
mov ecx, ebx
mov dword [esp + 0x10], eax
add ebx, 8
movzx eax, byte [edi]
shl eax, cl
add edx, eax
inc edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
cmp ebx, esi
jb 0x4e6434
mov ecx, dword [esp + 0x3c]
shr edx, cl
mov esi, edx
and esi, 7
add esi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x4e64bf
lea esi, [ecx + 7]
mov dword [esp + 0x3c], ecx
cmp ebx, esi
jae 0x4e64b0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e6c83
dec eax
mov ecx, ebx
mov dword [esp + 0x10], eax
add ebx, 8
movzx eax, byte [edi]
shl eax, cl
add edx, eax
inc edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
cmp ebx, esi
jb 0x4e6482
mov ecx, dword [esp + 0x3c]
shr edx, cl
mov esi, edx
and esi, 0x7f
add esi, 0xb
shr edx, 7
push 0xfffffffffffffff9
pop eax
sub eax, ecx
xor edi, edi
add ebx, eax
mov eax, dword [esp + 0x40]
lea ecx, [eax + esi]
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x64]
add eax, dword [ebp + 0x60]
mov dword [esp + 0x1c], ebx
cmp ecx, eax
ja 0x4e6521
mov eax, dword [ebp + 0x68]
mov word [ebp + eax*2 + 0x70], di
inc dword [ebp + 0x68]
sub esi, 1
jne 0x4e64df
mov eax, dword [ebp + 0x64]
mov edi, dword [ebp + 0x68]
add eax, dword [ebp + 0x60]
mov dword [esp + 0x40], edi
cmp edi, eax
jae 0x4e6519
mov esi, dword [esp + 0x10]
jmp 0x4e6321
mov edi, dword [esp + 0x24]
mov dword [edi + 0x18], str.invalid_bit_length_repeat
jmp 0x4e5ec5
mov ecx, dword [ebp]
jmp 0x4e62cf
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
mov dword [ebp], ecx
mov dword [edi + 0x18], str.invalid_bit_length_repeat
jmp 0x4e62d3
lea eax, [ebp + 0x530]
xor ecx, ecx
lea esi, [ebp + 0x6c]
mov dword [ebp + 0x4c], eax
mov dword [esi], eax
lea edi, [ebp + 0x2f0]
lea eax, [ebp + 0x54]
inc ecx
push edi
push eax
push esi
push dword [ebp + 0x60]
lea edx, [ebp + 0x70]
mov dword [eax], 9
call fcn.004e714d
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x4e658a
mov edi, dword [esp + 0x24]
mov dword [edi + 0x18], str.invalid_literal_lengths_set
mov dword [ebp], 0x1d
jmp 0x4e5e79
mov eax, dword [esi]
push edi
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x58]
push eax
mov dword [eax], 6
mov eax, dword [ebp + 0x60]
push esi
push dword [ebp + 0x64]
lea edx, [eax*2 + 0x70]
push 2
add edx, ebp
pop ecx
call fcn.004e714d
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x4e65cc
mov edi, dword [esp + 0x24]
mov dword [edi + 0x18], str.invalid_distances_set
jmp 0x4e657e
cmp dword [esp + 0x38], 6
mov dword [ebp], 0x13
je 0x4e6c7f
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov dword [ebp], 0x14
cmp esi, 6
jb 0x4e6664
mov eax, dword [esp + 0x20]
cmp eax, 0x102
jb 0x4e6664
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0xc], ecx
mov ecx, edi
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x38], edx
mov edx, dword [esp + 0x30]
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [ebp + 0x3c], ebx
call fcn.004e7596
cmp dword [ebp], 0xb
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 4]
mov edx, dword [ebp + 0x38]
mov ebx, dword [ebp + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jne 0x4e67c9
or dword [ebp + 0x1bc4], 0xffffffff
jmp 0x4e67c9
mov ecx, dword [ebp + 0x54]
xor eax, eax
and dword [ebp + 0x1bc4], 0
inc eax
mov esi, dword [ebp + 0x4c]
shl eax, cl
dec eax
and eax, edx
mov eax, dword [esi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x4e66d9
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [edi]
mov ecx, ebx
shl eax, cl
dec esi
mov ecx, dword [ebp + 0x54]
add edx, eax
mov eax, dword [ebp + 0x4c]
inc edi
mov dword [esp + 0x14], edx
add ebx, 8
xor edx, edx
mov dword [esp + 0x10], esi
inc edx
mov dword [esp + 0x18], edi
shl edx, cl
dec edx
mov dword [esp + 0x1c], ebx
and edx, dword [esp + 0x14]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x4e6690
test al, al
je 0x4e6794
test al, 0xf0
jne 0x4e6794
mov ebx, eax
movzx ecx, al
shr ebx, 8
xor edi, edi
movzx esi, bl
inc edi
add ecx, esi
mov edx, eax
shl edi, cl
mov ecx, esi
dec edi
shr eax, 0x10
and edi, dword [esp + 0x14]
shr edi, cl
mov ecx, dword [ebp + 0x4c]
add edi, eax
mov dword [esp + 0x40], edx
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
add esi, ecx
cmp esi, ebx
jbe 0x4e6783
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4e6c7f
dec esi
movzx edi, dh
mov dword [esp + 0x10], esi
mov ecx, ebx
mov esi, dword [esp + 0x18]
add ebx, 8
movzx eax, byte [esi]
shl eax, cl
add dword [esp + 0x14], eax
inc esi
movzx eax, word [esp + 0x42]
mov dword [esp + 0x18], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [esp + 0x14]
shr esi, cl
add esi, eax
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, ebx
ja 0x4e672a
movzx ecx, dh
mov edx, dword [esp + 0x14]
shr edx, cl
sub ebx, ecx
mov dword [ebp + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebp + 0x1bc4], ecx
sub ebx, ecx
shr edx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp + 0x40], ecx
test al, al
jne 0x4e67e2
mov dword [ebp], 0x19
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp]
mov eax, ecx
cmp eax, 0x1e
jbe switch.0x004e58a6
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
test al, 0x20
je 0x4e67f6
or dword [ebp + 0x1bc4], 0xffffffff
mov dword [ebp], 0xb
jmp 0x4e67c1
test al, 0x40
je 0x4e680a
mov edi, dword [esp + 0x24]
mov dword [edi + 0x18], str.invalid_literal_length_code
jmp 0x4e5ec5
movzx eax, al
and eax, 0xf
mov dword [ebp], 0x15
mov dword [ebp + 0x48], eax
mov esi, dword [ebp + 0x48]
test esi, esi
je 0x4e6872
cmp ebx, esi
jae 0x4e6853
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e6c83
dec eax
mov ecx, ebx
mov dword [esp + 0x10], eax
add ebx, 8
movzx eax, byte [edi]
shl eax, cl
add edx, eax
inc edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
cmp ebx, esi
jb 0x4e6829
xor eax, eax
mov ecx, esi
inc eax
sub ebx, esi
shl eax, cl
dec eax
mov dword [esp + 0x1c], ebx
and eax, edx
shr edx, cl
add dword [ebp + 0x40], eax
add dword [ebp + 0x1bc4], esi
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x1bc8], eax
mov dword [ebp], 0x16
mov ecx, dword [ebp + 0x58]
xor eax, eax
mov esi, dword [ebp + 0x50]
inc eax
shl eax, cl
dec eax
and eax, edx
mov eax, dword [esi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x4e68f0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [edi]
mov ecx, ebx
shl eax, cl
dec esi
mov ecx, dword [ebp + 0x58]
add edx, eax
mov eax, dword [ebp + 0x50]
inc edi
mov dword [esp + 0x14], edx
add ebx, 8
xor edx, edx
mov dword [esp + 0x10], esi
inc edx
mov dword [esp + 0x18], edi
shl edx, cl
dec edx
mov dword [esp + 0x1c], ebx
and edx, dword [esp + 0x14]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x4e68a7
test al, 0xf0
jne 0x4e69a3
mov ebx, eax
movzx ecx, al
shr ebx, 8
xor edi, edi
movzx esi, bl
inc edi
add ecx, esi
mov edx, eax
shl edi, cl
mov ecx, esi
dec edi
shr eax, 0x10
and edi, dword [esp + 0x14]
shr edi, cl
mov ecx, dword [ebp + 0x50]
add edi, eax
mov dword [esp + 0x40], edx
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
add esi, ecx
cmp esi, ebx
jbe 0x4e6992
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4e6c7f
dec esi
movzx edi, dh
mov dword [esp + 0x10], esi
mov ecx, ebx
mov esi, dword [esp + 0x18]
add ebx, 8
movzx eax, byte [esi]
shl eax, cl
add dword [esp + 0x14], eax
inc esi
movzx eax, word [esp + 0x42]
mov dword [esp + 0x18], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [esp + 0x14]
shr esi, cl
add esi, eax
mov eax, dword [ebp + 0x50]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, ebx
ja 0x4e6939
movzx ecx, dh
mov edx, dword [esp + 0x14]
sub ebx, ecx
shr edx, cl
add dword [ebp + 0x1bc4], ecx
mov edi, dword [esp + 0x24]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebp + 0x1bc4], ecx
sub ebx, ecx
shr edx, cl
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
test al, 0x40
je 0x4e69d1
mov dword [edi + 0x18], str.invalid_distance_code
jmp 0x4e5ec5
mov ecx, eax
mov dword [ebp], 0x17
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], eax
mov esi, dword [ebp + 0x48]
test esi, esi
je 0x4e6a3e
jmp 0x4e6a1b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e6c83
dec eax
mov ecx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
mov dword [esp + 0x14], edx
add ebx, 8
cmp ebx, esi
jb 0x4e69f2
xor eax, eax
mov ecx, esi
inc eax
sub ebx, esi
shl eax, cl
dec eax
mov dword [esp + 0x1c], ebx
and eax, edx
shr edx, cl
add dword [ebp + 0x44], eax
add dword [ebp + 0x1bc4], esi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x10]
mov dword [ebp], 0x18
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e6c7f
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [ebp + 0x44]
cmp eax, ecx
jbe 0x4e6aa1
sub eax, ecx
cmp eax, dword [ebp + 0x2c]
jbe 0x4e6a7e
cmp dword [ebp + 0x1bc0], 0
je 0x4e6a7e
mov dword [edi + 0x18], str.invalid_distance_too_far_back
jmp 0x4e5a01
mov ecx, dword [ebp + 0x30]
cmp eax, ecx
jbe 0x4e6a8a
sub eax, ecx
mov ecx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x40]
sub ecx, eax
add ecx, dword [ebp + 0x34]
mov edi, esi
cmp eax, esi
cmovbe edi, eax
mov dword [esp + 0x40], edi
mov eax, edi
jmp 0x4e6aac
mov ecx, dword [esp + 0x2c]
mov esi, dword [ebp + 0x40]
sub ecx, eax
mov eax, esi
mov edi, dword [esp + 0x20]
cmp eax, edi
cmovbe edi, eax
sub dword [esp + 0x20], edi
sub esi, edi
mov dword [ebp + 0x40], esi
mov esi, dword [esp + 0x2c]
sub ecx, esi
mov al, byte [ecx + esi]
mov byte [esi], al
inc esi
sub edi, 1
jne 0x4e6ac4
mov dword [esp + 0x2c], esi
cmp dword [ebp + 0x40], edi
jne 0x4e67c1
mov dword [ebp], 0x14
jmp 0x4e67c1
cmp dword [esp + 0x20], 0
je 0x4e6c7f
mov ecx, dword [esp + 0x2c]
mov al, byte [ebp + 0x40]
mov byte [ecx], al
inc ecx
dec dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [ebp], 0x14
jmp 0x4e67c9
cmp dword [ebp + 8], 0
je 0x4e6be8
cmp ebx, 0x20
jae 0x4e6b53
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jb 0x4e6b24
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x20]
add dword [edi + 0x14], eax
add dword [ebp + 0x1c], eax
test eax, eax
je 0x4e6b90
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x18]
sub edx, eax
cmp dword [ebp + 0x10], 0
push eax
je 0x4e6b7c
call fcn.004e79f0
jmp 0x4e6b81
call fcn.004e6f20
mov edx, dword [esp + 0x18]
mov esi, eax
pop ecx
mov dword [ebp + 0x18], esi
mov dword [edi + 0x30], esi
jmp 0x4e6b93
mov esi, dword [ebp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, edx
mov dword [esp + 0x30], eax
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
xor eax, eax
cmp dword [ebp + 0x10], eax
cmovne ecx, edx
cmp ecx, esi
mov esi, dword [esp + 0x10]
je 0x4e6bdc
mov dword [edi + 0x18], str.incorrect_data_check
jmp 0x4e5a01
mov edx, eax
mov ebx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp], 0x1b
xor eax, eax
cmp dword [ebp + 8], eax
je 0x4e6c6c
cmp dword [ebp + 0x10], eax
je 0x4e6c6c
cmp ebx, 0x20
jae 0x4e6c31
mov eax, dword [esp + 0x18]
test esi, esi
je 0x4e6c7f
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jb 0x4e6c04
xor eax, eax
cmp edx, dword [ebp + 0x1c]
je 0x4e6c66
mov dword [edi + 0x18], str.incorrect_length_check
jmp 0x4e5a01
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [ebp + 0x38], edx
mov dword [ebp + 0x3c], ebx
push 2
jmp 0x4e67d9
mov dword [esp + 0x14], eax
mov ebx, eax
mov dword [ebp], 0x1c
xor ecx, ecx
inc ecx
jmp 0x4e6c7b
push 0xfffffffffffffffd
pop ecx
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov dword [ebp + 0x3c], ebx
xor ebx, ebx
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], edi
mov edi, dword [esp + 0x30]
mov dword [esi], ecx
mov dword [ebp + 0x38], eax
cmp dword [ebp + 0x28], ebx
jne 0x4e6cbf
cmp dword [ebp], 0x1a
jge 0x4e6cda
cmp edi, dword [esp + 0x20]
je 0x4e6cda
mov edx, edi
mov ecx, esi
call fcn.004e572b
test eax, eax
je 0x4e6cda
mov dword [ebp], 0x1e
push 0xfffffffffffffffc
jmp 0x4e67d9
mov edx, dword [esp + 0x48]
sub edx, dword [esi + 4]
sub edi, dword [esi + 0x10]
add dword [esi + 8], edx
add dword [esi + 0x14], edi
add dword [ebp + 0x1c], edi
mov dword [esp + 0x48], edx
cmp dword [ebp + 8], ebx
je 0x4e6d1f
test edi, edi
je 0x4e6d1f
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp + 0x18]
sub edx, edi
push edi
cmp dword [ebp + 0x10], ebx
je 0x4e6d0f
call fcn.004e79f0
jmp 0x4e6d14
call fcn.004e6f20
mov edx, dword [esp + 0x4c]
pop ecx
mov dword [ebp + 0x18], eax
mov dword [esi + 0x30], eax
cmp dword [ebp], 0x13
je 0x4e6d2b
cmp dword [ebp], 0xe
jne 0x4e6d30
mov ebx, 0x100
mov ecx, dword [ebp + 4]
neg ecx
mov dword [esp + 0x58], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebp], 0xb
cmove eax, dword [esp + 0x58]
add ecx, ebx
add eax, ecx
add eax, dword [ebp + 0x3c]
mov dword [esi + 0x2c], eax
test edx, edx
jne 0x4e6d5f
test edi, edi
je 0x4e6d66
cmp dword [esp + 0x38], 4
jne 0x4e6d77
mov eax, dword [esp + 0x34]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x4e67da
mov eax, dword [esp + 0x34]
jmp 0x4e67da