Function at 0x1002bd70
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [ecx]
add ecx, edx
mov dword [ebp - 0xd4], edx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xb0], ecx
mov ecx, edi
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xbc], esi
mov ecx, dword [ecx]
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 0xa0], esi
lea edx, [ecx + esi]
mov dword [ebp - 0xd8], edx
mov edx, dword [ebp + 0x20]
and edx, 4
mov dword [ebp - 0x9c], edx
je 0x1002be03
mov dword [ebp - 0xc4], 0xffffffff
mov dword [ebp - 0xa8], 0
jmp 0x1002be1f
sub ecx, dword [ebp + 0x14]
add ecx, esi
mov dword [ebp - 0xa8], ecx
lea edx, [ecx - 1]
mov dword [ebp - 0xc4], edx
test ecx, edx
jne 0x1002dc35
cmp esi, dword [ebp + 0x14]
jb 0x1002dc35
cmp dword [eax], 0x35
mov edi, dword [eax + 0x28]
mov edx, dword [eax + 0x20]
mov esi, dword [eax + 4]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xd0], edi
mov edi, dword [eax + 0x3c]
mov dword [ebp - 0xb8], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0xc8], edi
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0xa4], edx
ja case.default.0x1002be80
mov eax, dword [eax]
mov dword [ebp - 0xdc], 1
movzx eax, byte [eax + 0x1002dce4]
jmp dword [eax*4 + 0x1002dc60]
mov eax, dword [ebp - 0x90]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xd0], 0
xor esi, esi
mov dword [ebp - 0xa4], edx
test byte [ebp + 0x20], 1
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0x8c], ecx
mov dword [eax + 0x1c], 1
mov dword [eax + 0x10], 1
je 0x1002cae6
jmp 0x1002bedd
mov eax, dword [ebp - 0x90]
mov ecx, edi
cmp ecx, dword [ebp - 0xb0]
jb 0x1002bf05
test byte [ebp + 0x20], 2
mov edi, 1
mov ecx, 0xfffffffc
mov dword [eax], edi
cmovne ecx, edi
mov dword [ebp - 0x98], ecx
jmp 0x1002d846
mov edi, dword [ebp - 0x90]
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov dword [edi + 8], eax
jmp 0x1002bf22
mov ecx, edi
mov edi, dword [ebp - 0x90]
cmp ecx, dword [ebp - 0xb0]
jb 0x1002bf52
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov edi, 1
cmovne eax, edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 2
jmp 0x1002d846
movzx edx, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, dword [edi + 8]
mov eax, ecx
shl eax, 8
mov dword [edi + 0xc], edx
add eax, edx
mov dword [ebp - 0xac], edx
mov edi, 0x1f
xor edx, edx
div edi
test edx, edx
jne 0x1002bf8d
test byte [ebp - 0xac], 0x20
jne 0x1002bf8d
mov eax, ecx
and al, 0xf
cmp al, 8
je 0x1002bf92
mov edx, 1
cmp dword [ebp - 0x9c], 0
mov dword [ebp - 0xa4], edx
jne 0x1002bfce
shr ecx, 4
mov eax, 1
add ecx, 8
shl eax, cl
cmp eax, 0x8000
ja 0x1002bfc1
cmp dword [ebp - 0xa8], eax
jb 0x1002bfc1
xor eax, eax
jmp 0x1002bfc6
mov eax, 1
or edx, eax
mov dword [ebp - 0xa4], edx
test edx, edx
je 0x1002cae0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x24
jmp 0x1002d8e8
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d5a8
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0xd0]
or edi, eax
cmp esi, ecx
jb 0x1002bff7
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
mov dword [ebp - 0xcc], esi
and eax, edi
shr edi, cl
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], edi
movsx eax, byte [eax + 0x100bbcf0]
add ecx, eax
cmp dword [ebp - 0xb8], 0x10
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x9c], ecx
jne 0x1002c086
movzx ecx, byte [eax + edx + 0x2923]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0x9c]
jmp 0x1002c090
mov dword [ebp - 0xa8], 0
push ecx
push dword [ebp - 0xa8]
add edx, 0x2924
add eax, edx
push eax
call fcn.1008e490
mov edx, dword [ebp - 0xa4]
add esp, 0xc
add edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0xac], eax
mov eax, dword [ecx + 0x30]
add eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0xa4], edx
cmp edx, eax
jae 0x1002c2b8
cmp esi, 0xf
jae 0x1002c202
mov eax, dword [ebp - 0xb0]
mov edi, dword [ebp - 0x94]
sub eax, edi
cmp eax, 2
jge 0x1002c1ce
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov eax, ecx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x1ca0]
mov dword [ebp - 0xa8], eax
test eax, eax
js 0x1002c136
sar eax, 9
test eax, eax
je 0x1002c192
cmp esi, eax
jae 0x1002c208
jmp 0x1002c192
cmp esi, 0xa
jbe 0x1002c192
mov dword [ebp - 0x9c], 0xa
mov eax, ecx
mov ecx, dword [ebp - 0x9c]
shr eax, cl
mov ecx, dword [ebp - 0xa8]
and eax, 1
not ecx
add eax, ecx
movsx ecx, word [edi + eax*2 + 0x24a0]
mov eax, dword [ebp - 0x9c]
inc eax
mov dword [ebp - 0xa8], ecx
test ecx, ecx
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x8c]
jns 0x1002c208
inc eax
cmp esi, eax
jae 0x1002c145
jmp 0x1002c192
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d342
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0x8c]
or ecx, eax
mov dword [ebp - 0x8c], ecx
cmp esi, 0xf
jb 0x1002c10c
jmp 0x1002c208
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
add edi, 2
shl edx, cl
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x8c]
or edx, eax
or ecx, edx
mov dword [ebp - 0x94], edi
mov edx, dword [ebp - 0xa4]
add esi, 0x10
mov dword [ebp - 0x8c], ecx
jmp 0x1002c208
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov eax, ecx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x1ca0]
mov dword [ebp - 0xb8], eax
test eax, eax
js 0x1002c236
sar eax, 9
and dword [ebp - 0xb8], 0x1ff
jmp 0x1002c27e
mov edx, 0xa
nop dword [eax + eax]
mov eax, ecx
mov ecx, edx
shr eax, cl
inc edx
mov ecx, dword [ebp - 0xb8]
and eax, 1
not ecx
add eax, ecx
movsx ecx, word [edi + eax*2 + 0x24a0]
mov dword [ebp - 0xb8], ecx
test ecx, ecx
mov ecx, dword [ebp - 0x8c]
js 0x1002c240
mov dword [ebp - 0xac], edx
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xac]
mov edi, dword [ebp - 0x8c]
mov ecx, eax
sub esi, eax
shr edi, cl
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0xcc], esi
cmp eax, 0x10
jae 0x1002d31e
mov ecx, dword [ebp - 0x90]
mov byte [ecx + edx + 0x2924], al
inc edx
jmp 0x1002c0ba
jne 0x1002d646
mov eax, dword [ecx + 0x2c]
push eax
lea eax, [ecx + 0x2924]
push eax
lea eax, [ecx + 0x40]
push eax
call fcn.1008df10
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx + 0x2c]
push dword [ecx + 0x30]
add eax, 0x2924
add eax, ecx
push eax
lea eax, [ecx + 0xde0]
push eax
call fcn.1008df10
mov ecx, dword [ebp - 0x90]
add esp, 0x18
dec dword [ecx + 0x18]
mov edx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0x18]
test eax, eax
jns 0x1002cfcb
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x94]
sub eax, ecx
mov dword [ebp - 0xac], eax
cmp eax, 4
jl 0x1002c4b1
mov eax, dword [ebp - 0xd8]
sub eax, dword [ebp - 0xa0]
cmp eax, 2
jl 0x1002c4ab
cmp esi, 0xf
jae 0x1002c35f
movzx eax, word [ecx]
mov ecx, esi
add dword [ebp - 0x94], 2
shl eax, cl
or edi, eax
add esi, 0x10
mov dword [ebp - 0xcc], esi
mov ecx, dword [ebp - 0x90]
mov eax, edi
and eax, 0x3ff
movsx edx, word [ecx + eax*2 + 0x160]
mov dword [ebp - 0xa4], edx
test edx, edx
js 0x1002c385
mov ecx, edx
sar ecx, 9
jmp 0x1002c3ba
mov ecx, 0xa
nop word [eax + eax]
mov esi, dword [ebp - 0x90]
mov eax, edi
shr eax, cl
not edx
and eax, 1
inc ecx
add eax, edx
movsx edx, word [esi + eax*2 + 0x960]
test edx, edx
js 0x1002c390
mov esi, dword [ebp - 0xcc]
mov dword [ebp - 0xa4], edx
shr edi, cl
sub esi, ecx
mov dword [ebp - 0x8c], edi
test edx, 0x100
jne 0x1002c65c
cmp esi, 0xf
jae 0x1002c3ee
mov eax, dword [ebp - 0x94]
mov ecx, esi
add dword [ebp - 0x94], 2
movzx eax, word [eax]
shl eax, cl
or edi, eax
add esi, 0x10
mov ecx, dword [ebp - 0x90]
mov eax, edi
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x160]
mov dword [ebp - 0xc0], eax
test eax, eax
js 0x1002c412
sar eax, 9
jmp 0x1002c462
mov ecx, 0xa
mov dword [ebp - 0x9c], ecx
jmp 0x1002c426
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x90]
mov eax, edi
shr eax, cl
mov ecx, dword [ebp - 0xc0]
and eax, 1
not ecx
add eax, ecx
movsx ecx, word [edx + eax*2 + 0x960]
mov eax, dword [ebp - 0x9c]
inc eax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0x9c], eax
test ecx, ecx
js 0x1002c420
mov edx, dword [ebp - 0xa4]
mov ecx, eax
sub esi, eax
mov eax, dword [ebp - 0xa0]
shr edi, cl
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0xcc], esi
lea ecx, [eax + 1]
mov byte [eax], dl
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xa8]
test ecx, 0x100
jne 0x1002c654
add dword [ebp - 0xa0], 2
mov byte [eax], cl
jmp 0x1002c30f
mov eax, dword [ebp - 0xac]
cmp esi, 0xf
jae 0x1002c5ad
cmp eax, 2
jge 0x1002c579
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov eax, ecx
and eax, 0x3ff
movsx edi, word [edi + eax*2 + 0x160]
test edi, edi
js 0x1002c4f3
sar edi, 9
test edi, edi
je case.0x1002be80.23
cmp esi, edi
jae 0x1002c5b3
jmp case.0x1002be80.23
cmp esi, 0xa
jbe case.0x1002be80.23
mov dword [ebp - 0x9c], 0xa
mov eax, ecx
not edi
mov ecx, dword [ebp - 0x9c]
shr eax, cl
mov ecx, dword [ebp - 0x90]
and eax, 1
add eax, edi
movsx edi, word [ecx + eax*2 + 0x960]
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x9c], eax
test edi, edi
jns 0x1002c5b3
inc eax
cmp esi, eax
jae 0x1002c502
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d369
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0x8c]
or ecx, eax
mov dword [ebp - 0x8c], ecx
cmp esi, 0xf
jb 0x1002c4c9
jmp 0x1002c5b3
movzx edx, byte [ecx + 1]
lea ecx, [esi + 8]
mov edi, dword [ebp - 0x94]
shl edx, cl
mov ecx, esi
movzx eax, byte [edi]
add edi, 2
shl eax, cl
mov ecx, dword [ebp - 0x8c]
or edx, eax
or ecx, edx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x8c], ecx
add esi, 0x10
jmp 0x1002c5b3
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x90]
mov eax, ecx
and eax, 0x3ff
movsx edx, word [edx + eax*2 + 0x160]
test edx, edx
js 0x1002c5d9
mov edi, edx
sar edi, 9
and edx, 0x1ff
jmp 0x1002c606
mov edi, 0xa
nop
mov eax, ecx
not edx
mov ecx, edi
inc edi
shr eax, cl
mov ecx, dword [ebp - 0x90]
and eax, 1
add eax, edx
movsx edx, word [ecx + eax*2 + 0x960]
mov ecx, dword [ebp - 0x8c]
test edx, edx
js 0x1002c5e0
mov ecx, edi
mov dword [ebp - 0xa8], edi
mov edi, dword [ebp - 0x8c]
sub esi, ecx
shr edi, cl
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0xcc], esi
cmp edx, 0x100
jae 0x1002c65c
jmp 0x1002c634
mov edi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0xd8]
jae 0x1002d391
mov byte [eax], dl
inc eax
mov dword [ebp - 0xa0], eax
jmp 0x1002c30f
mov dword [ebp - 0xa0], eax
mov edx, ecx
and edx, 0x1ff
mov dword [ebp - 0xa4], edx
cmp edx, 0x100
je 0x1002cad0
lea eax, [edx*4 - 0x404]
mov ecx, dword [eax + 0x100bbb58]
mov edx, dword [eax + 0x100bbad8]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xa4], edx
test ecx, ecx
je 0x1002c6ee
cmp esi, ecx
jae 0x1002c6d2
jmp 0x1002c6a3
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d581
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0xd0]
or edi, eax
cmp esi, ecx
jb 0x1002c6a3
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edi
shr edi, cl
add edx, eax
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0xa4], edx
cmp esi, 0xf
jae 0x1002c7fb
mov eax, dword [ebp - 0xb0]
mov edi, dword [ebp - 0x94]
sub eax, edi
cmp eax, 2
jge 0x1002c7c7
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov eax, ecx
and eax, 0x3ff
movsx edi, word [edi + eax*2 + 0xf00]
test edi, edi
js 0x1002c73e
sar edi, 9
test edi, edi
je case.0x1002be80.26
cmp esi, edi
jae 0x1002c801
jmp case.0x1002be80.26
cmp esi, 0xa
jbe case.0x1002be80.26
mov dword [ebp - 0x9c], 0xa
nop dword [eax]
mov eax, ecx
not edi
mov ecx, dword [ebp - 0x9c]
shr eax, cl
mov ecx, dword [ebp - 0x90]
and eax, 1
add eax, edi
movsx edi, word [ecx + eax*2 + 0x1700]
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x9c], eax
test edi, edi
jns 0x1002c801
inc eax
cmp esi, eax
jae 0x1002c750
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d517
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0x8c]
or ecx, eax
mov dword [ebp - 0x8c], ecx
cmp esi, 0xf
jb 0x1002c714
jmp 0x1002c801
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
add edi, 2
shl edx, cl
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x8c]
or edx, eax
or ecx, edx
mov dword [ebp - 0x94], edi
mov edx, dword [ebp - 0xa4]
add esi, 0x10
mov dword [ebp - 0x8c], ecx
jmp 0x1002c801
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov eax, ecx
and eax, 0x3ff
movsx edi, word [edi + eax*2 + 0xf00]
test edi, edi
js 0x1002c827
mov eax, edi
sar eax, 9
and edi, 0x1ff
jmp 0x1002c867
mov dword [ebp - 0x9c], 0xa
mov eax, ecx
not edi
mov ecx, dword [ebp - 0x9c]
shr eax, cl
mov ecx, dword [ebp - 0x90]
and eax, 1
add eax, edi
movsx edi, word [ecx + eax*2 + 0x1700]
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x9c], eax
test edi, edi
js 0x1002c831
mov dword [ebp - 0xa8], edi
mov ecx, eax
mov edi, dword [ebp - 0x8c]
sub esi, eax
mov eax, dword [ebp - 0xa8]
shr edi, cl
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0xcc], esi
mov ecx, dword [eax*4 + 0x100bbc58]
mov eax, dword [eax*4 + 0x100bbbd8]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xb8], eax
test ecx, ecx
je 0x1002c90f
cmp esi, ecx
jae 0x1002c8ef
jmp 0x1002c8c0
mov edi, dword [ebp - 0x8c]
nop word [eax + eax]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d53f
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0xd0]
or edi, eax
cmp esi, ecx
jb 0x1002c8c0
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
mov dword [ebp - 0xcc], esi
and eax, edi
shr edi, cl
add dword [ebp - 0xb8], eax
mov dword [ebp - 0x8c], edi
mov ecx, dword [ebp - 0xa0]
sub ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc8], ecx
test eax, eax
je 0x1002c930
cmp eax, ecx
ja 0x1002c930
test ecx, ecx
jne 0x1002c93a
test byte [ebp + 0x20], 4
jne 0x1002d688
mov edi, dword [ebp - 0x8c]
sub ecx, eax
and ecx, dword [ebp - 0xc4]
add ecx, dword [ebp + 0x14]
cmp dword [ebp - 0xa0], ecx
mov eax, ecx
mov dword [ebp - 0x98], ecx
cmova eax, dword [ebp - 0xa0]
add eax, edx
cmp eax, dword [ebp - 0xd8]
jbe 0x1002c9c4
mov ecx, dword [ebp - 0xa0]
mov eax, edx
dec edx
test eax, eax
je 0x1002c30f
jmp 0x1002c989
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0xd8]
jae 0x1002d566
mov eax, dword [ebp - 0xc8]
sub eax, dword [ebp - 0xb8]
and eax, dword [ebp - 0xc4]
mov ecx, dword [ebp + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0xa0]
mov byte [ecx], al
inc ecx
inc dword [ebp - 0xc8]
mov dword [ebp - 0xa0], ecx
jmp 0x1002c970
cmp edx, 9
jb 0x1002ca6a
cmp edx, dword [ebp - 0xb8]
ja 0x1002ca6f
mov eax, edx
and eax, 0xfffffff8
add eax, ecx
mov dword [ebp - 0xac], eax
nop word [eax + eax]
mov eax, dword [ecx]
mov edi, dword [ebp - 0xa0]
mov ecx, dword [ecx + 4]
mov dword [edi], eax
mov eax, edi
mov dword [eax + 4], ecx
add eax, 8
mov ecx, dword [ebp - 0x98]
add ecx, 8
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x98], ecx
cmp ecx, dword [ebp - 0xac]
jb 0x1002c9f0
mov edi, dword [ebp - 0x8c]
and edx, 7
mov dword [ebp - 0xa4], edx
cmp edx, 3
jae 0x1002ca6a
test edx, edx
je 0x1002c30f
mov al, byte [ecx]
mov ecx, dword [ebp - 0xa0]
mov byte [ecx], al
mov ecx, dword [ebp - 0x98]
cmp edx, 1
jbe 0x1002ca5f
mov al, byte [ecx + 1]
mov ecx, dword [ebp - 0xa0]
mov byte [ecx + 1], al
add dword [ebp - 0xa0], edx
jmp 0x1002c30f
cmp edx, 2
jbe 0x1002ca36
lea ecx, [edx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp - 0x98]
mov eax, edx
mov edx, dword [ebp - 0xa4]
shr eax, 1
inc eax
mov dword [ebp - 0xa8], eax
mov edi, dword [ebp - 0xa0]
sub edx, 3
movzx eax, byte [ecx]
add dword [ebp - 0xa0], 3
mov byte [edi], al
movzx eax, byte [ecx + 1]
mov byte [edi + 1], al
movzx eax, byte [ecx + 2]
add ecx, 3
sub dword [ebp - 0xa8], 1
mov byte [edi + 2], al
jne 0x1002ca90
mov edi, dword [ebp - 0x8c]
mov dword [ebp - 0x98], ecx
jmp 0x1002ca36
mov eax, dword [ebp - 0x90]
test byte [eax + 0x14], 1
jne 0x1002d505
mov ecx, dword [ebp - 0x8c]
cmp esi, 3
jae 0x1002cb21
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d3ac
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0x8c]
or ecx, eax
mov dword [ebp - 0x8c], ecx
cmp esi, 3
jb case.0x1002be80.3
mov edi, dword [ebp - 0x90]
mov eax, ecx
shr ecx, 3
and eax, 7
mov dword [ebp - 0x8c], ecx
sub esi, 3
mov ecx, edi
mov dword [ebp - 0xcc], esi
mov dword [edi + 0x14], eax
shr eax, 1
mov dword [ecx + 0x18], eax
jne 0x1002cddc
mov edi, dword [ebp - 0x8c]
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x1002cb93
jmp 0x1002cb65
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d3d4
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
or edi, eax
mov eax, esi
and eax, 7
cmp esi, eax
jb 0x1002cb65
mov ecx, esi
and ecx, 7
shr edi, cl
sub esi, ecx
mov dword [ebp - 0x8c], edi
xor edx, edx
cmp edx, 4
jae 0x1002cc3e
test esi, esi
je case.0x1002be80.7
cmp esi, 8
jae 0x1002cbee
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d3fb
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0x8c]
or ecx, eax
mov dword [ebp - 0x8c], ecx
cmp esi, 8
jb case.0x1002be80.6
jmp 0x1002cbf4
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
sub esi, 8
mov byte [eax + edx + 0x2920], cl
shr ecx, 8
inc edx
mov dword [ebp - 0x8c], ecx
jmp 0x1002cba4
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d423
mov edi, dword [ebp - 0x90]
mov al, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov byte [edi + edx + 0x2920], al
inc edx
jmp 0x1002cba4
mov edi, dword [ebp - 0x90]
movzx edx, byte [edi + 0x2921]
movzx eax, byte [edi + 0x2920]
movzx ecx, byte [edi + 0x2923]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 0x2922]
or ecx, eax
mov dword [ebp - 0xa4], edx
xor ecx, 0xffff
cmp edx, ecx
jne 0x1002d5d5
mov eax, dword [ebp - 0xa0]
test edx, edx
je 0x1002cd1d
test esi, esi
je 0x1002cd2e
cmp esi, 8
jae 0x1002ccd1
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d44b
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0x8c]
or ecx, eax
mov dword [ebp - 0x8c], ecx
cmp esi, 8
jb case.0x1002be80.51
jmp 0x1002ccd7
mov ecx, dword [ebp - 0x8c]
movzx eax, cl
shr ecx, 8
sub esi, 8
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0xd8]
jae 0x1002d473
mov ecx, dword [ebp - 0xb8]
mov byte [eax], cl
inc eax
dec edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], edx
jmp 0x1002cc84
test edx, edx
jne 0x1002cd2e
mov edi, dword [ebp - 0x8c]
jmp 0x1002cad0
mov eax, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xd8]
cmp eax, edi
jb 0x1002cd5f
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 2
mov dword [eax], 9
jmp 0x1002d8e8
mov eax, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d48e
sub edi, eax
mov eax, dword [ebp - 0xb0]
sub eax, ecx
mov dword [ebp - 0x9c], eax
mov eax, edi
cmp edi, dword [ebp - 0x9c]
cmovae eax, dword [ebp - 0x9c]
cmp eax, edx
jae 0x1002cda3
cmp edi, dword [ebp - 0x9c]
cmovae edi, dword [ebp - 0x9c]
jmp 0x1002cda5
mov edi, edx
push edi
push ecx
push dword [ebp - 0xa0]
call fcn.1008df10
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov edx, dword [ebp - 0xa4]
add eax, edi
add dword [ebp - 0x94], edi
sub edx, edi
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], edx
jmp 0x1002cd19
cmp eax, 3
je 0x1002d667
cmp eax, 1
jne 0x1002ce68
movups xmm0, xmmword [0x100bbd30]
push 0x90
lea edi, [ecx + 0x40]
mov dword [ecx + 0x2c], 0x120
mov dword [ecx + 0x30], 0x20
push 8
movups xmmword [ecx + 0xde0], xmm0
push edi
movups xmmword [ecx + 0xdf0], xmm0
call fcn.1008e490
push 0x70
add edi, 0x90
push 9
push edi
call fcn.1008e490
movups xmm0, xmmword [str._a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_acw]
mov ecx, dword [ebp - 0x90]
add esp, 0x18
movups xmmword [edi + 0x70], xmm0
movq qword [edi + 0x80], xmm0
mov dword [edi + 0x88], 0x8080808
mov dword [edi + 0x8c], 0x8080808
mov edi, dword [ebp - 0x8c]
jmp 0x1002c2fe
mov edi, dword [ebp - 0x8c]
xor edx, edx
mov dword [ebp - 0xa4], edx
cmp edx, 3
jae 0x1002cf18
movsx eax, byte [edx + 0x100bbcfc]
cmp esi, eax
jae 0x1002cec2
jmp 0x1002ce92
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d4b6
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
or edi, eax
movsx eax, byte [edx + 0x100bbcfc]
cmp esi, eax
jb 0x1002ce92
mov eax, dword [ebp - 0xa4]
mov edx, 1
mov cl, byte [eax + 0x100bbcfc]
shl edx, cl
mov ecx, dword [ebp - 0x90]
dec edx
and edx, edi
mov dword [ecx + eax*4 + 0x2c], edx
movsx ecx, byte [eax + 0x100bbcfc]
mov eax, dword [eax*4 + 0x100bbcec]
sub esi, ecx
shr edi, cl
add eax, edx
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0xcc], esi
mov dword [ecx + edx*4 + 0x2c], eax
inc edx
jmp 0x1002ce70
push 0x120
lea eax, [ecx + 0x1b80]
push 0
push eax
call fcn.1008e490
add esp, 0xc
xor edx, edx
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0xa4], edx
cmp edx, dword [ecx + 0x34]
jae 0x1002cfbf
cmp esi, 3
jae 0x1002cf7e
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d4dd
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0x8c]
or ecx, eax
mov dword [ebp - 0x8c], ecx
cmp esi, 3
jb case.0x1002be80.14
jmp 0x1002cf84
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x8c]
and ecx, 7
movzx eax, byte [edx + 0x100bbcd8]
sub esi, 3
shr edi, 3
inc edx
mov dword [ebp - 0x8c], edi
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0xcc], esi
mov byte [eax + edi + 0x1b80], cl
mov edi, dword [ebp - 0x8c]
jmp 0x1002cf30
mov dword [ecx + 0x34], 0x13
jmp 0x1002c304
imul eax, eax, 0xda0
add ecx, 0x40
push 0x40
push 0
add eax, ecx
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x88]
push eax
call fcn.1008e490
mov eax, dword [ebp - 0x98]
push 0x800
add eax, 0x120
push 0
push eax
call fcn.1008e490
mov eax, dword [ebp - 0x98]
push 0x480
add eax, 0x920
push 0
push eax
call fcn.1008e490
mov ecx, dword [ebp - 0x90]
add esp, 0x24
xor edx, edx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + eax*4 + 0x2c]
test ecx, ecx
je 0x1002d048
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax + edx]
inc edx
inc dword [ebp + eax*4 - 0x88]
cmp edx, ecx
jb 0x1002d032
xor edi, edi
mov edx, 4
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xc0], ecx
mov eax, dword [ebp + edx - 0x88]
add ecx, eax
add ecx, ecx
add edi, eax
mov eax, dword [ebp + edx - 0x84]
add dword [ebp - 0xc0], eax
mov dword [ebp + edx - 0x44], ecx
add ecx, eax
mov eax, dword [ebp + edx - 0x80]
add ecx, ecx
add dword [ebp - 0x9c], eax
mov dword [ebp + edx - 0x40], ecx
add ecx, eax
add ecx, ecx
mov dword [ebp + edx - 0x3c], ecx
add edx, 0xc
cmp edx, 0x3c
jbe 0x1002d063
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xac], edi
mov ecx, dword [ebp - 0xac]
mov edi, dword [ebp - 0x8c]
add ecx, eax
cmp dword [ebp - 0xa8], 0x10000
je 0x1002d0de
cmp ecx, 1
ja 0x1002d5f0
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0xe0], 0xffffffff
mov dword [ebp - 0x9c], 0
mov eax, dword [ecx + 0x18]
cmp dword [ecx + eax*4 + 0x2c], 0
jbe 0x1002d22d
mov edi, ecx
mov ecx, dword [ebp - 0x98]
nop
mov eax, dword [ebp - 0x9c]
xor edx, edx
movzx ecx, byte [ecx + eax]
mov dword [ebp - 0xb4], ecx
test ecx, ecx
je 0x1002d1fb
mov eax, dword [ebp + ecx*4 - 0x48]
mov dword [ebp - 0xc0], eax
inc eax
mov dword [ebp + ecx*4 - 0x48], eax
mov dword [ebp - 0xac], ecx
nop
mov eax, dword [ebp - 0xc4]
add edx, edx
mov ecx, dword [ebp - 0xc0]
shr dword [ebp - 0xc0], 1
and ecx, 1
mov dword [ebp - 0xa8], eax
or edx, ecx
mov eax, dword [ebp - 0xac]
dec eax
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x1002d140
mov ecx, dword [ebp - 0xb4]
cmp ecx, 0xa
ja 0x1002d23d
mov eax, ecx
shl eax, 9
or eax, dword [ebp - 0x9c]
movzx eax, ax
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc4], eax
cmp edx, 0x400
jae 0x1002d1fb
mov edi, dword [ebp - 0xac]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xb4], eax
add eax, eax
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp - 0xb4]
lea eax, [eax + edx*2]
add eax, 0x120
mov word [eax], di
add edx, ecx
add eax, dword [ebp - 0xc0]
cmp edx, 0x400
jb 0x1002d1e2
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x9c]
mov eax, dword [edi + 0x18]
inc edx
mov dword [ebp - 0x9c], edx
cmp edx, dword [edi + eax*4 + 0x2c]
jb 0x1002d110
mov esi, dword [ebp - 0xcc]
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
cmp eax, 2
jne 0x1002c2fb
xor edx, edx
jmp 0x1002c0ba
mov esi, dword [ebp - 0x98]
mov eax, edx
and eax, 0x3ff
add esi, 0x120
lea eax, [esi + eax*2]
mov esi, dword [ebp - 0xe0]
mov dword [ebp - 0xb4], eax
movsx eax, word [eax]
mov dword [ebp - 0xc0], eax
test eax, eax
jne 0x1002d284
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc0], esi
mov word [eax], si
sub esi, 2
mov dword [ebp - 0xe0], esi
mov eax, dword [ebp - 0xa8]
shr edx, 9
mov dword [ebp - 0xc4], eax
cmp ecx, 0xb
jbe 0x1002d2fa
lea esi, [ecx - 0xb]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0x98]
shr edx, 1
mov eax, edx
and eax, 1
sub eax, dword [ebp - 0xc0]
movzx ecx, word [ecx + eax*2 + 0x91e]
test cx, cx
jne 0x1002d2e6
mov edi, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xc0], ecx
mov word [edi + eax*2 + 0x91e], cx
sub ecx, 2
mov dword [ebp - 0xe0], ecx
jmp 0x1002d2ef
movsx eax, cx
mov dword [ebp - 0xc0], eax
sub esi, 1
jne 0x1002d2a1
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
shr edx, 1
and edx, 1
sub edx, dword [ebp - 0xc0]
mov word [ecx + edx*2 + 0x91e], ax
jmp 0x1002d201
jne 0x1002d328
test edx, edx
je 0x1002d61f
movsx ecx, byte [eax + 0x100bbce8]
mov dword [ebp - 0xd0], ecx
cmp esi, ecx
jae 0x1002c026
jmp 0x1002bff7
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov dword [edi], 0x10
cmovne eax, dword [ebp - 0xdc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
jmp 0x1002d846
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov edi, 1
cmovne eax, edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0x17
jmp 0x1002d846
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 2
mov dword [eax], 0x18
jmp 0x1002d8ee
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov edi, 1
cmovne eax, edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 3
jmp 0x1002d846
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
cmovne eax, dword [ebp - 0xdc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 5
jmp 0x1002d84c
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov edi, 1
cmovne eax, edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 6
jmp 0x1002d846
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov edi, 1
cmovne eax, edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 7
jmp 0x1002d846
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov edi, 1
cmovne eax, edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0x33
jmp 0x1002d846
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 2
mov dword [eax], 0x34
jmp 0x1002d8e8
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov edi, 1
cmovne eax, edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0x26
jmp 0x1002d846
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
cmovne eax, dword [ebp - 0xdc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0xb
jmp 0x1002d84c
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov edi, 1
cmovne eax, edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0xe
jmp 0x1002d846
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x1002d6de
jmp 0x1002d6b0
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov edi, 1
cmovne eax, edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0x1a
jmp 0x1002d846
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
cmovne eax, dword [ebp - 0xdc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0x1b
jmp 0x1002d84c
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 2
mov dword [eax], 0x35
jmp 0x1002d8ee
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
cmovne eax, dword [ebp - 0xdc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0x19
jmp 0x1002d84c
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
cmovne eax, dword [ebp - 0xdc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0x12
jmp 0x1002d84c
mov edi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [edi], 0x27
jmp 0x1002d8e8
mov edx, dword [ebp - 0xa4]
jmp 0x1002d5fe
mov edi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x23
jmp 0x1002d8ee
mov edi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x11
jmp 0x1002d8ee
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [ecx], 0x15
jmp 0x1002d8ee
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [ecx], 0xa
jmp 0x1002d8e8
mov edi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x25
jmp 0x1002d8ee
mov edi, dword [ebp - 0x8c]
nop dword [eax]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d741
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
or edi, eax
mov eax, esi
and eax, 7
cmp esi, eax
jb 0x1002d6b0
mov eax, dword [ebp - 0x94]
mov ecx, esi
and ecx, 7
shr edi, cl
sub esi, ecx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x8c], edi
cmp eax, ecx
jbe 0x1002d713
nop dword [eax]
cmp esi, 8
jb 0x1002d70d
dec eax
sub esi, 8
cmp eax, ecx
ja 0x1002d700
mov dword [ebp - 0x94], eax
xor edx, edx
mov ecx, esi
bts edx, ecx
xor eax, eax
cmp ecx, 0x20
mov ecx, dword [ebp - 0x8c]
cmovae eax, edx
xor edx, eax
dec edx
and ecx, edx
test byte [ebp + 0x20], 1
mov dword [ebp - 0x8c], ecx
je 0x1002d8cc
xor edx, edx
jmp 0x1002d79a
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
cmovne eax, dword [ebp - 0xdc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0x20
jmp 0x1002d84c
cmp edi, dword [ebp - 0xb0]
jae 0x1002d823
movzx eax, byte [edi]
inc edi
mov dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0xac], eax
mov eax, dword [edi + 0x10]
shl eax, 8
or eax, dword [ebp - 0xac]
inc edx
mov dword [edi + 0x10], eax
cmp edx, 4
jae case.0x1002be80.34
test esi, esi
je 0x1002d7f3
cmp esi, 8
jae 0x1002d7e2
nop dword [eax]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xb0]
jae 0x1002d7fe
movzx eax, byte [ecx]
inc ecx
mov dword [ebp - 0x94], ecx
mov ecx, esi
shl eax, cl
add esi, 8
mov ecx, dword [ebp - 0x8c]
or ecx, eax
mov dword [ebp - 0x8c], ecx
cmp esi, 8
jb case.0x1002be80.41
movzx eax, cl
shr ecx, 8
sub esi, 8
mov dword [ebp - 0x8c], ecx
jmp 0x1002d77e
mov edi, dword [ebp - 0x94]
jmp case.0x1002be80.42
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov edi, 1
cmovne eax, edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0x29
jmp 0x1002d846
test byte [ebp + 0x20], 2
mov eax, 0xfffffffc
mov ecx, 1
cmovne eax, ecx
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
mov dword [eax], 0x2a
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x98]
cmp ecx, 1
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp - 0x94]
je 0x1002d925
cmp dword [ebp - 0xac], 0xfffffffc
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xb4], edx
je 0x1002d925
jmp 0x1002d8f4
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0
mov dword [eax], 0x22
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0xd4]
jbe 0x1002d925
nop dword [eax]
cmp esi, 8
jb 0x1002d911
dec ecx
sub esi, 8
cmp ecx, dword [ebp - 0xd4]
ja 0x1002d900
mov dword [ebp - 0x94], ecx
jmp 0x1002d925
mov eax, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
mov dword [eax + 4], esi
xor ecx, ecx
bts ecx, esi
xor eax, eax
cmp esi, 0x20
mov esi, dword [ebp - 0x90]
cmovae eax, ecx
xor ecx, eax
mov eax, dword [ebp - 0xb8]
mov dword [esi + 0x20], eax
dec ecx
mov eax, dword [ebp - 0xd0]
and ecx, edi
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc8]
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp - 0xe4]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0xd4]
mov dword [esi + 0x24], edx
mov dword [ecx], eax
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xe8]
sub ecx, dword [ebp - 0xbc]
test byte [ebp + 0x20], 9
mov dword [ebp - 0xa0], ecx
mov dword [eax], ecx
je 0x1002dc1d
cmp dword [ebp - 0x98], 0
jl 0x1002dc1d
mov edx, dword [esi + 0x1c]
mov eax, 0x5e6ea9af
movzx edi, dx
shr edx, 0x10
mov dword [ebp - 0xc4], edx
mul ecx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ecx
sub edx, eax
mov dword [ebp - 0xc8], edx
mov edx, dword [ebp - 0xc4]
test ecx, ecx
je 0x1002dbe8
mov eax, dword [ebp - 0xc8]
xor esi, esi
mov dword [ebp - 0xd4], esi
cmp eax, 7
jbe 0x1002dab7
mov eax, 7
sub eax, dword [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
mov ecx, eax
nop word [eax + eax]
mov eax, dword [ebp - 0xbc]
add esi, 8
movzx eax, byte [eax]
add edi, eax
mov eax, dword [ebp - 0xbc]
add edx, edi
movzx eax, byte [eax + 1]
add edi, eax
mov eax, dword [ebp - 0xbc]
add edx, edi
movzx eax, byte [eax + 2]
add edi, eax
mov eax, dword [ebp - 0xbc]
add edx, edi
movzx eax, byte [eax + 3]
add edi, eax
mov eax, dword [ebp - 0xbc]
add edx, edi
movzx eax, byte [eax + 4]
add edi, eax
mov eax, dword [ebp - 0xbc]
add edx, edi
movzx eax, byte [eax + 5]
add edi, eax
mov eax, dword [ebp - 0xbc]
add edx, edi
movzx eax, byte [eax + 6]
add edi, eax
mov eax, dword [ebp - 0xbc]
add edx, edi
movzx eax, byte [eax + 7]
add edi, eax
mov eax, dword [ebp - 0xbc]
add eax, 8
add edx, edi
mov dword [ebp - 0xbc], eax
add eax, ecx
cmp eax, dword [ebp - 0xc8]
jb 0x1002da10
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xc4], edx
xor esi, esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa8], esi
cmp dword [ebp - 0xd4], eax
jae 0x1002db91
sub eax, dword [ebp - 0xd4]
cmp eax, 2
jb 0x1002db6e
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xc8]
mov edx, dword [ebp - 0x9c]
sub eax, ecx
sub eax, 2
shr eax, 1
inc eax
mov dword [ebp - 0xb4], eax
mov esi, eax
lea eax, [ecx + eax*2]
mov ecx, edx
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax]
add edi, eax
mov eax, dword [ebp - 0xbc]
add edx, edi
movzx eax, byte [eax + 1]
add edi, eax
mov eax, dword [ebp - 0xbc]
add eax, 2
add ecx, edi
mov dword [ebp - 0xbc], eax
sub esi, 1
jne 0x1002db13
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x9c], edx
mov edx, dword [ebp - 0xc4]
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0xc8]
jae 0x1002db81
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax]
add edi, eax
add edx, edi
inc dword [ebp - 0xbc]
mov eax, dword [ebp - 0xa8]
add eax, esi
add edx, eax
mov dword [ebp - 0xc4], edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
mov eax, 0x80078071
mul dword [ebp - 0xc4]
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, dword [ebp - 0xc4]
add edx, eax
sub ecx, dword [ebp - 0xc8]
mov eax, 0x15b0
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xc8], eax
jne 0x1002d9e3
mov esi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x98]
shl edx, 0x10
add edx, edi
mov dword [esi + 0x1c], edx
test ecx, ecx
jne 0x1002dc23
test byte [ebp + 0x20], 1
je 0x1002dc23
cmp edx, dword [esi + 0x10]
mov eax, 0xfffffffe
pop edi
cmovne ecx, eax
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x98]
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xe4]
mov eax, edi
pop edi
pop esi
mov dword [eax], 0
mov eax, 0xfffffffd
mov dword [ecx], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret