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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x24], esi
test esi, esi
je case.default.0x49963d
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 0x30], ebx
test ebx, ebx
je case.default.0x49963d
xor eax, eax
cmp dword [esi + 0xc], eax
je case.default.0x49963d
cmp dword [esi], eax
jne 0x4995e0
cmp dword [esi + 4], eax
jne case.default.0x49963d
cmp dword [ebx], 0xb
jne 0x4995eb
mov dword [ebx], 0xc
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi]
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 4]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x40], ecx
cmp eax, 0x1c
ja case.default.0x49963d
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x44], 0x1f
mov dword [ebp - 0x48], 0x11
jmp dword [eax*4 + 0x49a940]
cmp dword [ebx + 8], 0
jne 0x499655
mov dword [ebx], 0xc
jmp 0x49a810
cmp edi, dword [ebp - 0x20]
jae 0x49968a
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
mov dword [ebp - 0x10], edi
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 0x20]
jb 0x49965d
test byte [ebx + 8], 2
je 0x4996ca
cmp edx, 0x8b1f
jne 0x4996ca
mov eax, dword [ebp - 0x44]
xor edi, edi
push 2
lea edx, [ebp - 0x18]
xor ecx, ecx
mov dword [ebx + 0x18], edi
mov byte [ebp - 0x18], al
mov byte [ebp - 0x17], 0x8b
call fcn.00499179
mov edx, edi
pop ecx
mov dword [ebx + 0x18], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 1
jmp 0x49a80d
mov eax, dword [ebx + 0x20]
and dword [ebx + 0x10], 0
test eax, eax
je 0x4996d9
or dword [eax + 0x30], 0xffffffff
test byte [ebx + 8], 1
je 0x499763
movzx ecx, dl
mov eax, edx
shr eax, 8
shl ecx, 8
xor edx, edx
add eax, ecx
div dword [ebp - 0x44]
test edx, edx
mov edx, dword [ebp - 0xc]
jne 0x499763
mov eax, edx
and al, 0xf
cmp al, 8
je 0x499710
mov dword [esi + 0x18], str.unknown_compression_method
jmp 0x49a807
shr edx, 4
mov ecx, edx
and ecx, 0xf
sub edi, 4
add ecx, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
cmp ecx, dword [ebx + 0x24]
jbe 0x499735
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x49a807
xor edi, edi
inc edi
shr edx, 8
mov eax, edi
shl eax, cl
not edx
and edx, 2
or edx, 9
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], edi
mov dword [esi + 0x30], edi
xor eax, eax
mov dword [ebx], edx
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
jmp 0x49a80d
mov dword [esi + 0x18], str.incorrect_header_check
jmp 0x49a807
cmp edi, dword [ebp - 0x20]
jae 0x4997a4
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
mov dword [ebp - 0x10], edi
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 0x20]
jb 0x499777
mov dword [ebx + 0x10], edx
cmp dl, 8
je 0x4997be
mov dword [esi + 0x18], str.unknown_compression_method
mov dword [ebx], 0x1b
jmp 0x49a810
test edx, 0xe000
je 0x4997cf
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x4997b3
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x4997e0
mov eax, edx
shr eax, 8
and eax, 1
mov dword [ecx], eax
test dword [ebx + 0x10], 0x200
je 0x499803
mov ecx, dword [ebx + 0x18]
mov byte [ebp - 0x18], dl
shr edx, 8
mov byte [ebp - 0x17], dl
push 2
lea edx, [ebp - 0x18]
call fcn.00499179
pop ecx
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, eax
mov dword [ebp - 0xc], edx
mov edi, eax
mov dword [ebx], 2
cmp edi, 0x20
jae 0x499847
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x49981d
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x499851
mov dword [eax + 4], edx
test dword [ebx + 0x10], 0x200
je 0x499884
mov ecx, dword [ebx + 0x18]
mov eax, edx
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, edx
mov byte [ebp - 0x18], dl
shr edx, 0x18
shr eax, 0x10
mov byte [ebp - 0x15], dl
push 4
lea edx, [ebp - 0x18]
mov byte [ebp - 0x16], al
call fcn.00499179
pop ecx
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, eax
mov dword [ebp - 0xc], edx
mov edi, eax
mov dword [ebx], 3
cmp edi, dword [ebp - 0x20]
jae 0x4998c8
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 0x20]
jb 0x49989e
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x4998e0
movzx eax, dl
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x20]
mov ecx, edx
shr ecx, 8
mov dword [eax + 0xc], ecx
test dword [ebx + 0x10], 0x200
je 0x499903
mov ecx, dword [ebx + 0x18]
mov byte [ebp - 0x18], dl
shr edx, 8
mov byte [ebp - 0x17], dl
push 2
lea edx, [ebp - 0x18]
call fcn.00499179
pop ecx
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 4
test dword [ebx + 0x10], 0x400
je 0x49998f
cmp edi, dword [ebp - 0x20]
jae 0x499953
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 0x20]
jb 0x499929
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x40], edx
test eax, eax
je 0x499960
mov dword [eax + 0x14], edx
test dword [ebx + 0x10], 0x200
je 0x499983
mov ecx, dword [ebx + 0x18]
mov byte [ebp - 0x18], dl
shr edx, 8
mov byte [ebp - 0x17], dl
push 2
lea edx, [ebp - 0x18]
call fcn.00499179
pop ecx
mov dword [ebx + 0x18], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edi
jmp 0x49999a
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x49999a
and dword [eax + 0x10], 0
mov dword [ebx], 5
test dword [ebx + 0x10], 0x400
je 0x499a36
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
cmp ecx, edx
cmova ecx, edx
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x499a29
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x4999fe
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4999fe
mov eax, dword [edx + 0x14]
sub eax, dword [ebx + 0x40]
mov edx, dword [edx + 0x18]
mov dword [ebp - 0x3c], eax
add eax, ecx
cmp eax, edx
mov eax, dword [ebp - 0x3c]
jbe 0x4999e9
sub edx, eax
jmp 0x4999eb
mov edx, ecx
add eax, dword [ebp - 0x34]
push edx
push dword [ebp - 8]
push eax
call fcn.004a8c80
mov ecx, dword [ebp - 0x38]
add esp, 0xc
test dword [ebx + 0x10], 0x200
je 0x499a1d
mov eax, dword [ebp - 8]
test eax, eax
je 0x499a1a
push ecx
mov ecx, dword [ebx + 0x18]
mov edx, eax
call fcn.00499179
pop ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x38]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [ebx + 0x40], eax
xor edx, edx
cmp dword [ebx + 0x40], edx
jne 0x49a85c
jmp 0x499a38
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x40], edx
mov dword [ebx], 6
jmp 0x499a48
xor edx, edx
test dword [ebx + 0x10], 0x800
je 0x499ae2
test ecx, ecx
je 0x49a85c
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, edx
movzx ecx, byte [eax + edi]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebx + 0x20]
inc eax
mov dword [ebp - 0x3c], eax
test ecx, ecx
je 0x499a95
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x499a95
mov edx, dword [ebx + 0x40]
cmp edx, dword [ecx + 0x20]
jae 0x499a95
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x38]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x499aa0
cmp eax, esi
jb 0x499a65
test dword [ebx + 0x10], 0x200
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x24]
je 0x499acd
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x499aca
mov edx, ecx
mov ecx, dword [ebx + 0x18]
push eax
call fcn.00499179
mov edx, dword [ebp - 0x38]
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 8], eax
sub ecx, eax
mov dword [ebp - 4], ecx
test edx, edx
jne 0x49a85c
jmp 0x499aec
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x499aec
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [ebx + 0x40], edx
mov dword [ebx], 7
jmp 0x499afb
xor edx, edx
test dword [ebx + 0x10], 0x1000
je 0x499b95
test ecx, ecx
je 0x49a85c
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, edx
movzx ecx, byte [eax + edi]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebx + 0x20]
inc eax
mov dword [ebp - 0x3c], eax
test ecx, ecx
je 0x499b48
mov edx, dword [ecx + 0x24]
test edx, edx
je 0x499b48
mov edx, dword [ebx + 0x40]
cmp edx, dword [ecx + 0x28]
jae 0x499b48
mov ecx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x38]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x499b53
cmp eax, esi
jb 0x499b18
test dword [ebx + 0x10], 0x200
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x24]
je 0x499b80
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x499b7d
mov edx, ecx
mov ecx, dword [ebx + 0x18]
push eax
call fcn.00499179
mov edx, dword [ebp - 0x38]
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 8], eax
sub ecx, eax
mov dword [ebp - 4], ecx
test edx, edx
jne 0x49a85c
jmp 0x499b9f
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x499b9f
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx], 8
test dword [ebx + 0x10], 0x200
je 0x499c06
cmp edi, dword [ebp - 0x20]
jae 0x499be6
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
mov dword [ebp - 0x10], edi
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 0x20]
jb 0x499bb9
movzx eax, word [ebx + 0x18]
cmp edx, eax
je 0x499bfa
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x49a807
xor eax, eax
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x499c23
mov eax, dword [ebx + 0x10]
sar eax, 9
and eax, 1
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [eax + 0x30], 1
xor eax, eax
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov dword [ebx], 0xb
jmp 0x49a80d
cmp edi, 0x20
jae 0x499c68
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x499c3e
mov ecx, edx
mov edi, 0xff00
and ecx, edi
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, edi
shl ecx, 8
add eax, ecx
mov ecx, dword [ebp - 4]
shr edx, 0x18
add eax, edx
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
xor eax, eax
mov edx, eax
mov dword [ebp - 0xc], edx
mov edi, eax
mov dword [ebx], 0xa
jmp 0x499ca5
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x49a823
mov dword [ebx + 0x18], 1
mov dword [esi + 0x30], 1
mov dword [ebx], 0xb
jmp 0x499cc6
xor eax, eax
cmp dword [ebx + 4], eax
je 0x499ce5
mov ecx, edi
and ecx, 7
shr edx, cl
sub edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebx], 0x18
mov dword [ebp - 0xc], edx
jmp 0x49a80d
cmp edi, 3
jae 0x499d17
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 3
jb 0x499ced
mov eax, edx
and eax, 1
mov dword [ebx + 4], eax
shr edx, 1
mov eax, edx
and eax, 3
sub eax, 0
je 0x499d6f
dec eax
je 0x499d4b
dec eax
je 0x499d43
dec eax
jne 0x499d75
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx], 0x1b
jmp 0x499d75
mov dword [ebx], 0xf
jmp 0x499d75
mov dword [ebx + 0x4c], 0x4f33f8
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x4f3c20
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x12
jmp 0x499d75
mov dword [ebx], 0xd
shr edx, 2
sub edi, 3
jmp 0x499758
mov ecx, edi
and ecx, 7
shr edx, cl
sub edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
cmp edi, 0x20
jae 0x499dc4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49a85f
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov dword [ebp - 0x10], edi
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x499d97
mov eax, edx
mov ecx, edx
not eax
and ecx, 0xffff
shr eax, 0x10
cmp ecx, eax
je 0x499de3
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x49a807
xor eax, eax
mov edx, eax
mov edi, eax
mov dword [ebx + 0x40], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 0xe
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x499e44
cmp esi, ecx
cmova esi, ecx
cmp esi, dword [ebp - 0x14]
cmova esi, dword [ebp - 0x14]
test esi, esi
je 0x49a85c
push esi
push dword [ebp - 8]
push dword [ebp - 0x1c]
call fcn.004a8c80
mov ecx, dword [ebp - 4]
add dword [ebp - 8], esi
sub dword [ebp - 0x14], esi
add dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0xc]
sub ecx, esi
add esp, 0xc
sub dword [ebx + 0x40], esi
mov dword [ebp - 4], ecx
mov esi, dword [ebp - 0x24]
jmp 0x49a810
mov dword [ebx], 0xb
jmp 0x499e3c
cmp edi, 0xe
jae 0x499e7e
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0xe
jb 0x499e54
mov eax, edx
and eax, 0x1f
add eax, 0x101
mov dword [ebx + 0x60], eax
shr edx, 5
mov eax, edx
and eax, 0x1f
inc eax
shr edx, 5
mov dword [ebx + 0x64], eax
mov eax, edx
and eax, 0xf
add eax, 4
shr edx, 4
sub edi, 0xe
cmp dword [ebx + 0x60], 0x11e
mov dword [ebx + 0x5c], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
ja 0x499ecb
cmp dword [ebx + 0x64], 0x1e
ja 0x499ecb
mov eax, dword [ebp - 0x20]
and dword [ebx + 0x68], 0
mov dword [ebx], eax
jmp case.0x49963d.16
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x4997b3
cmp edi, 3
jae 0x499f09
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 3
jb 0x499edf
mov eax, dword [ebx + 0x68]
mov ecx, edx
movzx eax, word [eax*2 + 0x4f3bf8]
and ecx, 7
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
mov ecx, dword [ebp - 4]
shr edx, 3
sub edi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x5c]
jb 0x499ed7
jmp 0x499f4f
mov eax, dword [ebx + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x4f3bf8]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
cmp dword [ebx + 0x68], 0x13
jb 0x499f3a
lea edx, [ebx + 0x6c]
lea eax, [ebx + 0x530]
mov dword [edx], eax
mov dword [ebx + 0x4c], eax
lea eax, [ebx + 0x2f0]
push eax
lea ecx, [ebx + 0x54]
push ecx
push edx
mov dword [ecx], 7
push 0x13
lea edx, [ebx + 0x70]
xor ecx, ecx
call fcn.0049ec93
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x499f9a
mov dword [esi + 0x18], str.invalid_code_lengths_set
jmp 0x49a807
mov eax, dword [ebp - 0x48]
and dword [ebx + 0x68], 0
mov dword [ebx], eax
jmp case.0x49963d.17
mov ecx, dword [ebx + 0x54]
xor eax, eax
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x3c], eax
jmp 0x499fdd
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49a85f
mov eax, dword [ebp - 8]
dec ecx
movzx eax, byte [eax]
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], edx
add edi, 8
mov ecx, dword [ebx + 0x4c]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x34], eax
cmp ecx, edi
ja 0x499fb6
mov ecx, eax
shr ecx, 0x10
cmp cx, word [ebp - 0x20]
jae 0x49a059
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x3c], ecx
cmp edi, ecx
jae 0x49a038
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49a85f
dec ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov ecx, edi
shl edx, cl
add edi, 8
add dword [ebp - 0xc], edx
inc dword [ebp - 8]
cmp edi, dword [ebp - 0x3c]
jb 0x49a00e
mov edx, dword [ebp - 0xc]
movzx ecx, ah
mov ax, word [ebp - 0x32]
shr edx, cl
sub edi, ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x10], edi
mov word [ebx + ecx*2 + 0x70], ax
inc dword [ebx + 0x68]
mov dword [ebp - 0xc], edx
jmp case.0x49963d.17
mov ecx, dword [ebp - 0x20]
cmp word [ebp - 0x32], cx
jne 0x49a0d4
movzx eax, ah
mov dword [ebp - 0x34], eax
lea ecx, [eax + 2]
mov dword [ebp - 0x3c], ecx
cmp edi, ecx
jae 0x49a0a2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49a85f
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 0x3c]
jb 0x49a075
mov eax, dword [ebp - 0x34]
mov ecx, eax
shr edx, cl
sub edi, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
test eax, eax
je 0x49a1bb
movzx eax, word [ebx + eax*2 + 0x6e]
mov ecx, edx
and ecx, 3
add ecx, 3
shr edx, 2
mov dword [ebp - 0x3c], eax
sub edi, 2
jmp 0x49a174
mov ecx, dword [ebp - 0x48]
cmp word [ebp - 0x32], cx
movzx ecx, ah
jne 0x49a128
mov dword [ebp - 0x10], ecx
jmp 0x49a10c
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49a85f
mov eax, dword [ebp - 8]
dec ecx
movzx eax, byte [eax]
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x10]
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
lea eax, [ecx + 3]
cmp edi, eax
jb 0x49a0e5
shr edx, cl
push 0xfffffffffffffffd
pop eax
mov ecx, edx
and ecx, 7
add ecx, 3
shr edx, 3
sub eax, dword [ebp - 0x10]
jmp 0x49a16e
mov dword [ebp - 0x10], ecx
jmp 0x49a154
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49a85f
mov eax, dword [ebp - 8]
dec ecx
movzx eax, byte [eax]
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x10]
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
lea eax, [ecx + 7]
cmp edi, eax
jb 0x49a12d
shr edx, cl
push 0xfffffffffffffff9
pop eax
mov ecx, edx
and ecx, 0x7f
add ecx, 0xb
shr edx, 7
sub eax, dword [ebp - 0x10]
and dword [ebp - 0x3c], 0
add edi, eax
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
mov dword [ebp - 0x34], ecx
add ecx, dword [ebp - 0x38]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
cmp ecx, eax
ja 0x49a1c7
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je case.0x49963d.17
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x68]
mov word [ebx + eax*2 + 0x70], si
inc dword [ebx + 0x68]
dec ecx
jne 0x49a194
mov esi, dword [ebp - 0x24]
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x68]
mov dword [ebp - 0x38], ecx
cmp ecx, eax
jb 0x499fa8
jmp 0x49a1d4
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x49a807
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx], 0x1b
cmp dword [ebx], 0x1b
je 0x49a80d
lea ecx, [ebx + 0x6c]
lea eax, [ebx + 0x530]
mov dword [ecx], eax
lea edx, [ebx + 0x2f0]
push edx
mov dword [ebx + 0x4c], eax
lea eax, [ebx + 0x54]
push eax
push ecx
push dword [ebx + 0x60]
xor ecx, ecx
lea edx, [ebx + 0x70]
inc ecx
mov dword [eax], 9
call fcn.0049ec93
add esp, 0x10
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x49a224
mov edx, dword [ebp - 0xc]
mov dword [esi + 0x18], str.invalid_literal_lengths_set
jmp 0x49a807
lea ecx, [ebx + 0x6c]
lea edx, [ebx + 0x2f0]
mov eax, dword [ecx]
push edx
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x58]
push eax
push ecx
push dword [ebx + 0x64]
mov dword [eax], 6
mov eax, dword [ebx + 0x60]
add eax, 0x38
push 2
lea edx, [ebx + eax*2]
pop ecx
call fcn.0049ec93
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add esp, 0x10
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x49a26e
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x4997b3
mov dword [ebx], 0x12
cmp ecx, 6
jb 0x49a2cf
mov eax, dword [ebp - 0x14]
cmp eax, 0x102
jb 0x49a2cf
mov ebx, dword [ebp - 0x1c]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp - 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov dword [ebx + 0x38], edx
mov edx, dword [ebp - 0x28]
mov ecx, esi
mov dword [ebx + 0x3c], edi
call fcn.0049e8a7
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
jmp 0x49a810
mov ecx, dword [ebx + 0x54]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0x38], ecx
dec eax
mov dword [ebp - 0x3c], eax
jmp 0x49a310
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49a85f
mov eax, dword [ebp - 8]
dec ecx
movzx eax, byte [eax]
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebx + 0x4c]
add edx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x3c]
add edi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x49a2e3
test al, al
je 0x49a3db
test al, 0xf0
jne 0x49a3db
mov ebx, eax
shr ebx, 8
xor edi, edi
movzx esi, bl
movzx ecx, al
add ecx, esi
inc edi
shl edi, cl
mov ecx, esi
mov edx, eax
shr eax, 0x10
dec edi
and edi, dword [ebp - 0xc]
mov dword [ebp - 0x3c], edx
shr edi, cl
mov ecx, dword [ebp - 0x38]
add edi, eax
mov eax, dword [ecx + edi*4]
mov edi, dword [ebp - 0x10]
mov ecx, eax
shr ecx, 8
movzx esi, cl
movzx ecx, bl
add esi, ecx
cmp esi, edi
jbe 0x49a3cb
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
test esi, esi
je 0x49a859
dec esi
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov ecx, edi
movzx eax, byte [esi]
shl eax, cl
add edi, 8
mov dword [ebp - 0x10], edi
movzx edi, dh
add ebx, eax
movzx eax, word [ebp - 0x3a]
inc esi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
mov dword [ebp - 0xc], ebx
dec esi
and esi, ebx
shr esi, cl
add esi, eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x10]
cmp ecx, edi
ja 0x49a372
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub edi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub edi, ecx
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x40], ecx
test al, al
jne 0x49a404
mov dword [ebx], 0x17
jmp 0x49a80d
test al, 0x20
jne 0x499c2b
mov ecx, dword [ebp - 4]
test al, 0x40
je 0x49a41f
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x4997b3
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x48], eax
mov dword [ebx], 0x13
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x49a47c
cmp edi, esi
jae 0x49a465
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, esi
jb 0x49a43c
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
dec eax
and eax, edx
add dword [ebx + 0x40], eax
shr edx, cl
sub edi, esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0x58]
xor eax, eax
lea esi, [eax + 1]
shl esi, cl
mov ecx, dword [ebx + 0x50]
mov dword [ebp - 0x38], ecx
jmp 0x49a4be
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49a85f
mov eax, dword [ebp - 8]
dec ecx
movzx eax, byte [eax]
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebx + 0x50]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
lea eax, [esi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x49a494
test al, 0xf0
jne 0x49a581
mov ebx, eax
shr ebx, 8
xor edi, edi
movzx esi, bl
movzx ecx, al
add ecx, esi
inc edi
shl edi, cl
mov ecx, esi
mov edx, eax
shr eax, 0x10
dec edi
and edi, dword [ebp - 0xc]
mov dword [ebp - 0x3c], edx
shr edi, cl
mov ecx, dword [ebp - 0x38]
add edi, eax
mov eax, dword [ecx + edi*4]
mov edi, dword [ebp - 0x10]
mov ecx, eax
shr ecx, 8
movzx esi, cl
movzx ecx, bl
add esi, ecx
cmp esi, edi
jbe 0x49a574
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
test esi, esi
je 0x49a859
dec esi
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov ecx, edi
movzx eax, byte [esi]
shl eax, cl
add edi, 8
mov dword [ebp - 0x10], edi
movzx edi, dh
add ebx, eax
movzx eax, word [ebp - 0x3a]
inc esi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
mov dword [ebp - 0xc], ebx
dec esi
and esi, ebx
shr esi, cl
add esi, eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x10]
cmp ecx, edi
ja 0x49a51b
mov ebx, dword [ebp - 0x30]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub edi, ecx
mov esi, dword [ebp - 0x24]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
test al, 0x40
je 0x49a5a6
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x49a807
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], eax
mov dword [ebx], 0x15
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x49a60c
cmp edi, ecx
jae 0x49a5f7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49a85f
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebx + 0x48]
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x49a5cb
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, edx
add dword [ebx + 0x44], eax
shr edx, cl
sub edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
add eax, ecx
cmp dword [ebx + 0x44], eax
jbe 0x49a628
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x49a807
mov dword [ebx], 0x16
jmp 0x49a633
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x49a85c
mov eax, ecx
mov ecx, dword [ebx + 0x44]
sub eax, esi
cmp ecx, eax
jbe 0x49a66b
mov esi, dword [ebx + 0x34]
sub ecx, eax
cmp ecx, dword [ebx + 0x30]
jbe 0x49a65d
sub ecx, dword [ebx + 0x30]
add esi, dword [ebx + 0x28]
sub esi, ecx
jmp 0x49a662
sub esi, ecx
add esi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x40]
cmp ecx, eax
jbe 0x49a675
jmp 0x49a673
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x40]
sub esi, ecx
mov ecx, eax
cmp ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmova ecx, dword [ebp - 0x14]
sub dword [ebp - 0x14], ecx
sub eax, ecx
mov dword [ebx + 0x40], eax
sub esi, edx
mov al, byte [esi + edx]
mov byte [edx], al
inc edx
dec ecx
jne 0x49a689
cmp dword [ebx + 0x40], 0
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0xc]
jne 0x49a810
mov dword [ebx], 0x12
jmp 0x49a810
cmp dword [ebp - 0x14], 0
je 0x49a85c
mov esi, dword [ebp - 0x1c]
mov al, byte [ebx + 0x40]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x14]
mov byte [esi], al
mov dword [ebx], 0x12
jmp 0x499e3c
cmp dword [ebx + 8], 0
je 0x49a7aa
cmp edi, 0x20
jae 0x49a715
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
mov dword [ebp - 0x10], edi
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x49a6e8
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
sub ecx, eax
add dword [esi + 0x14], ecx
add dword [ebx + 0x1c], ecx
test ecx, ecx
je 0x49a75c
cmp dword [ebx + 0x10], 0
je 0x49a741
mov eax, dword [ebp - 0x1c]
sub eax, ecx
je 0x49a753
push ecx
mov ecx, dword [ebx + 0x18]
mov edx, eax
call fcn.00499179
jmp 0x49a74f
mov edx, dword [ebp - 0x1c]
sub edx, ecx
push ecx
mov ecx, dword [ebx + 0x18]
call fcn.0049e674
mov edx, dword [ebp - 0xc]
pop ecx
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov ecx, edx
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
shl ecx, 8
mov eax, edx
shr eax, 8
and eax, 0xff00
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
xor eax, eax
cmp dword [ebx + 0x10], eax
cmovne ecx, edx
cmp ecx, dword [ebx + 0x18]
mov ecx, dword [ebp - 4]
je 0x49a7a0
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x4997b3
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 0x19
xor eax, eax
cmp dword [ebx + 8], eax
je 0x49a846
cmp dword [ebx + 0x10], eax
je 0x49a846
cmp edi, 0x20
jae 0x49a7fb
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x49a85c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 4]
add edi, 8
mov dword [ebp - 0x10], edi
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x49a7cc
xor eax, eax
cmp edx, dword [ebx + 0x1c]
je 0x49a841
mov dword [esi + 0x18], str.incorrect_length_check
mov dword [ebx], 0x1b
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
cmp eax, 0x1c
jbe switch.0x0049963d
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edi
push 2
jmp 0x49a81d
mov dword [ebp - 0xc], eax
mov edi, eax
mov dword [ebx], 0x1a
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x49a85c
push 0xfffffffffffffffd
pop eax
jmp 0x49a84f
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x10], edx
mov dword [ebx + 0x3c], edi
xor edi, edi
mov dword [ebx + 0x38], ecx
cmp dword [ebx + 0x28], edi
jne 0x49a893
cmp dword [ebx], 0x18
jge 0x49a8b0
cmp eax, dword [esi + 0x10]
je 0x49a8b0
mov edx, eax
mov ecx, esi
call fcn.004994ce
test eax, eax
je 0x49a8ad
mov dword [ebx], 0x1c
push 0xfffffffffffffffc
jmp 0x49a81d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
sub ecx, dword [esi + 4]
sub eax, dword [esi + 0x10]
add dword [esi + 8], ecx
add dword [esi + 0x14], eax
add dword [ebx + 0x1c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x28], eax
cmp dword [ebx + 8], edi
je 0x49a8fc
test eax, eax
je 0x49a8fc
mov edx, dword [esi + 0xc]
cmp dword [ebx + 0x10], edi
je 0x49a8e8
sub edx, eax
je 0x49a8f6
mov ecx, dword [ebx + 0x18]
push eax
call fcn.00499179
jmp 0x49a8f3
mov ecx, dword [ebx + 0x18]
push eax
sub edx, eax
call fcn.0049e674
mov edi, eax
pop ecx
mov dword [ebx + 0x18], edi
mov dword [esi + 0x30], edi
mov ecx, dword [ebx + 4]
neg ecx
sbb ecx, ecx
and ecx, 0x40
xor eax, eax
cmp dword [ebx], 0xb
mov edx, 0x80
cmove eax, edx
add ecx, eax
add ecx, dword [ebx + 0x3c]
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x2c], ecx
mov esi, dword [ebp - 0x40]
test esi, esi
jne 0x49a81e
cmp dword [ebp - 0x28], esi
jne 0x49a81e
push 0xfffffffffffffffb
pop ecx
test eax, eax
cmove eax, ecx
jmp 0x49a81e