Function at 0x1008a660
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x84e0
call fcn.101308a0
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [0x10305014]
xor eax, ebp
mov dword [esp + 0x84d8], eax
mov edx, dword [ecx + 0xb1860]
mov eax, dword [ecx + 0xb1868]
imul ebx, eax, 0x8490
mov dword [esp + 0xc], edx
add edx, ebx
test eax, eax
jne 0x1008ae7a
cmp dword [ecx + 0xb27dc], 0
sete al
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x24]
mov edi, dword [esp + 0xc]
mov dword [edi + ebx + 0x14], eax
movupd xmm0, xmmword [esi + 0x14]
movupd xmmword [edi + ebx + 4], xmm0
cmp dword [ecx + 0xb1860], edx
mov dword [esp + 0x1c], edx
jne 0x1008ae69
cmp dword [ecx + 0xb27dc], 0
jne 0x1008ae69
mov al, 1
mov dword [esp + 0x24], eax
cmp dword [ecx + 0xb27f8], 0
mov eax, dword [esp + 0xc]
jne 0x1008ce82
lea edi, [eax + ebx]
add edi, 4
mov ecx, edi
call fcn.1008efd0
mov dword [edi + 0x5208], eax
mov eax, dword [edi + 8]
mov edx, dword [edi]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x10], edx
mov esi, dword [edx + ecx]
bswap esi
mov ecx, eax
and cl, 7
shl esi, cl
shr esi, 0x17
mov dword [esp + 0x14], ebx
movzx ebx, byte [esi + 0x102b0dc9]
add ebx, eax
mov eax, dword [edi + 0x10]
cmp eax, ebx
mov dword [esp + 0x2c], eax
cmovb ebx, eax
mov dword [esp + 0x28], edi
mov dword [edi + 8], ebx
movzx eax, byte [esi + 0x102b0fc9]
cmp eax, 9
ja 0x1008c6cf
lea ecx, [eax - 5]
xor edx, edx
cmp al, 5
cmovb ecx, eax
setae dl
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
mov dword [edi + esi + 0x28], edx
movzx eax, byte [ecx + 0x102de928]
mov dword [edi + esi + 0x20], eax
mov dword [esp + 0x30], eax
and eax, 3
mov dword [edi + esi + 0x24], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x28], 5
mov ecx, edi
jne 0x1008a7a2
cmp eax, 1
jne 0x1008c6cf
mov edx, dword [esp + 0x14]
lea edi, [ecx + edx]
add edi, 0xc
mov eax, ebx
shr eax, 3
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + eax]
bswap esi
mov ecx, ebx
and cl, 7
shl esi, cl
cmp esi, 0x8000000
mov dword [esp + 0x20], edi
jb 0x1008ae81
shr esi, 0x17
movzx eax, byte [esi + 0x102b0dc9]
add ebx, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
cmovb ebx, eax
mov dword [edi], ebx
movzx esi, byte [esi + 0x102b0fc9]
mov eax, dword [esp + 0xc]
mov dword [eax + edx + 0x695c], esi
mov eax, ebx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + esi*4 + 0xb1e7c]
test ecx, ecx
je 0x1008c6cf
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], ecx
mov esi, dword [ecx + 0x2a710]
mov ecx, eax
shr ecx, 3
mov edx, dword [esp + 0x10]
mov edi, dword [edx + ecx]
bswap edi
mov ecx, eax
and cl, 7
mov dword [esp + 0x34], esi
mov edx, dword [esi + 0x14]
shl edi, cl
add eax, edx
mov ecx, edx
neg cl
shr edi, cl
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
cmovb eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov dword [edx + ebx + 0x846c], edi
cmp byte [esp + 0x24], 0
mov esi, dword [ebp + 0xc]
je 0x1008aec3
mov dword [edx + ebx + 0x5224], 0
mov dword [esp + 0x24], 3
mov ecx, dword [esp + 0x34]
cmp dword [ecx + 0x40], 0
je 0x1008aed7
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [edx + ebx + 0x521c], ecx
xor eax, eax
cmp ecx, 3
setne al
mov dword [edx + ebx + 0x5220], eax
jne 0x1008aef8
mov dword [edx + ebx + 0x8484], edi
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + 0x14]
xor eax, eax
inc eax
shl eax, cl
mov dword [edx + ebx + 0x8488], eax
cmp dword [esi + 0x28], 5
jne 0x1008a8eb
mov ecx, dword [esp + 0x28]
call fcn.1008efd0
mov edx, dword [esp + 0xc]
cmp eax, 0xffff
ja 0x1008a8eb
mov dword [edx + ebx + 0x8470], eax
lea eax, [edx + ebx]
add eax, 0x14
xor ecx, ecx
mov dword [eax + 0x8460], ecx
mov dword [esp + 0x30], eax
mov dword [eax + 0x8464], ecx
cmp dword [edi + 0x18], ecx
jne 0x1008a97d
lea eax, [edx + ebx]
add eax, 0x8474
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x2c], edx
mov ebx, dword [edx + ecx]
bswap ebx
mov ecx, eax
and cl, 7
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0x1c]
shl ebx, cl
add eax, edx
mov ecx, edx
mov edx, dword [esp + 0xc]
neg cl
mov esi, dword [esp + 0x30]
mov esi, dword [esi]
shr ebx, cl
cmp esi, eax
cmovb eax, esi
mov dword [edi], eax
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 8], 1
mov ecx, 0
jne 0x1008a97d
cmp dword [esp + 0x24], 3
je 0x1008d213
mov dword [edx + ebx + 0x8480], ecx
mov dword [edx + ebx + 0x847c], ecx
cmp dword [edi + 0x18], 1
mov eax, ebx
je 0x1008af10
lea ecx, [edx + eax]
add ecx, 0x24
mov dword [ecx + 0x5204], 0
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x3c], 0
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x2c], ecx
jne 0x1008af82
mov eax, dword [ecx]
cmp eax, 3
je 0x1008afd3
mov ecx, dword [esp + 0x14]
lea ebx, [edx + ecx]
add ebx, 0x5848
lea ecx, [edx + ecx + 0x5850]
mov edi, dword [ebp + 8]
push dword [edi + 4]
push dword [esp + 0x28]
push eax
push dword [esp + 0x24]
push dword [esp + 0x38]
mov dword [esp + 0x50], ebx
push ebx
push ecx
call fcn.10082670
add esp, 0x1c
test eax, eax
js 0x1008cf5e
lea eax, [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
cmp dword [eax], 1
jne 0x1008b021
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov dword [ecx + eax + 0x4c], 0
xorpd xmm0, xmm0
movupd xmmword [ecx + eax + 0x5c], xmm0
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x1c], 0
je 0x1008aa49
mov eax, dword [esp + 0x2c]
cmp dword [eax], 2
je 0x1008cf24
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x20], 1
je 0x1008b059
mov ebx, dword [esp + 0x14]
mov dword [ecx + ebx + 0x8468], 0
cmp dword [esi + 0x2c], 0
je 0x1008aa8b
mov eax, dword [esp + 0x10]
push dword [eax]
push esi
push dword [esp + 0x30]
push dword [esp + 0x28]
call fcn.10088ac0
add esp, 0x10
test eax, eax
js 0x1008b070
mov eax, dword [esp + 0x2c]
cmp dword [eax], 1
mov ecx, dword [esp + 0xc]
jne 0x1008b088
mov dword [ecx + ebx + 0x3c], 0
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x28], esi
mov esi, dword [esi + ecx]
bswap esi
mov ecx, eax
and cl, 7
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx + 0x24]
shl esi, cl
cmp esi, 0x8000000
jb 0x1008b0f0
shr esi, 0x17
movzx ecx, byte [esi + 0x102b0dc9]
add eax, ecx
cmp edx, eax
cmovb eax, edx
mov dword [edi], eax
movsx esi, byte [esi + 0x102b11c9]
mov dword [esp + 0x24], edx
add esi, ebx
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x6a4]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, 3
cmp esi, ecx
ja 0x1008c6cf
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
add ecx, ebx
add ecx, 0x20
mov dword [ecx + 0xc], esi
mov edx, dword [esp + 0x18]
movzx edi, byte [edx + esi + 0x224]
mov dword [ecx + 0x10], edi
movzx esi, byte [edx + esi + 0x27c]
mov dword [ecx + 0x14], esi
mov ecx, dword [ecx]
cmp ecx, 6
je 0x1008b155
add ecx, 0xfffffffb
cmp ecx, 1
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jbe 0x1008b166
mov esi, dword [esp + 0xc]
mov dword [esi + ebx + 0x40], 1
xor ecx, ecx
mov dword [esi + ebx + 0x44], ecx
mov dword [esi + ebx + 0x48], ecx
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x34], ecx
je 0x1008ac91
mov ecx, eax
shr ecx, 3
mov esi, dword [esp + 0x28]
mov esi, dword [esi + ecx]
bswap esi
mov ecx, eax
and cl, 7
shl esi, cl
shr esi, 0x17
movzx ebx, byte [esi + 0x102b0dc9]
add ebx, eax
cmp edx, ebx
cmovb ebx, edx
mov dword [edi], ebx
mov al, byte [esi + 0x102b0fc9]
cmp al, 2
ja 0x1008c6cf
mov ecx, eax
xor cl, 1
cmp al, 2
movzx eax, cl
mov ecx, 2
cmovne ecx, eax
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
add eax, esi
add eax, 0x40
movzx esi, cl
mov dword [eax], esi
test cl, cl
je 0x1008ac91
mov eax, ebx
shr eax, 3
mov esi, dword [esp + 0x28]
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x1008b1a1
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add ebx, ecx
cmp edx, ebx
cmovb ebx, edx
mov dword [edi], ebx
movsx eax, byte [eax + 0x102b11c9]
mov ecx, ebx
shr ecx, 3
mov edi, esi
mov esi, dword [esi + ecx]
bswap esi
mov ecx, ebx
and cl, 7
shl esi, cl
cmp esi, 0x8000000
jb 0x1008b1f2
shr esi, 0x17
movzx ecx, byte [esi + 0x102b0dc9]
add ebx, ecx
cmp edx, ebx
cmovb ebx, edx
mov ecx, dword [esp + 0x20]
mov dword [ecx], ebx
movsx esi, byte [esi + 0x102b11c9]
lea ecx, [eax - 7]
cmp ecx, 0xfffffff3
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
jb 0x1008c6cf
cmp esi, 6
jg 0x1008c6cf
cmp esi, 0xfffffffa
jl 0x1008c6cf
add ecx, edx
add ecx, 0x44
add eax, eax
mov dword [ecx], eax
add esi, esi
mov dword [ecx + 4], esi
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x5204], 0
jg 0x1008b243
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
add eax, ecx
add eax, 0x520c
cmp dword [eax], 0
mov eax, dword [ebp + 8]
jne 0x1008b25f
cmp dword [eax + 0xb27f8], 0
jne 0x1008c6cf
cmp dword [eax + 0xb27dc], 0
jne 0x1008b274
mov edi, dword [ebp + 8]
cmp dword [edi + 0xb1b60], 0
jne 0x1008acfb
mov eax, dword [edi + 0xb1304]
test eax, eax
jne 0x1008b378
mov dword [edi + 0xb1304], 0
mov eax, dword [edi + 0xb27dc]
test eax, eax
jne 0x1008b3a8
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edi + 0xb1860]
jne 0x1008ce82
cmp dword [edi + 0xb1b60], 0
jne 0x1008ad37
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x260]
cmp ecx, 8
jge 0x1008b3f9
mov ebx, dword [esp + 0x38]
test bl, bl
mov edi, dword [ebp + 8]
je 0x1008c1c4
lea eax, [edi + 0xb227c]
push eax
call fcn.10127400
add esp, 4
mov dword [edi + 0xb2280], 0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x695c]
push dword [edi + eax*4 + 0xb1e7c]
call fcn.10059ef0
add esp, 4
mov dword [edi + 0xb227c], eax
test eax, eax
je 0x1008cc75
mov ecx, dword [eax + 4]
mov dword [edi + 0xb2280], ecx
mov edx, dword [edi + 0xb2284]
mov esi, dword [ecx + 0x2a710]
cmp edx, esi
je 0x1008b469
mov dword [edi + 0xb2284], esi
mov eax, dword [edi + 0xb1dd4]
cmp eax, dword [esi + 0x38]
je 0x1008b472
mov eax, dword [esi + 0x6a4]
xor ecx, ecx
inc ecx
cmp dword [edi + 0xb1df4], eax
je 0x1008b4ac
xor ecx, ecx
inc ecx
mov dword [esp + 0x30], ecx
cmp dword [edi + 0xb18a8], 0
mov dword [esp + 0xc], esi
jne 0x1008b4c0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
xor ecx, ecx
mov eax, dword [eax + 0x70]
cmp eax, 0xffffffff
jne 0x1008b548
xor eax, eax
inc eax
mov dword [esp + 0x18], eax
test bl, bl
je 0x1008b588
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [esi + 0x64]
mov ebx, dword [ecx + 0xb4]
mov eax, ebx
mov dword [esp + 0x20], edx
imul edx
mov dword [esp + 0x14], eax
mov edi, edx
mov eax, dword [ecx + 0xb0]
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x28], eax
imul ecx
xor edx, edi
xor eax, dword [esp + 0x14]
xor esi, esi
inc esi
mov dword [esp + 0x34], esi
or eax, edx
jne 0x1008b590
test ebx, ebx
mov esi, dword [ebp + 8]
je 0x1008c167
test ecx, ecx
je 0x1008c167
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
jmp 0x1008b593
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0xc]
jmp 0x1008a6ff
xor eax, eax
jmp 0x1008a6b1
mov eax, esi
or eax, 1
bsr edx, eax
lea ecx, [edx + edx]
mov eax, ecx
xor eax, 0x3f
add eax, ebx
mov edi, dword [esp + 0x2c]
cmp edi, eax
cmovb eax, edi
mov edi, dword [esp + 0x20]
mov dword [edi], eax
cmp edx, 0x12
ja 0x1008cf65
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [eax + ecx + 0x695c], 0xbebbb1b7
jmp 0x1008c6cf
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xb22a8], edi
je 0x1008a86b
jmp 0x1008c6cf
mov ecx, dword [esp + 0x34]
cmp dword [ecx + 0x48], 0
jne 0x1008cf8b
cmp byte [esp + 0x30], 3
jne 0x1008cf8b
xor ebx, ebx
dec ebx
jmp 0x1008c037
lea eax, [edi + edi]
inc eax
mov dword [edx + ebx + 0x8484], eax
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + 0x14]
inc ecx
jmp 0x1008a8be
cmp dword [edi + 0x20], 0
jne 0x1008a997
add eax, edx
add eax, 0x847c
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov eax, ebx
shr eax, 3
mov dword [esp + 0x2c], ecx
mov eax, dword [ecx + eax]
bswap eax
mov ecx, ebx
and cl, 7
mov edx, dword [esp + 0x30]
mov edx, dword [edx]
mov dword [esp + 0x10], edx
shl eax, cl
cmp eax, 0x8000000
jb 0x1008d373
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add ebx, ecx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], ebx
movsx esi, byte [eax + 0x102b11c9]
jmp 0x1008d3c3
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov ecx, edx
shr ecx, 3
mov eax, dword [eax + ecx]
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x1008cffa
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add edx, ecx
cmp esi, edx
cmovb edx, esi
mov ecx, dword [esp + 0x20]
mov dword [ecx], edx
movzx ecx, byte [eax + 0x102b0fc9]
jmp 0x1008d028
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov dword [esp + 0x10], edx
mov edi, ecx
shr edi, 3
xor edx, edx
mov esi, dword [esp + 0x30]
cmp ecx, dword [esi]
mov esi, dword [esp + 0x10]
movzx esi, byte [esi + edi]
setl dl
add edx, ecx
and cl, 7
shl esi, cl
mov dword [ebx], edx
mov edx, dword [esp + 0xc]
shr esi, 7
and esi, 1
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x5230], esi
mov esi, dword [ebp + 0xc]
jmp 0x1008a9c7
mov eax, dword [esp + 0x10]
push dword [eax]
push dword [esp + 0x20]
call fcn.101c6380
add esp, 8
test eax, eax
jns 0x1008aa18
mov ebx, eax
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [ecx + edx + 0x584c], eax
jmp 0x1008c037
mov eax, 3
mov edx, dword [esp + 0x2c]
cmp dword [edx], 3
jne 0x1008aa57
jmp 0x1008cf29
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test byte [eax + 0x1c8], 8
je 0x1008aa8b
jmp 0x1008c6cf
mov eax, dword [esp + 0x18]
cmp dword [eax + 4], 0
je 0x1008aa9c
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, eax
shr edx, 3
mov edx, dword [ecx + edx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
shr edx, 0x17
movzx ecx, byte [edx + 0x102b0dc9]
add ecx, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp eax, ecx
cmovb ecx, eax
mov dword [esi], ecx
movzx eax, byte [edx + 0x102b0fc9]
cmp eax, 2
ja 0x1008c6cf
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov dword [ecx + ebx + 0x813c], eax
jmp 0x1008aa9c
or esi, 1
bsr ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
xor ecx, 0x1f
add ecx, eax
cmp edx, ecx
cmovb ecx, edx
mov dword [esp + 0x30], ecx
mov eax, ecx
shr eax, 3
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + eax]
bswap esi
mov eax, dword [esp + 0x30]
mov ecx, eax
and cl, 7
shl esi, cl
mov ecx, dword [esp + 0x24]
shr esi, cl
sub eax, dword [esp + 0x24]
add eax, 0x20
cmp edx, eax
cmovb eax, edx
mov dword [esp + 0x30], eax
mov eax, esi
and eax, 1
mov ecx, eax
neg ecx
shr esi, 1
xor esi, ecx
add esi, eax
mov eax, dword [esp + 0x30]
mov dword [edi], eax
jmp 0x1008aaf8
xor ecx, ecx
cmp eax, dword [esp + 0x24]
setl cl
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov ecx, eax
shr ecx, 3
mov edx, dword [esp + 0x28]
mov esi, dword [edx + ecx]
bswap esi
mov ecx, eax
and cl, 7
shl esi, cl
cmp esi, 0x8000000
jb 0x1008c195
shr esi, 0x17
movzx ecx, byte [esi + 0x102b0dc9]
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
cmovb eax, ecx
jmp 0x1008c1b1
or eax, 1
bsr ecx, eax
mov dword [esp + 0x18], ecx
xor ecx, 0x1f
add ecx, ebx
cmp edx, ecx
cmovb ecx, edx
mov eax, ecx
mov ebx, ecx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
and cl, 7
shl eax, cl
mov ecx, dword [esp + 0x18]
shr eax, cl
sub ebx, dword [esp + 0x18]
add ebx, 0x20
cmp edx, ebx
cmovb ebx, edx
mov ecx, eax
and ecx, 1
mov esi, ecx
neg esi
shr eax, 1
xor eax, esi
mov esi, dword [esp + 0x28]
add eax, ecx
mov dword [edi], ebx
jmp 0x1008ac20
or esi, 1
bsr ecx, esi
mov dword [esp + 0x18], ecx
xor ecx, 0x1f
add ecx, ebx
mov ebx, ecx
cmp edx, ecx
cmovb ebx, edx
mov ecx, ebx
shr ecx, 3
mov esi, dword [edi + ecx]
bswap esi
mov ecx, ebx
and cl, 7
shl esi, cl
mov ecx, dword [esp + 0x18]
sub ebx, ecx
shr esi, cl
add ebx, 0x20
cmp edx, ebx
cmovb ebx, edx
mov ecx, dword [esp + 0x20]
mov dword [ecx], ebx
mov ecx, esi
and ecx, 1
mov edx, ecx
neg edx
shr esi, 1
xor esi, edx
add esi, ecx
jmp 0x1008ac5d
xor ebx, ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [eax + ecx + 0x584c], ebx
mov eax, dword [esp + 0x3c]
mov dword [eax], ebx
jmp 0x1008c037
cmp dword [eax + 0xb27dc], 0
je 0x1008d177
mov edi, dword [ebp + 8]
jmp 0x1008acfb
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb1868], 0
je 0x1008b2db
push dword [ebp + 8]
call fcn.1008d630
add esp, 4
test eax, eax
js 0x1008d2c6
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xb1860]
mov esi, 0x8490
lea eax, [esp + 0x40]
push esi
push ebx
push eax
call fcn.10132610
add esp, 0xc
push esi
mov edi, dword [esp + 0x20]
push edi
push ebx
call fcn.10132610
add esp, 0xc
push esi
lea eax, [esp + 0x44]
push eax
push edi
call fcn.10132610
add esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb1860]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb1304], 0
je 0x1008c6cf
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xb1b60]
cmp dword [ecx + 0xb1b5c], 3
jne 0x1008d1ea
test eax, eax
jne 0x1008c6cf
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb1de4], 5
jne 0x1008c6cf
xor eax, eax
inc eax
push eax
mov edi, dword [ebp + 8]
push dword [edi + 0xb1860]
push edi
call fcn.10084880
add esp, 0xc
mov ebx, eax
mov eax, dword [edi + 0xb1304]
add eax, 4
xor ecx, ecx
mov esi, 0x7fffffff
push ecx
push esi
push eax
call fcn.10040980
add esp, 0xc
mov eax, dword [edi + 0xb1304]
add eax, 4
xor ecx, ecx
inc ecx
push ecx
push esi
push eax
call fcn.10040980
add esp, 0xc
xor eax, eax
mov dword [edi + 0xb1304], eax
test ebx, ebx
jns 0x1008acd7
jmp 0x1008c037
cmp dword [edi + 0xb18a0], 0
jne 0x1008acf1
xor ecx, ecx
cmp dword [edi + 0xb1b5c], 2
sete cl
add eax, 4
push ecx
push 0x7fffffff
push eax
call fcn.10040980
add esp, 0xc
jmp 0x1008acf1
cmp byte [esp + 0x38], 0
je 0x1008c1c4
mov eax, dword [edi + 0xb1b5c]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x521c]
jne 0x1008c6cf
xor eax, eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x2c], 0
sete al
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xb18a0], eax
jne 0x1008c6cf
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xb1304], 0
jne 0x1008bd5e
jmp 0x1008c6cf
xor ebx, ebx
mov edx, dword [ebp + 8]
cmp dword [edx + 0xb1de0], 0
je 0x1008c037
cmp ecx, 0x10
jb 0x1008ad37
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x24]
cmp edx, 3
je 0x1008c037
cmp ecx, 0x18
jb 0x1008ad37
cmp edx, 1
jne 0x1008c037
cmp ecx, 0x20
jb 0x1008ad37
mov edx, dword [ebp + 8]
cmp dword [edx + 0xb1de4], 5
je 0x1008b45b
mov edx, dword [ebp + 8]
cmp dword [edx + 0xb2a04], 0
js 0x1008c037
cmp ecx, 0x2f
ja 0x1008c037
jmp 0x1008ad37
xor ecx, ecx
mov esi, edx
jmp 0x1008add0
mov eax, dword [edi + 0xb1dd0]
cmp eax, dword [esi + 0x3c]
jne 0x1008adb8
mov eax, dword [edi + 0xb2800]
cmp eax, dword [esi + 0x6a4]
jne 0x1008adb8
mov ecx, dword [edi + 0xb27fc]
cmp ecx, dword [esi + 0xc]
mov ecx, 0
jne 0x1008adb8
jmp 0x1008adc1
mov eax, dword [edi + 0xb1df8]
cmp eax, dword [esi + 0xc]
jne 0x1008adcd
jmp 0x1008add0
mov ecx, dword [esi + 0x38]
mov edx, ecx
shl edx, 4
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp edx, dword [eax + 0x64]
jne 0x1008cec1
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x3c]
mov esi, edx
shl esi, 4
cmp esi, dword [eax + 0x68]
jne 0x1008cec1
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0xb2800]
mov edi, dword [esp + 0xc]
cmp esi, dword [edi + 0x6a4]
jne 0x1008cec1
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0xb27fc]
mov edi, dword [esp + 0xc]
cmp esi, dword [edi + 0xc]
jne 0x1008cec1
mov esi, dword [ebp + 8]
cmp dword [esi + 0xb1dd4], ecx
jne 0x1008cec1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xb1dd0], edx
mov ecx, 0
setne cl
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0xc]
jmp 0x1008aded
mov dword [esp + 0x18], ecx
xor esi, esi
cmp eax, 0xc
jne 0x1008d040
xor edi, edi
mov ecx, dword [ebp + 8]
xor edx, edx
call fcn.1008f780
cmp eax, 0xc
je 0x1008d26b
cmp eax, 0xe
je 0x1008d262
cmp eax, 0xd
jne 0x1008d269
mov edi, 4
jmp 0x1008d26b
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0xb27f8], 0
jne 0x1008c2c4
mov ebx, dword [esp + 0xc]
push ebx
call fcn.10082ee0
add esp, 4
mov ecx, dword [esi + 4]
mov dword [ecx + 0x250], eax
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 4]
mov dword [ecx + 0x254], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [esi + 4]
mov dword [ecx + 0x10c], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0xb1dd4], eax
mov edi, dword [ebx + 0x3c]
mov dword [esi + 0xb1dd0], edi
mov ecx, edi
imul ecx, eax
mov dword [esi + 0xb1ddc], ecx
lea ecx, [eax + 1]
mov dword [esi + 0xb1dd8], ecx
lea ecx, [eax*4]
mov dword [esi + 0xb1b50], ecx
xor ecx, ecx
cmp dword [ebx + 0xc], 2
setl cl
mov dword [esi + 0xb189c], ecx
shl eax, 4
mov dword [esi + 0xb1890], eax
shl edi, 4
mov dword [esi + 0xb1894], edi
mov ecx, dword [esi + 0xb2284]
mov edx, dword [ecx + 0x50]
mov ebx, dword [ecx + 0x54]
mov dword [esp + 0x18], edx
add edx, ebx
mov dword [esp + 0x2c], eax
sub eax, edx
mov dword [esp + 0x28], eax
jbe 0x1008ce82
mov dword [esp + 0x38], ebx
mov edx, dword [ecx + 0x58]
mov ecx, dword [ecx + 0x5c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
add ecx, edx
cmp edi, ecx
jbe 0x1008ce82
mov ebx, edi
sub ebx, ecx
mov eax, dword [esi + 0xb2844]
test eax, eax
jle 0x1008c0d1
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0xb2848]
test esi, esi
jle 0x1008c0d1
cmp dword [esp + 0x14], 0
jne 0x1008c0d1
cmp dword [esp + 0x18], 0
jne 0x1008c0d1
mov ecx, ebx
lea ebx, [eax + 0xf]
mov edx, dword [esp + 0x28]
add edx, 0xf
xor ebx, edx
cmp ebx, 0xf
mov ebx, ecx
ja 0x1008c0d1
lea edx, [esi + 0xf]
lea ebx, [ecx + 0xf]
xor edx, ebx
mov ebx, ecx
cmp edx, 0xf
ja 0x1008c0d1
cmp eax, dword [esp + 0x28]
jg 0x1008c0d1
cmp esi, ebx
jg 0x1008c0d1
mov ebx, dword [esp + 0x2c]
mov edx, ebx
sub edx, eax
sub edi, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], edi
mov edi, eax
mov dword [esp + 0x24], esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov dword [ecx + 0x64], ebx
mov eax, dword [esi + 0xb1894]
mov ecx, dword [esi + 4]
mov dword [ecx + 0x68], eax
mov eax, dword [esi + 4]
mov dword [eax + 0x5c], edi
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x60], ecx
mov dword [esi + 0xb18c8], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 0xb18c4], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0xb18cc], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xb18d0], eax
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x6c], 0
mov edi, dword [esp + 0x1c]
jne 0x1008c21d
cmp dword [esi + 0xb2acc], 0
jne 0x1008c295
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x84]
mov ecx, dword [esi + 4]
mov dword [ecx + 0x124], eax
mov eax, dword [esi + 0xb18a8]
test eax, eax
je 0x1008b782
mov ecx, dword [esp + 0x34]
or dword [esp + 0x30], ecx
je 0x1008b7c9
mov dword [esi + 0xb18a8], 0
cmp dword [esi + 0xb1860], edi
jne 0x1008c6cf
test eax, eax
jne 0x1008c2cd
xor edx, edx
inc edx
mov ecx, esi
call fcn.1008f780
mov ebx, eax
test eax, eax
js 0x1008c037
mov eax, dword [esi + 4]
mov dword [eax + 0x70], ebx
mov ecx, esi
call fcn.1008a120
test eax, eax
js 0x1008cf5e
mov edx, dword [esi + 0xb2284]
test edx, edx
je 0x1008b7f6
cmp dword [edx + 0x498], 0
je 0x1008b7f6
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [edx + 0x49c]
cmp dword [eax + 0x88], ecx
jge 0x1008b7f6
mov dword [eax + 0x88], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0xb18a0]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xb1b5c]
mov dword [esp + 0xc], eax
xor eax, eax
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x2c], 0
sete al
mov dword [esi + 0xb18a0], eax
mov eax, dword [edi + 0x521c]
mov dword [esi + 0xb1b5c], eax
mov edx, dword [edi + 0x846c]
mov dword [esi + 0xb22a8], edx
mov ecx, dword [edi + 0x8474]
mov dword [esi + 0xb2294], ecx
mov ecx, dword [edi + 0x8478]
mov dword [esi + 0xb229c], ecx
mov ecx, dword [edi + 0x847c]
mov dword [esi + 0xb22a0], ecx
mov ecx, dword [edi + 0x8480]
mov dword [esi + 0xb22a4], ecx
cmp dword [ebx + 0x28], 5
jne 0x1008c2db
mov ecx, dword [edi + 0x8470]
mov edi, dword [ebp + 8]
mov dword [edi + 0xb24a0], ecx
mov esi, dword [edi + 0xb22bc]
cmp edx, esi
jne 0x1008c2f2
cmp dword [edi + 0xb1b60], 0
jne 0x1008c339
mov ebx, dword [edi + 0xb22a8]
mov eax, dword [edi + 0xb22bc]
cmp ebx, eax
jne 0x1008c3f9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xb1b60], 0
jne 0x1008ce24
mov edi, dword [ecx + 0xb1b5c]
xor eax, eax
cmp edi, 3
setne al
mov dword [ecx + 0xb1b60], eax
mov ebx, ecx
cmp edi, 3
jne 0x1008c66d
mov ecx, ebx
call fcn.1008f0e0
test eax, eax
js 0x1008c6c5
lea esi, [ebx + 0xb2294]
mov ecx, dword [ebx + 0xb1b5c]
mov eax, dword [ebx + 0xb1dd0]
cmp ecx, 3
jne 0x1008c6d9
imul eax, dword [ebx + 0xb1dd8]
add eax, eax
add eax, 0xfffffffe
push eax
push 0xff
push dword [ebx + 0xb1b54]
call fcn.10132b90
add esp, 0xc
mov edi, ebx
mov eax, dword [edi + 0xb1304]
lea ecx, [eax + 0x58]
add eax, 0x50
mov edx, dword [ebp + 0xc]
push dword [edx + 0x2c]
push dword [edi + 0xb1b5c]
push esi
push dword [edi + 0xb2284]
push ecx
push eax
call fcn.10082860
add esp, 0x18
test eax, eax
js 0x1008cf5e
lea eax, [edi + 0xb24a4]
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 0x8140]
mov edx, dword [esi + 0x8464]
shl edx, 2
lea edx, [edx + edx*2]
push edx
push ecx
push eax
call fcn.10132610
add esp, 0xc
mov eax, dword [esi + 0x8464]
mov dword [edi + 0xb27c8], eax
mov eax, dword [esi + 0x8468]
mov dword [edi + 0xb27d0], eax
xor eax, eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x28], 5
sete al
mov dword [edi + 0xb18bc], eax
mov eax, dword [edi + 0xb2a04]
test eax, eax
mov ebx, edi
jns 0x1008c72b
xor eax, eax
cmp dword [ecx + 0x28], 5
sete al
mov edx, ecx
mov ecx, dword [ebx + 0xb1304]
mov ecx, dword [ecx]
or dword [ecx + 0x54], eax
cmp dword [edx + 0x28], 5
mov ecx, edx
jne 0x1008c784
mov dword [ebx + 0xb27e8], 0xffffffff
mov eax, dword [ebx + 0xb1304]
mov dword [eax + 0x288], 1
cmp dword [ecx + 0x28], 5
jne 0x1008c79c
mov eax, dword [ebx + 0xb27ec]
or eax, 1
mov dword [ebx + 0xb27ec], eax
mov ecx, dword [ebx + 0xb1304]
or dword [ecx + 0x288], eax
cmp dword [ebx + 0xb1b5c], 3
jne 0x1008c7a7
mov ecx, dword [ebx + 0xb2284]
mov edi, dword [ebx + 0xb1304]
mov esi, dword [edi]
xor eax, eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], eax
cmp dword [ebx + 0xb298c], eax
mov dword [esp + 0xc], ecx
jne 0x1008c7c6
cmp dword [ecx + 0x68c], 0
jne 0x1008c816
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xb1b58], 0
jne 0x1008c872
cmp dword [ebx + 0xb1b5c], 3
setne al
movzx eax, al
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x94]
mov dword [ebx + 0xb27e0], eax
mov eax, dword [edi + 0x54]
cmp dword [edi + 0x50], eax
jne 0x1008c879
cmp dword [ecx + 0x68c], 0
jne 0x1008c88a
cmp dword [esi + 0x94], 0
jne 0x1008c8bd
mov dword [esi + 0x98], 0
cmp dword [ebx + 0xb2a8c], 0
jne 0x1008c8cc
cmp dword [ebx + 0xb2aac], 0
jne 0x1008c91f
cmp dword [ebx + 0xb29ec], 0
jne 0x1008c9c7
mov eax, dword [ebx + 0xb29f4]
test eax, eax
jne 0x1008c9f6
mov eax, dword [ebx + 0xb2a00]
test eax, eax
jle 0x1008bb43
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xb29fc]
mov ecx, dword [ecx + ebx*4]
test ecx, ecx
je 0x1008bb3e
push ecx
push 0x14
push esi
call fcn.1005ec50
add esp, 0xc
test eax, eax
je 0x1008ca30
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xb29fc]
mov dword [eax + ebx*4], 0
mov eax, dword [ecx + 0xb2a00]
inc ebx
cmp ebx, eax
jl 0x1008bb04
mov ebx, dword [ebp + 8]
mov dword [ebx + 0xb2a00], 0
cmp dword [ebx + 0xb2ad4], 0
jne 0x1008ca4e
cmp dword [ebx + 0xb29e8], 0
jg 0x1008cb95
mov ecx, dword [ebx + 0xb2284]
mov eax, dword [ebx + 0xb1304]
mov edx, dword [ebx + 0xb27cc]
mov dword [eax + 0x60], edx
mov dword [ebx + 0xb27cc], 0
cmp dword [ecx + 0x498], 0
mov edx, dword [ebx + 4]
je 0x1008cc7f
mov esi, dword [edx + 0x88]
mov edi, dword [ecx + 0x49c]
cmp esi, edi
cmovg edi, esi
mov dword [edx + 0x88], edi
xor esi, esi
mov edx, dword [eax + 0x58]
mov edi, dword [ebx + esi*4 + 0xb2458]
cmp edx, edi
jl 0x1008c0c2
cmp dword [ebx + 0xb18bc], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xc]
je 0x1008bd78
cmp dword [ecx + 0x28], 5
jne 0x1008c6cf
mov edi, dword [eax + 0x520c]
cmp dword [ebx + 0xb1b58], 0
jne 0x1008cd80
cmp dword [ebx + 0xb1b5c], 3
setne cl
mov eax, edi
shl eax, cl
mov ecx, dword [ebx + 0xb1ddc]
cmp edi, ecx
jae 0x1008c6cf
mov ebx, 0xbebbb1b7
cmp eax, ecx
jae 0x1008c037
mov eax, edi
xor edx, edx
mov esi, dword [ebp + 8]
div dword [esi + 0xb1dd4]
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x51f8], edx
mov dword [eax + 0x5204], edx
mov eax, edi
xor edx, edx
div dword [esi + 0xb1dd4]
cmp dword [esi + 0xb1b58], 0
jne 0x1008cd87
cmp dword [esi + 0xb1b5c], 3
setne cl
shl eax, cl
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x51fc], eax
mov dword [ecx + 0x5208], eax
cmp dword [esi + 0xb1b5c], 2
je 0x1008cd8e
push ecx
push esi
call fcn.100871d0
add esp, 8
test eax, eax
js 0x1008cf5e
mov eax, dword [esi + 0xb2280]
cmp dword [eax + 0x20], 2
mov edi, esi
jne 0x1008be3f
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x24], 3
je 0x1008d0ae
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x24], 3
je 0x1008cda0
cmp dword [edi + 0xb27f8], 0
jne 0x1008be63
push dword [esp + 0x1c]
push edi
call fcn.100808c0
add esp, 8
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x258]
cmp eax, 0x2f
jg 0x1008cdef
cmp eax, 0x20
jge 0x1008cdc3
cmp eax, 0x18
jge 0x1008cdcc
cmp eax, 0x10
jge 0x1008cdd8
cmp eax, 8
jge 0x1008cde2
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x40], 1
jne 0x1008beb3
cmp dword [edi + 0xb1864], 2
jge 0x1008cdff
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x48]
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [edi + 0xb2280]
mov esi, dword [eax + 0x2c]
mov edx, dword [eax + 0x30]
cmp esi, edx
cmovg edx, esi
xor eax, eax
test edx, edx
cmovle edx, eax
add edx, ecx
mov ecx, dword [edi + 0xb2284]
mov ecx, dword [ecx + 0x6a4]
add ecx, ecx
lea ecx, [ecx + ecx*2]
sub ecx, edx
add ecx, 0xffffffdf
mov dword [ebx + 0x38], ecx
mov ecx, dword [edi + 0xb27dc]
mov edx, ecx
inc edx
mov dword [edi + 0xb27dc], edx
mov dword [ebx + 0x1c], edx
je 0x1008bf1b
movzx edx, word [ebx + 0x5208]
and ecx, 0x1f
mov word [edi + ecx*2 + 0xb2804], dx
lea eax, [edi + 0xb5534]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x586c]
mov dword [esp + 0x20], eax
lea eax, [edi + 0xb557c]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x5aec]
mov dword [esp + 0x34], eax
mov cl, 1
pcmpeqd xmm0, xmm0
mov eax, ebx
xor edx, edx
mov dword [esp + 0x14], ecx
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
mov ebx, dword [eax + 0x1c]
and ebx, 0x1f
xor esi, esi
mov dword [esp + esi*4 + 0x40], 0x3c
cmp edx, dword [eax + 0x5850]
jb 0x1008c04f
inc esi
cmp esi, 0x10
jne 0x1008bf71
shl ebx, 9
imul esi, edx, 0x780
shl edx, 8
add edx, ebx
mov eax, dword [ebp + 8]
lea ecx, [eax + edx]
add ecx, 0xb552c
xor eax, eax
dec eax
mov dword [ecx + 4], eax
mov dword [esp + 0x10], ecx
mov dword [ecx], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x18]
lea edi, [eax + edx]
mov eax, dword [esp + 0x20]
lea edx, [eax + esi]
xor ecx, ecx
mov ebx, dword [esp + ecx*4 + 0x40]
mov eax, dword [edx]
and eax, 3
lea eax, [eax + ebx*4]
mov dword [edi + ecx*4], eax
inc ecx
add edx, 0x28
cmp ecx, 0x10
jne 0x1008bfc5
mov ecx, dword [esp + 0x84d8]
xor ecx, ebp
call fcn.10130483
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp esi, dword [eax + edx*4 + 0x5848]
jae 0x1008bf85
imul ecx, edx, 0x780
add ecx, eax
mov dword [esp + 0xc], edx
lea edx, [esi + esi*4]
mov ecx, dword [ecx + edx*8 + 0x5878]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xb8]
test ecx, ecx
je 0x1008bf85
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb27d8]
mov dword [esp + 0x24], eax
test eax, eax
jle 0x1008c0fb
mov dword [esp + 0x24], ebx
xor ecx, ecx
mov esi, dword [ebp + 8]
mov dword [esi + 0xb2844], ecx
mov dword [esi + 0xb2848], ecx
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
jmp 0x1008b6f6
cmp dword [esp + 0x20], 0
je 0x1008b590
cmp dword [esp + 0x28], 0
mov esi, dword [ebp + 8]
je 0x1008b593
xor eax, eax
inc eax
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x20]
cmovns eax, dword [esp + 0x18]
jmp 0x1008ae60
or esi, 1
bsr ecx, esi
xor ecx, 0x1f
add eax, ecx
mov edx, dword [esp + 0x24]
cmp edx, eax
cmovb eax, edx
add eax, ecx
inc eax
cmp edx, eax
cmovb eax, edx
mov edi, dword [esp + 0x20]
mov dword [edi], eax
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
jmp 0x1008ab61
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x695c]
mov ecx, dword [edi + ecx*4 + 0xb1e7c]
mov esi, dword [ecx + 4]
mov ecx, dword [edi + 0xb2280]
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x1008c6cf
mov edx, dword [ecx + 0x40]
cmp edx, dword [esi + 0x40]
jne 0x1008c6cf
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xb2284]
cmp edx, dword [esi + 0x2a710]
jne 0x1008c6cf
test eax, eax
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x38]
je 0x1008ad95
jmp 0x1008b3b3
xor eax, eax
mov edx, dword [esp + 0xc]
cmp dword [edx + 0x70], 0
setle al
mov ecx, 2
sub ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + 0x120], ecx
cmp dword [edx + 0x74], 0
je 0x1008c289
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, dword [eax + 0x11c]
xor edx, edx
inc edx
mov edi, dword [esp + 0xc]
cmp ecx, dword [edi + 0x80]
mov ecx, dword [edi + 0x78]
mov dword [eax + 0x114], ecx
mov eax, dword [edi + 0x7c]
mov ecx, dword [esi]
mov dword [ecx + 0x118], eax
mov eax, dword [edi + 0x80]
mov ecx, dword [esi]
mov dword [ecx + 0x11c], eax
mov eax, dword [esp + 0x30]
cmovne eax, edx
mov dword [esp + 0x30], eax
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x1c]
jmp 0x1008b74e
push dword [esi + 0xb2ad0]
call fcn.10197260
add esp, 4
test eax, eax
je 0x1008c2c1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb2ad0]
cmp eax, 2
je 0x1008c2c1
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov dword [ecx + 0x118], eax
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x1c]
jmp 0x1008b75b
push esi
call fcn.10090020
add esp, 4
jmp 0x1008b7a0
xor ecx, ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 0xb18c0], 0
jne 0x1008b87b
jmp 0x1008b881
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + 0x14]
xor ebx, ebx
inc ebx
shl ebx, cl
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x20], ebx
mov esi, 0
cmovl esi, ebx
add esi, ecx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x30]
cmp esi, ecx
jle 0x1008b88f
not ecx
add edx, ecx
mov ecx, edx
sar ecx, 0x1f
and ecx, dword [esp + 0x20]
add ecx, edx
mov dword [edi + 0xb22bc], ecx
jmp 0x1008b88f
xor ecx, ecx
cmp dword [esp + 0xc], 2
sete bl
mov edx, dword [edi + 0xb1304]
test edx, edx
je 0x1008ce82
mov esi, dword [edx]
cmp dword [esi + 0xb8], 0
je 0x1008ce82
mov cl, bl
mov esi, dword [edx + ecx*4 + 8]
mov edi, dword [esp + 0x10]
cmp esi, dword [edi]
jne 0x1008c389
add edx, 4
push ecx
push 0x7fffffff
push edx
call fcn.10040980
add esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb1b5c]
cmp eax, 3
je 0x1008d0f0
cmp eax, dword [esp + 0xc]
je 0x1008d0f0
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xb1304]
mov edx, dword [ecx + 0x5c]
cmp edx, dword [esi + 0xb22a8]
jne 0x1008d284
mov edx, dword [esp + 0xc]
mov ecx, edx
xor ecx, 2
xor edx, 1
mov esi, eax
xor esi, 2
xor eax, 1
or eax, ecx
sete al
or esi, edx
je 0x1008d491
test al, al
jne 0x1008d491
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xb1b5c], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xb18a0], ecx
jmp 0x1008c6cf
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xb1b60], 0
jne 0x1008ce21
inc eax
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + 0x14]
xor esi, esi
inc esi
shl esi, cl
cdq
idiv esi
cmp ebx, edx
je 0x1008b8b0
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb27d8], 0
je 0x1008d1dd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb2310]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0
jne 0x1008c473
mov eax, dword [ebp + 8]
movapd xmm0, xmmword [0x102a8d80]
movupd xmmword [eax + 0xb2458], xmm0
movupd xmmword [eax + 0xb2468], xmm0
movupd xmmword [eax + 0xb2478], xmm0
movupd xmmword [eax + 0xb2488], xmm0
mov ecx, dword [ebp + 8]
call fcn.1008f0e0
test eax, eax
js 0x1008ce87
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xb22bc]
inc eax
mov dword [edi + 0xb22bc], eax
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx + 0x14]
xor esi, esi
inc esi
shl esi, cl
cdq
idiv esi
mov dword [edi + 0xb22bc], edx
mov eax, dword [edi + 0xb1304]
mov dword [eax + 0x5c], edx
xor eax, eax
xor esi, esi
cmp dword [ebx + 0x34], esi
sete al
mov ecx, dword [edi + 0xb1304]
mov dword [ecx + 0x28c], eax
mov eax, dword [edi + 0xb1304]
add eax, 4
push esi
mov ebx, 0x7fffffff
push ebx
push eax
call fcn.10040980
add esp, 0xc
mov eax, dword [edi + 0xb1304]
add eax, 4
push 1
push ebx
push eax
call fcn.10040980
add esp, 0xc
mov dword [edi + 0xb27d0], esi
push edi
call fcn.10087eb0
add esp, 4
test eax, eax
jns 0x1008c51d
mov ebx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test byte [eax + 0x1c8], 8
jne 0x1008c037
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb27d8], 0
je 0x1008cf10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb2284]
mov cl, byte [eax + 0x6a4]
dec cl
xor esi, esi
inc esi
mov edx, esi
shl edx, cl
mov dword [esp + 0x40], edx
mov cl, byte [eax + 0x6a8]
dec cl
mov eax, esi
shl eax, cl
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0xffffffff
cmp dword [esp + 0x18], 0
je 0x1008ceee
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb2310]
mov eax, dword [eax]
mov edx, dword [eax + 0x44]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp edx, dword [ecx + 0x44]
jne 0x1008ceee
mov edx, dword [eax + 0x48]
cmp edx, dword [ecx + 0x48]
jne 0x1008ceee
mov eax, dword [eax + 0x50]
cmp eax, dword [ecx + 0x50]
jne 0x1008ceee
mov esi, dword [esp + 0x18]
lea ebx, [esi + 4]
push 0
push 0x7fffffff
push ebx
call fcn.10169350
add esp, 0xc
cmp dword [esi + 0x280], 0
je 0x1008c5d5
push 1
push 0x7fffffff
push ebx
call fcn.10169350
add esp, 0xc
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xb2310]
add eax, 4
push eax
push dword [esi + 4]
call fcn.10040c60
add esp, 8
mov eax, dword [esi + 0xb2310]
mov ecx, dword [eax]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0xb2310]
add eax, 4
push ebx
push eax
call fcn.10041050
add esp, 8
test eax, eax
js 0x1008cf5e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x58]
add eax, 2
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xb2310]
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0xb2310]
add eax, 4
push 0
push 0x7fffffff
push eax
call fcn.10040980
add esp, 0xc
mov eax, dword [esi + 0xb2310]
cmp dword [eax + 0x280], 0
je 0x1008cefe
add eax, 4
push 1
push 0x7fffffff
push eax
call fcn.10040980
add esp, 0xc
jmp 0x1008cefe
test eax, eax
jne 0x1008b8df
mov esi, 0xab2d4
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi]
cmp dword [eax + 0xb8], 0
je 0x1008c696
mov eax, dword [ebp + 8]
cmp dword [eax + esi + 0x284], 0
je 0x1008c6a9
add esi, 0x2ac
cmp esi, 0xb1304
jne 0x1008c67a
jmp 0x1008ced1
mov ecx, dword [ebp + 8]
lea eax, [ecx + esi]
cmp eax, dword [ecx + 0xb1304]
je 0x1008c696
push eax
push dword [ebp + 8]
call fcn.10084560
add esp, 8
jmp 0x1008c696
mov dword [ebx + 0xb1b60], 0
mov ebx, 0xbebbb1b7
jmp 0x1008c037
mov edi, ebx
xor ebx, ebx
cmp ecx, 2
sete bl
cmp eax, ebx
jle 0x1008b92b
mov edx, dword [edi + 0xb1dd8]
mov ecx, edx
imul ecx, ebx
add ecx, ecx
add ecx, dword [edi + 0xb1b54]
inc ebx
cmp ebx, eax
mov eax, 0
sete al
sub edx, eax
add edx, edx
push edx
push 0xff
push ecx
call fcn.10132b90
add esp, 0xc
mov eax, dword [edi + 0xb1dd0]
cmp ebx, eax
jl 0x1008c6eb
jmp 0x1008b92b
mov edx, dword [ebx + 0xb22a8]
cmp edx, eax
jne 0x1008c73f
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x24], 1
je 0x1008c74c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xb27e4], 1
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0xb27e8]
mov ecx, dword [ecx + 0xb2284]
mov ecx, dword [ecx + 0x14]
xor esi, esi
dec esi
shl esi, cl
test edi, edi
js 0x1008d18c
sub edi, edx
not esi
and edi, esi
cmp edi, eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
jbe 0x1008b9bd
jmp 0x1008d194
mov eax, dword [ebx + 0xb27e8]
cmp eax, dword [ebx + 0xb22a8]
jne 0x1008c79c
cmp dword [ecx + 0x2c], 0
jne 0x1008b9df
mov eax, dword [ebx + 0xb27ec]
jmp 0x1008ba12
cmp dword [ebx + 0xb1b60], 0
je 0x1008ba2b
cmp dword [ebx + 0xb27f4], 2
jge 0x1008ba2b
jmp 0x1008bd5e
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0xb2960]
push dword [ecx + 4]
push dword [esp + 0x10]
push eax
call fcn.101c6610
mov ecx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jns 0x1008ba57
mov ebx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test byte [eax + 0x1c8], 8
jne 0x1008c037
mov eax, dword [ebp + 8]
mov dword [eax + 0xb298c], 0
mov ecx, dword [esp + 0xc]
jmp 0x1008ba57
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb298c], 0
je 0x1008ba64
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb2990]
dec eax
cmp eax, 7
ja case.default.0x1008c835
jmp dword [eax*4 + 0x102de8d4]
mov dword [esi + 0x94], 1
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xb2994]
test al, 3
mov ecx, dword [esp + 0xc]
je 0x1008ba87
cmp dword [ebx + 0xb2990], 4
jg 0x1008ba87
shr eax, 1
and eax, 1
jmp 0x1008ba81
mov al, 1
jmp 0x1008ba7e
setl al
movzx eax, al
mov dword [esi + 0x98], eax
jmp 0x1008bac3
cmp dword [ebx + 0xb298c], 0
je 0x1008baac
mov eax, dword [ebx + 0xb2990]
cmp eax, 5
je 0x1008c8ab
cmp eax, 3
jne 0x1008d334
mov dword [esi + 0x98], 1
mov ebx, dword [ebp + 8]
jmp 0x1008bac3
mov dword [esi + 0x98], 1
jmp 0x1008bac3
cmp dword [ebx + 0xb2a98], 6
jg 0x1008bad0
mov eax, dword [ebx + 0xb2aa0]
dec eax
cmp eax, 1
ja 0x1008bad0
push esi
call fcn.1019b8a0
add esp, 4
test eax, eax
je 0x1008bad0
mov edx, dword [ebx + 0xb2a98]
cmp edx, 6
ja case.default.0x1008c90e
mov ecx, 4
jmp dword [edx*4 + 0x102de8f4]
mov ecx, 7
jmp case.0x1008c90e.0
mov eax, dword [ebx + 0xb2ab0]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1008d1ad
push 0x24
push 6
push esi
call fcn.10194070
add esp, 0xc
test eax, eax
je 0x1008badd
mov edx, eax
imul eax, dword [esp + 0x14], 0x168
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x102de7e8]
xor eax, eax
cmp eax, dword [ebx + 0xb2ab4]
mov ecx, 0
sbb ecx, ecx
or ecx, 1
cvtsi2sd xmm1, ecx
cmp eax, dword [ebx + 0xb2ab8]
mulsd xmm1, xmm0
sbb eax, eax
or eax, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mulsd xmm0, xmm1
mov dword [esp + 0x18], edx
mov eax, dword [edx + 4]
sub esp, 0xc
mov dword [esp], eax
movsd qword [esp + 4], xmm0
call fcn.10192ae0
add esp, 0xc
push dword [ebx + 0xb2ab8]
push dword [ebx + 0xb2ab4]
mov eax, dword [esp + 0x20]
push dword [eax + 4]
call fcn.10192b90
add esp, 0xc
jmp 0x1008badd
push 1
push 7
push esi
call fcn.10194070
add esp, 0xc
test eax, eax
je 0x1008baea
mov cl, byte [ebx + 0xb29f0]
mov eax, dword [eax + 4]
mov byte [eax], cl
mov dword [ebx + 0xb29ec], 0
jmp 0x1008baea
add ebx, 0xb29f4
push eax
push 1
push esi
call fcn.1005ec50
add esp, 0xc
test eax, eax
jne 0x1008ca15
push ebx
call fcn.10127400
add esp, 4
mov dword [ebx], 0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
or dword [eax + 0x2c8], 2
mov ebx, dword [ebp + 8]
jmp 0x1008baf8
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0xb29fc]
push eax
call fcn.10127400
add esp, 4
jmp 0x1008bb28
push esi
call fcn.101935c0
add esp, 4
test eax, eax
je 0x1008cc75
mov ebx, eax
mov dword [eax], 2
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xb24a0]
shl eax, 5
add eax, dword [edi + 0x58]
mov dword [ebx + 8], eax
sar eax, 0x1f
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0xb2ad8]
mov dword [ebx + 0x10], eax
cmp dword [ecx + 0xb2adc], 0
je 0x1008d2e0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xb2ae0]
mov dword [ebx + 0x14], eax
mov eax, dword [ecx + 0xb2ae4]
mov dword [ebx + 0x18], eax
mov eax, dword [ecx + 0xb2ae8]
inc eax
mov dword [ebx + 0x1c], eax
mov eax, dword [ecx + 0xb2aec]
mov dword [ebx + 0x20], eax
mov eax, dword [ecx + 0xb2af0]
mov dword [ebx + 0x24], eax
mov eax, dword [ecx + 0xb2af4]
mov dword [ebx + 0x28], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xb2af8]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0xb2afc]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0xb2b08]
mov dword [ebx + 0x3c], eax
movsd xmm0, qword [edi + 0xb2b00]
movsd qword [ebx + 0x34], xmm0
mov eax, dword [edi + 0xb2b0c]
mov dword [ebx + 0x40], eax
movzx eax, word [edi + 0xb2b10]
mov word [ebx + 0x44], ax
movzx eax, word [edi + 0xb2b12]
mov word [ebx + 0x46], ax
mov al, byte [edi + 0xb2b14]
mov byte [ebx + 0x48], al
lea eax, [ebx + 0x49]
lea ecx, [edi + 0xb2b15]
mov edx, 0x300
push edx
push ecx
push eax
call fcn.10132610
add esp, 0xc
lea eax, [ebx + 0x349]
lea ecx, [edi + 0xb2e15]
mov edx, 0x300
push edx
push ecx
push eax
call fcn.10132610
add esp, 0xc
add ebx, 0x64a
lea eax, [edi + 0xb3116]
push 0x2400
push eax
push ebx
mov ebx, edi
call fcn.10132610
add esp, 0xc
xor eax, eax
cmp dword [edi + 0xb5518], 0
setne al
mov dword [edi + 0xb2ad4], eax
mov eax, dword [edi + 4]
or dword [eax + 0x2c8], 4
jmp 0x1008bb5d
xor eax, eax
dec eax
mov dword [esp + 0x53], eax
mov dword [esp + 0x4f], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
mov eax, 0x10
push eax
push eax
push esi
call fcn.10194070
add esp, 0xc
test eax, eax
je 0x1008cc75
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb29e8]
mov dword [esp + 0xc], ecx
mov dword [ecx], eax
test eax, eax
je 0x1008cc63
mov ebx, 0xfffffff4
jmp 0x1008c037
cmp dword [edx + 0x1bc], 0
jg 0x1008bb99
mov cl, 1
jmp 0x1008bd95
mov cl, 1
jmp 0x1008bdf2
inc eax
mov dword [ecx + 0x51fc], eax
mov dword [ecx + 0x5208], eax
jmp 0x1008be11
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x5230], 0
jne 0x1008be4d
push dword [esp + 0x1c]
push edi
call fcn.101a5dd0
add esp, 8
jmp 0x1008be4d
cmp dword [edi + 0xb1de4], 5
jne 0x1008cdef
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x24], 1
je 0x1008cde2
jmp 0x1008cdef
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x24], 3
je 0x1008cdef
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x2c], 0
jne 0x1008be9c
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x40], 0
jmp 0x1008be9c
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test byte [eax + 0x40], 1
jne 0x1008d125
mov edi, dword [ebp + 8]
mov dword [edi + 0xb18b8], 1
jmp 0x1008beb3
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xb1304]
test eax, eax
je 0x1008ce82
mov ecx, dword [eax]
cmp dword [ecx + 0xb8], 0
je 0x1008ce82
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0xb1b5c]
cmp edi, 3
je 0x1008ce9b
cmp edi, dword [esp + 0xc]
je 0x1008ce9b
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xb27f4], 0
cmp dword [eax + 0x5c], ebx
jne 0x1008d138
test byte [eax + 0x284], 4
jne 0x1008d297
mov eax, dword [ebp + 8]
mov dword [eax + 0xb1b60], 0
jmp 0x1008c675
call fcn.1014029d
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xb1b60], 0
jmp 0x1008c037
mov ebx, dword [ebp + 8]
inc dword [ebx + 0xb27f4]
mov dword [ebx + 0xb1304], 0
xor eax, eax
cmp edi, 3
setne al
mov dword [ebx + 0xb1b60], eax
jmp 0x1008b8d6
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0xc]
xor ecx, ecx
inc ecx
jmp 0x1008aded
xor eax, eax
cmp edi, 2
sete al
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0xb1304]
mov dword [edx + eax*4 + 8], ecx
jmp 0x1008b8ee
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb27ec], 0
je 0x1008d343
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xb22bc]
mov ecx, dword [ecx + 0xb2310]
mov dword [ecx + 0x5c], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xb22a8]
mov eax, dword [eax + 0xb22bc]
jmp 0x1008b8a8
mov eax, 2
mov edx, dword [esp + 0x14]
add ecx, edx
add ecx, 0x4c
mov edx, dword [esp + 0x10]
push dword [edx]
push dword [esp + 0x28]
push ecx
push eax
push dword [esp + 0x4c]
push dword [esp + 0x48]
push dword [esp + 0x40]
call fcn.101c51d0
mov ecx, dword [esp + 0x28]
add esp, 0x1c
test eax, eax
jns 0x1008aa57
mov ebx, eax
jmp 0x1008c037
add cl, 0xe1
shr esi, cl
dec esi
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [ecx + edx + 0x695c], esi
cmp esi, 0xff
jbe 0x1008a7fc
jmp 0x1008c6cf
mov ecx, eax
shr ecx, 3
xor ebx, ebx
cmp eax, dword [esp + 0x2c]
setl bl
add ebx, eax
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + ecx]
mov ecx, dword [esp + 0x20]
mov dword [ecx], ebx
and al, 7
mov ecx, eax
shl edx, cl
test dl, 0x80
mov esi, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
je 0x1008a88c
mov ecx, ebx
shr ecx, 3
xor eax, eax
cmp ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + ecx]
setl al
add eax, ebx
and bl, 7
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
xor eax, eax
bt edx, 7
mov edx, dword [esp + 0xc]
adc eax, 1
mov dword [esp + 0x24], eax
jmp 0x1008a88c
mov ecx, eax
or ecx, 1
bsr ebx, ecx
lea ecx, [ebx + ebx]
mov edi, ecx
xor edi, 0x3f
add edi, edx
cmp esi, edi
cmovb edi, esi
mov edx, dword [esp + 0x20]
mov dword [edx], edi
add cl, 0xe1
shr eax, cl
dec eax
cmp ebx, 0x13
mov ecx, 0xbebbb1b7
cmovae ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x5204], ecx
mov ecx, eax
mov esi, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
jmp 0x1008a9bc
cmp eax, 0xe
jne 0x1008d2b3
mov esi, 5
jmp 0x1008b557
mov ecx, edi
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
call fcn.101c7340
add esp, 4
cmp dword [edi + 0xb1b58], 0
je 0x1008be3f
mov ecx, edi
mov esi, dword [esp + 0x1c]
mov edx, esi
push 0
call fcn.101c7340
add esp, 4
mov ecx, edi
mov edx, esi
push 1
call fcn.101c7340
add esp, 4
jmp 0x1008be3f
cmp dword [esp + 0xc], 3
mov edi, dword [ebp + 8]
je 0x1008b89c
mov ecx, dword [edi + 0xb1304]
xor eax, eax
cmp dword [esp + 0xc], 1
sete al
add ecx, 4
push eax
push 0x7fffffff
push ecx
call fcn.10040980
add esp, 0xc
jmp 0x1008b89c
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x40], 2
mov edi, dword [ebp + 8]
jmp 0x1008beb3
xor ecx, ecx
cmp edi, 2
sete cl
add eax, 4
push ecx
push 0x7fffffff
push eax
call fcn.10040980
add esp, 0xc
mov ebx, dword [ebp + 8]
mov dword [ebx + 0xb1b60], 1
mov dword [ebx + 0xb1304], 0
mov edi, dword [ebx + 0xb1b5c]
xor eax, eax
inc eax
jmp 0x1008b8d6
mov edi, dword [ebp + 8]
cmp dword [edi + 0xb27f8], 0
je 0x1008acfb
jmp 0x1008c6cf
not esi
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add eax, edx
and eax, esi
cmp dword [ebx + 0xb27e4], 0
cmove eax, edx
mov dword [ebx + 0xb27e8], eax
jmp 0x1008b9bd
cmp dword [ebx + 0xb2ab4], 0
jne 0x1008c931
cmp dword [ebx + 0xb2ab8], 0
jne 0x1008c931
jmp 0x1008badd
mov dword [esp + 0x18], 0
jmp 0x1008c43e
test eax, eax
je 0x1008c6cf
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0xb1860]
push eax
call fcn.10084880
add esp, 0xc
test eax, eax
jns 0x1008acd7
jmp 0x1008cf5e
mov edi, esi
lea esi, [edx + ebx]
add esi, 0x8478
mov ecx, eax
shr ecx, 3
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + ecx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
cmp edx, 0x8000000
jb 0x1008d4c2
shr edx, 0x17
movzx ecx, byte [edx + 0x102b0dc9]
add eax, ecx
cmp edi, eax
cmovb eax, edi
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
movsx eax, byte [edx + 0x102b11c9]
jmp 0x1008d50c
mov edi, 5
jmp 0x1008d26b
mov edi, eax
cmp esi, edi
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
jne 0x1008adf9
jmp 0x1008adfc
cmp dword [esp + 0xc], 3
mov edi, dword [ebp + 8]
je 0x1008b89c
jmp 0x1008d104
mov ebx, dword [ebp + 8]
mov dword [ebx + 0xb1b60], 1
mov dword [ebx + 0xb1304], 0
jmp 0x1008b8df
cmp eax, 0xd
jne 0x1008d521
mov esi, 4
jmp 0x1008b557
mov ebx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test byte [eax + 0x1c8], 8
je 0x1008b293
jmp 0x1008c037
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x6a4]
mov dword [ebx + 0x14], eax
mov eax, dword [ecx + 0x6a8]
mov dword [ebx + 0x18], eax
cmp dword [ecx + 0x6c], 0
je 0x1008d589
mov dword [esi + 0x98], 0
jmp 0x1008c8b5
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp dword [eax + 0x1d8], 0
jne 0x1008cefe
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb2310]
lea ecx, [esp + 0x40]
push ecx
push dword [eax]
call fcn.1016a820
add esp, 8
jmp 0x1008cefe
or eax, 1
bsr edx, eax
mov eax, edx
xor eax, 0x1f
add eax, ebx
mov edi, dword [esp + 0x10]
cmp edi, eax
cmovb eax, edi
mov ecx, eax
shr ecx, 3
mov esi, dword [esp + 0x2c]
mov esi, dword [esi + ecx]
bswap esi
mov ecx, eax
and cl, 7
shl esi, cl
mov ecx, edx
shr esi, cl
sub eax, edx
add eax, 0x20
cmp edi, eax
cmovb eax, edi
mov ecx, esi
and ecx, 1
mov edx, ecx
neg edx
shr esi, 1
xor esi, edx
add esi, ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov dword [eax], esi
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
jne 0x1008a997
cmp dword [esp + 0x24], 3
jne 0x1008a997
add eax, edx
add eax, 0x8480
mov dword [esp + 0x3c], eax
mov eax, ebx
shr eax, 3
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
cmp eax, 0x8000000
jb 0x1008d528
shr eax, 0x17
movzx ecx, byte [eax + 0x102b0dc9]
add ebx, ecx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], ebx
movsx edx, byte [eax + 0x102b11c9]
jmp 0x1008d576
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb1b58], 0
jne case.0x1008c835.1
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb1b5c], 3
jne case.0x1008c835.1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb27e0]
mov dword [esi + 0x94], eax
jmp case.default.0x1008c835
mov dword [esi + 0x90], 1
jmp case.default.0x1008c835
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x18]
cmp eax, dword [edi + 0xb18a0]
je 0x1008b89c
mov eax, dword [esp + 0xc]
mov dword [edi + 0xb1b5c], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0xb18a0], eax
mov ebx, 0xbaa8beb0
jmp 0x1008c037
or edx, 1
bsr ebx, edx
mov edx, ebx
xor edx, 0x1f
add edx, eax
cmp edi, edx
cmovb edx, edi
mov eax, edx
shr eax, 3
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + eax]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
sub edx, ebx
mov ecx, ebx
shr eax, cl
add edx, 0x20
cmp edi, edx
cmovb edx, edi
mov ecx, dword [esp + 0x20]
mov dword [ecx], edx
mov ecx, eax
and ecx, 1
mov edx, ecx
neg edx
shr eax, 1
xor eax, edx
add eax, ecx
mov dword [esi], eax
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
xor ecx, ecx
jmp 0x1008a97d
mov esi, eax
jmp 0x1008b557
or eax, 1
bsr edi, eax
mov eax, edi
xor eax, 0x1f
add eax, ebx
mov esi, dword [esp + 0x10]
cmp esi, eax
cmovb eax, esi
mov ecx, eax
shr ecx, 3
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + ecx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
mov ecx, edi
sub eax, edi
shr edx, cl
add eax, 0x20
cmp esi, eax
cmovb eax, esi
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, edx
and eax, 1
mov ecx, eax
neg ecx
shr edx, 1
xor edx, ecx
add edx, eax
mov eax, dword [esp + 0x3c]
mov dword [eax], edx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
jmp 0x1008a997
mov dword [esi + 0x90], 2
jmp case.default.0x1008c835
mov dword [esi + 0x90], 4
jmp case.default.0x1008c835
mov ecx, 6
jmp case.0x1008c90e.0
xor ecx, ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0xb2aa4], 0
setne cl
lea ecx, [ecx*4 + 1]
jmp case.0x1008c90e.0
mov ecx, 2
jmp case.0x1008c90e.0
mov ecx, 3
jmp case.0x1008c90e.0
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xb2aa0], 2
jne 0x1008d602
mov dword [eax + 4], 1
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xb2a98], 5
jne 0x1008bad0
xor ecx, ecx
cmp dword [ebx + 0xb2aa8], 1
adc ecx, 1
mov dword [eax + 8], ecx
jmp 0x1008bad0