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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
cmp edi, eax
je case.default.0x98456e
mov ebx, dword [edi + 0x1c]
cmp ebx, eax
je case.default.0x98456e
cmp dword [edi + 0xc], eax
je case.default.0x98456e
cmp dword [edi], eax
jne 0x984531
cmp dword [edi + 4], eax
jne case.default.0x98456e
cmp dword [ebx], 0xb
jne 0x98453c
mov dword [ebx], 0xc
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov edx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], ecx
jmp 0x985480
jmp dword [eax*4 + 0x9855aa]
cmp dword [ebx + 8], 0
jne 0x9845ab
mov dword [ebx], 0xc
jmp 0x985480
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
cmp esi, 0x10
jb 0x984586
mov eax, dword [ebx + 8]
test al, 2
je 0x9845fc
cmp edx, 0x8b1f
jne 0x9845fc
xor esi, esi
push esi
push esi
push esi
call fcn.00986134
mov dword [ebx + 0x14], eax
push 2
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1c], 0x1f
mov byte [ebp - 0x1b], 0x8b
push dword [ebx + 0x14]
call fcn.00986134
add esp, 0x18
mov dword [ebx + 0x14], eax
mov dword [ebx], 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov edx, dword [ebp - 0xc]
jmp 0x985480
and dword [ebx + 0x10], 0
test al, 1
je 0x984682
mov eax, edx
and eax, 0xff
shr edx, 8
shl eax, 8
add eax, edx
push 0x1f
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x98467f
mov eax, dword [ebp - 0xc]
and al, 0xf
cmp al, 8
je 0x984633
mov dword [edi + 0x18], 0x97ef1c
jmp 0x984f1b
shr dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
and eax, 0xf
sub esi, 4
add eax, 8
cmp eax, dword [ebx + 0x1c]
mov dword [ebp - 0x14], esi
jbe 0x984657
mov dword [edi + 0x18], 0x97ef08
jmp 0x984f1b
xor esi, esi
push esi
push esi
push esi
call fcn.00985dce
mov dword [ebx + 0x14], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
shr eax, 8
not eax
and eax, 2
add esp, 0xc
or eax, 9
mov dword [ebx], eax
jmp 0x9845ee
mov edx, dword [ebp - 0xc]
mov dword [edi + 0x18], 0x97eef0
jmp 0x98547a
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
cmp esi, 0x10
jb 0x98468e
cmp dl, 8
mov dword [ebx + 0x10], edx
je 0x9846cc
mov dword [edi + 0x18], 0x97ef1c
jmp 0x98547a
test dh, 0xe0
je 0x9846dd
mov dword [edi + 0x18], 0x97eed4
jmp 0x98547a
test dh, 2
je 0x9846ff
mov byte [ebp - 0x1c], dl
push 2
lea eax, [ebp - 0x1c]
shr edx, 8
push eax
mov byte [ebp - 0x1b], dl
push dword [ebx + 0x14]
call fcn.00986134
add esp, 0xc
mov dword [ebx + 0x14], eax
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebx], 2
mov edx, esi
jmp case.0x98456e.2
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
cmp esi, 0x20
jb 0x98470e
test byte [ebx + 0x11], 2
je 0x984765
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x1c], dl
push 4
lea eax, [ebp - 0x1c]
shr edx, 0x18
push eax
mov byte [ebp - 0x19], dl
push dword [ebx + 0x14]
call fcn.00986134
add esp, 0xc
mov dword [ebx + 0x14], eax
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebx], 3
mov edx, esi
jmp case.0x98456e.3
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
cmp esi, 0x10
jb 0x984774
test byte [ebx + 0x11], 2
je 0x9847bb
mov byte [ebp - 0x1c], dl
push 2
lea eax, [ebp - 0x1c]
shr edx, 8
push eax
mov byte [ebp - 0x1b], dl
push dword [ebx + 0x14]
call fcn.00986134
add esp, 0xc
mov dword [ebx + 0x14], eax
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebx], 4
mov edx, esi
test byte [ebx + 0x11], 4
je 0x984827
jmp 0x9847f2
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
cmp esi, 0x10
jb 0x9847d3
test byte [ebx + 0x11], 2
mov dword [ebx + 0x38], edx
je 0x98481d
mov byte [ebp - 0x1c], dl
push 2
lea eax, [ebp - 0x1c]
shr edx, 8
push eax
mov byte [ebp - 0x1b], dl
push dword [ebx + 0x14]
call fcn.00986134
add esp, 0xc
mov dword [ebx + 0x14], eax
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov edx, esi
mov dword [ebx], 5
test byte [ebx + 0x11], 4
je 0x98487b
mov eax, dword [ebx + 0x38]
cmp eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jbe 0x984844
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x984871
test byte [ebx + 0x11], 2
je 0x984868
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebx + 0x14]
call fcn.00986134
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [ebx + 0x38], eax
cmp dword [ebx + 0x38], 0
jne 0x9854d1
mov dword [ebx], 6
test byte [ebx + 0x11], 8
je 0x9848e1
cmp dword [ebp - 4], 0
je 0x9854d1
and dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
movzx eax, byte [ecx + eax]
inc dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x9848b1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jb 0x984895
test byte [ebx + 0x11], 0x20
je 0x9848ce
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebx + 0x14]
call fcn.00986134
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 0x2c], 0
jne 0x9854d1
mov dword [ebx], 7
test byte [ebx + 0x11], 0x10
je 0x984947
cmp dword [ebp - 4], 0
je 0x9854d1
and dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
movzx eax, byte [ecx + eax]
inc dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x984917
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jb 0x9848fb
test byte [ebx + 0x11], 0x20
je 0x984934
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebx + 0x14]
call fcn.00986134
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 0x2c], 0
jne 0x9854d1
mov dword [ebx], 8
test byte [ebx + 0x11], 2
je 0x98499f
jmp 0x98497a
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
cmp esi, 0x10
jb 0x984955
mov eax, dword [ebx + 0x14]
and eax, 0xffff
cmp edx, eax
je 0x984997
mov dword [edi + 0x18], 0x97eec0
jmp 0x98547a
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
xor eax, eax
push eax
push eax
push eax
call fcn.00986134
mov dword [ebx + 0x14], eax
mov dword [edi + 0x30], eax
add esp, 0xc
mov dword [ebx], 0xb
jmp 0x9845f4
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add esi, 8
cmp esi, 0x20
jb 0x9849bd
mov eax, edx
and eax, 0xff00
mov ecx, edx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0xa]
shl eax, 8
shr edx, 0x18
add eax, ecx
add eax, edx
xor esi, esi
mov dword [ebx + 0x14], eax
mov dword [edi + 0x30], eax
mov dword [ebp - 0xc], esi
mov dword [ebx], 0xa
mov edx, esi
cmp dword [ebx + 0xc], 0
je 0x985493
xor eax, eax
push eax
push eax
push eax
call fcn.00985dce
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0x14], eax
mov dword [edi + 0x30], eax
add esp, 0xc
mov dword [ebx], 0xb
cmp dword [ebp + 0xc], 5
je 0x9854d1
cmp dword [ebx + 4], 0
je 0x984a83
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebx], 0x18
mov dword [ebp - 0xc], edx
jmp 0x985480
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
cmp esi, 3
jb 0x984a64
mov eax, edx
and eax, 1
shr edx, 1
mov dword [ebx + 4], eax
mov eax, edx
and eax, 3
dec esi
sub eax, 0
je 0x984ae1
dec eax
je 0x984abd
dec eax
je 0x984ab5
dec eax
jne 0x984ae7
mov dword [edi + 0x18], 0x97eeac
mov dword [ebx], 0x1b
jmp 0x984ae7
mov dword [ebx], 0xf
jmp 0x984ae7
mov dword [ebx + 0x44], 0x97a150
mov dword [ebx + 0x4c], 9
mov dword [ebx + 0x48], 0x97a950
mov dword [ebx + 0x50], 5
mov dword [ebx], 0x12
jmp 0x984ae7
mov dword [ebx], 0xd
shr edx, 2
dec esi
dec esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
jmp 0x985480
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
jmp 0x984b21
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
cmp esi, 0x20
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
jb 0x984b02
mov ecx, edx
mov eax, edx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x984b4a
mov dword [edi + 0x18], 0x97ee8c
jmp 0x98547a
xor esi, esi
mov dword [ebx + 0x38], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebx], 0xe
mov edx, esi
mov ecx, dword [ebx + 0x38]
test ecx, ecx
mov dword [ebp - 0x10], ecx
je 0x984bb6
cmp ecx, dword [ebp - 4]
jbe 0x984b72
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x18]
jbe 0x984b7d
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x9854d1
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x20]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [ebp - 0x18], eax
add dword [ebp - 0x20], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
sub dword [ebx + 0x38], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
jmp 0x985480
mov dword [ebx], 0xb
jmp 0x985480
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
cmp esi, 0xe
jb 0x984bc1
mov eax, edx
and eax, 0x1f
add eax, 0x101
mov dword [ebx + 0x58], eax
shr edx, 5
mov eax, edx
and eax, 0x1f
inc eax
shr edx, 5
mov dword [ebx + 0x5c], eax
mov eax, edx
and eax, 0xf
add eax, 4
shr edx, 4
sub esi, 0xe
cmp dword [ebx + 0x58], 0x11e
mov dword [ebx + 0x54], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
ja 0x984c33
cmp dword [ebx + 0x5c], 0x1e
ja 0x984c33
and dword [ebx + 0x60], 0
mov dword [ebx], 0x10
jmp case.0x98456e.16
mov dword [edi + 0x18], 0x97ee68
jmp 0x98547a
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
cmp esi, 3
jb 0x984c3f
mov ecx, dword [ebx + 0x60]
movzx ecx, word [ecx*2 + 0x97a9d0]
xor eax, eax
mov al, dl
shr edx, 3
mov dword [ebp - 0xc], edx
and eax, 7
mov word [ebx + ecx*2 + 0x68], ax
inc dword [ebx + 0x60]
sub esi, 3
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 0x60]
cmp eax, dword [ebx + 0x54]
jb 0x984c5e
jmp 0x984ca7
mov eax, dword [ebx + 0x60]
movzx eax, word [eax*2 + 0x97a9d0]
and word [ebx + eax*2 + 0x68], 0
inc dword [ebx + 0x60]
cmp dword [ebx + 0x60], 0x13
jb 0x984c93
lea eax, [ebx + 0x528]
lea ecx, [ebx + 0x64]
mov dword [ecx], eax
mov dword [ebx + 0x44], eax
lea edx, [ebx + 0x2e8]
push edx
lea eax, [ebx + 0x4c]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [ebx + 0x68]
push eax
push 0
call fcn.00985a27
mov edx, dword [ebp - 0xc]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x28], eax
je 0x984cf3
mov dword [edi + 0x18], 0x97ee4c
jmp 0x98547a
and dword [ebx + 0x60], 0
mov dword [ebx], 0x11
jmp case.0x98456e.17
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov ecx, dword [ebx + 0x4c]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebx + 0x44]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, esi
mov dword [ebp - 0x10], eax
ja 0x984d02
cmp word [ebp - 0xe], 0x10
movzx ecx, ah
mov dword [ebp - 0x14], ecx
jb 0x984d7d
je 0x984dc1
cmp word [ebp - 0xe], 0x11
jne 0x984e53
jmp 0x984e19
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x14]
add edx, eax
inc dword [ebp - 8]
add esi, 8
cmp esi, ecx
jb 0x984d5b
mov eax, dword [ebx + 0x60]
shr edx, cl
sub esi, ecx
mov cx, word [ebp - 0xe]
mov word [ebx + eax*2 + 0x68], cx
inc dword [ebx + 0x60]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
jmp case.0x98456e.17
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x14]
add edx, eax
inc dword [ebp - 8]
add esi, 8
lea eax, [ecx + 2]
cmp esi, eax
jb 0x984d9f
mov eax, dword [ebx + 0x60]
shr edx, cl
sub esi, ecx
test eax, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], edx
je 0x984eba
movzx eax, word [ebx + eax*2 + 0x66]
mov dword [ebp - 0x2c], eax
mov eax, edx
and eax, 3
add eax, 3
shr edx, 2
dec esi
mov dword [ebp - 0x10], eax
dec esi
jmp 0x984e75
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x14]
add edx, eax
inc dword [ebp - 8]
add esi, 8
lea eax, [ecx + 3]
cmp esi, eax
jb 0x984df7
shr edx, cl
push 0xfffffffffffffffd
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
jmp 0x984e69
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x14]
add edx, eax
inc dword [ebp - 8]
add esi, 8
lea eax, [ecx + 7]
cmp esi, eax
jb 0x984e31
shr edx, cl
push 0xfffffffffffffff9
mov eax, edx
and eax, 0x7f
add eax, 0xb
shr edx, 7
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], eax
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x5c]
add eax, dword [ebp - 0x10]
add ecx, dword [ebx + 0x58]
mov dword [ebp - 0xc], edx
cmp eax, ecx
mov dword [ebp - 0x14], esi
ja 0x984ec6
mov eax, dword [ebp - 0x10]
test eax, eax
je case.0x98456e.17
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x60]
mov cx, word [ebp - 0x2c]
mov word [ebx + eax*2 + 0x68], cx
inc dword [ebx + 0x60]
dec dword [ebp - 0x10]
jne 0x984e95
mov eax, dword [ebx + 0x5c]
add eax, dword [ebx + 0x58]
cmp dword [ebx + 0x60], eax
jb 0x984d21
jmp 0x984ed3
mov dword [edi + 0x18], 0x97ee30
jmp 0x98547a
mov dword [edi + 0x18], 0x97ee30
mov dword [ebx], 0x1b
cmp dword [ebx], 0x1b
je 0x985480
lea eax, [ebx + 0x528]
lea ecx, [ebx + 0x64]
mov dword [ecx], eax
mov dword [ebx + 0x44], eax
lea edx, [ebx + 0x2e8]
push edx
lea eax, [ebx + 0x4c]
push eax
push ecx
push dword [ebx + 0x58]
mov dword [eax], 9
lea eax, [ebx + 0x68]
push eax
push 1
call fcn.00985a27
add esp, 0x18
test eax, eax
mov dword [ebp - 0x28], eax
je 0x984f23
mov dword [edi + 0x18], 0x97ee14
mov edx, dword [ebp - 0xc]
jmp 0x98547a
lea ecx, [ebx + 0x64]
mov eax, dword [ecx]
mov dword [ebx + 0x48], eax
lea edx, [ebx + 0x2e8]
push edx
lea eax, [ebx + 0x50]
push eax
push ecx
push dword [ebx + 0x5c]
mov dword [eax], 6
mov eax, dword [ebx + 0x58]
lea eax, [ebx + eax*2 + 0x68]
push eax
push 2
call fcn.00985a27
mov edx, dword [ebp - 0xc]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x28], eax
je 0x984f68
mov dword [edi + 0x18], 0x97edfc
jmp 0x98547a
mov dword [ebx], 0x12
cmp dword [ebp - 4], 6
jb 0x984fca
cmp dword [ebp - 0x18], 0x102
jb 0x984fca
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x24]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
push edi
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], esi
call fcn.00985678
mov eax, dword [edi + 0xc]
mov esi, dword [ebx + 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x30]
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x9845f1
mov ecx, dword [ebx + 0x4c]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + ecx*4]
jmp 0x98500f
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebx + 0x4c]
add esi, 8
add edx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebx + 0x44]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, esi
mov dword [ebp - 0x10], eax
ja 0x984fdf
test al, al
je 0x9850b3
test al, 0xf0
jne 0x9850b3
movzx ecx, ah
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov cl, al
mov dword [ebp - 0x2c], eax
xor eax, eax
inc eax
add ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x14]
dec eax
and eax, edx
shr eax, cl
movzx ecx, word [ebp - 0xe]
add eax, ecx
mov ecx, eax
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [ebp - 0x2b]
mov dword [ebp - 0x14], ecx
jmp 0x9850a0
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
xor ecx, ecx
mov cl, byte [ebp - 0x2c]
add esi, 8
add edx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
add ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x14]
dec eax
and eax, edx
shr eax, cl
movzx ecx, word [ebp - 0x2a]
add eax, ecx
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
movzx eax, ah
add eax, ecx
cmp eax, esi
ja 0x98505d
mov eax, dword [ebp - 0x10]
shr edx, cl
sub esi, ecx
movzx ecx, ah
shr edx, cl
movzx ecx, ah
sub esi, ecx
test al, al
movzx ecx, word [ebp - 0xe]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov dword [ebx + 0x38], ecx
jne 0x9850d9
mov dword [ebx], 0x17
jmp 0x985480
test al, 0x20
jne 0x984bb6
test al, 0x40
je 0x9850f1
mov dword [edi + 0x18], 0x97ede0
jmp 0x98547a
and eax, 0xf
mov dword [ebx + 0x40], eax
mov dword [ebx], 0x13
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x98513e
cmp esi, eax
jae 0x98512c
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
inc dword [ebp - 8]
cmp esi, dword [ebx + 0x40]
jb 0x985108
mov ecx, dword [ebx + 0x40]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, edx
add dword [ebx + 0x38], eax
shr edx, cl
sub esi, ecx
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0x50]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + ecx*4]
jmp 0x985189
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebx + 0x50]
add esi, 8
add edx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebx + 0x48]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, esi
mov dword [ebp - 0x10], eax
ja 0x985159
test al, 0xf0
jne 0x985225
movzx ecx, ah
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov cl, al
mov dword [ebp - 0x2c], eax
xor eax, eax
inc eax
add ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x14]
dec eax
and eax, edx
shr eax, cl
movzx ecx, word [ebp - 0xe]
add eax, ecx
mov ecx, eax
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [ebp - 0x2b]
mov dword [ebp - 0x14], ecx
jmp 0x985212
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
xor ecx, ecx
mov cl, byte [ebp - 0x2c]
add esi, 8
add edx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
add ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x14]
dec eax
and eax, edx
shr eax, cl
movzx ecx, word [ebp - 0x2a]
add eax, ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
movzx eax, ah
add eax, ecx
cmp eax, esi
ja 0x9851cf
mov eax, dword [ebp - 0x10]
shr edx, cl
sub esi, ecx
movzx ecx, ah
shr edx, cl
movzx ecx, ah
sub esi, ecx
test al, 0x40
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
je 0x985245
mov dword [edi + 0x18], 0x97edc8
jmp 0x98547a
movzx ecx, word [ebp - 0xe]
and eax, 0xf
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x40], eax
mov dword [ebx], 0x15
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x98529f
cmp esi, eax
jae 0x985287
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
inc dword [ebp - 8]
cmp esi, dword [ebx + 0x40]
jb 0x985263
mov ecx, dword [ebx + 0x40]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, edx
add dword [ebx + 0x3c], eax
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], edx
mov eax, dword [ebx + 0x24]
sub eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x24]
cmp dword [ebx + 0x3c], eax
jbe 0x9852b9
mov dword [edi + 0x18], 0x97eda8
jmp 0x98547a
mov dword [ebx], 0x16
cmp dword [ebp - 0x18], 0
je 0x9854d1
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x3c]
cmp eax, ecx
jbe 0x98530c
sub eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x28]
cmp dword [ebp - 0x10], eax
jbe 0x9852f1
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x2c]
add eax, dword [ebx + 0x20]
sub eax, dword [ebp - 0x10]
jmp 0x9852fa
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebp - 0x10]
add eax, dword [ebx + 0x28]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x38]
cmp ecx, eax
mov dword [ebp - 0x34], eax
jbe 0x98531f
jmp 0x98531a
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], eax
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x18]
jbe 0x98532a
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0x18], ecx
sub eax, ecx
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
inc dword [ebp - 0x20]
mov al, byte [eax]
inc dword [ebp - 0x2c]
dec dword [ebp - 0x10]
mov byte [ecx], al
jne 0x985335
cmp dword [ebx + 0x38], 0
jne 0x985480
mov dword [ebx], 0x12
jmp 0x985480
cmp dword [ebp - 0x18], 0
je 0x9854d1
mov ecx, dword [ebp - 0x20]
mov al, byte [ebx + 0x38]
inc dword [ebp - 0x20]
dec dword [ebp - 0x18]
mov byte [ecx], al
jmp 0x985354
cmp dword [ebx + 8], 0
je 0x985430
jmp 0x9853aa
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
cmp esi, 0x20
jb 0x985385
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
add dword [edi + 0x14], eax
add dword [ebx + 0x18], eax
test eax, eax
mov dword [ebp - 0x24], eax
je 0x9853ed
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x24]
sub eax, dword [ebp - 0x24]
cmp dword [ebx + 0x10], 0
push eax
push dword [ebx + 0x14]
je 0x9853dc
call fcn.00986134
jmp 0x9853e1
call fcn.00985dce
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0x14], eax
add esp, 0xc
mov dword [edi + 0x30], eax
cmp dword [ebx + 0x10], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, edx
jne 0x985418
and eax, 0xff00
mov ecx, edx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0xa]
shl eax, 8
add eax, ecx
mov ecx, edx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [ebx + 0x14]
je 0x985426
mov dword [edi + 0x18], 0x97ed90
jmp 0x98547a
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov edx, esi
mov dword [ebx], 0x19
cmp dword [ebx + 8], 0
je 0x9854bb
cmp dword [ebx + 0x10], 0
je 0x9854bb
jmp 0x985469
cmp dword [ebp - 4], 0
je 0x9854d1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
cmp esi, 0x20
jb 0x985444
cmp edx, dword [ebx + 0x18]
je 0x9854b4
mov dword [edi + 0x18], 0x97ed78
mov dword [ebx], 0x1b
mov eax, dword [ebx]
cmp eax, 0x1c
jbe switch.0x0098456e
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x20]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], esi
push 2
jmp 0x98548d
xor esi, esi
mov dword [ebp - 0xc], esi
mov edx, esi
mov dword [ebx], 0x1a
mov dword [ebp - 0x28], 1
jmp 0x9854d1
mov dword [ebp - 0x28], 0xfffffffd
mov eax, dword [ebp - 0x20]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
cmp dword [ebx + 0x20], 0
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], esi
jne 0x985501
cmp dword [ebx], 0x18
jge 0x98551c
mov eax, dword [ebp - 0x24]
cmp eax, dword [edi + 0x10]
je 0x98551c
mov eax, dword [ebp - 0x24]
push edi
call fcn.0098440e
test eax, eax
pop ecx
je 0x98551c
mov dword [ebx], 0x1c
push 0xfffffffffffffffc
jmp 0x98548d
mov eax, dword [ebp - 0x30]
sub eax, dword [edi + 4]
mov esi, dword [ebp - 0x24]
sub esi, dword [edi + 0x10]
add dword [edi + 8], eax
add dword [edi + 0x14], esi
add dword [ebx + 0x18], esi
cmp dword [ebx + 8], 0
mov dword [ebp - 0x30], eax
je 0x985566
test esi, esi
je 0x985566
mov eax, dword [edi + 0xc]
push esi
sub eax, esi
cmp dword [ebx + 0x10], 0
push eax
push dword [ebx + 0x14]
je 0x985555
call fcn.00986134
jmp 0x98555a
call fcn.00985dce
mov dword [ebx + 0x14], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebx], 0xb
jne 0x985572
mov ecx, 0x80
jmp 0x985574
xor ecx, ecx
mov edx, dword [ebx + 4]
neg edx
sbb edx, edx
and edx, 0x40
add edx, dword [ebx + 0x34]
add edx, ecx
test eax, eax
mov dword [edi + 0x2c], edx
jne 0x98558e
test esi, esi
je 0x985594
cmp dword [ebp + 0xc], 4
jne 0x9855a1
cmp dword [ebp - 0x28], 0
jne 0x9855a1
mov dword [ebp - 0x28], 0xfffffffb
mov eax, dword [ebp - 0x28]
jmp 0x98548e