Function at 0x1001de90
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [ebp + 0x44]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x30]
push edi
mov edi, edx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0x1003eed8
cmp ecx, edx
je 0x1001dec9
test byte [ebp + 0x14], 0x14
je 0x1001dec9
mov edx, dword [ecx]
lea ecx, [edx + ecx + 4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0xc]
add edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 8]
add edx, ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
add edx, ecx
mov dword [ebp + 0x2c], edx
add edx, ecx
mov dword [ebp - 0x1c], edx
add edx, ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x1c]
sub ebx, 0x20
mov dword [ebp + 0x18], ebx
test edx, edx
je 0x1001df07
sub edx, 0x20
mov dword [ebp + 0x1c], edx
sub dword [ebp + 0x20], 0x10
sub dword [ebp + 0x24], 0x10
test dword [ebp + 0x14], 0x2000
jne 0x1001df1f
mov dword [ebp - 4], 0x1003ef48
test byte [ebp + 0x14], 0x20
je 0x1001e0f8
pxor xmm0, xmm0
movdqa xmmword [edi + 0xe0], xmm0
test edx, edx
je 0x1001dfe9
movzx ecx, word [eax + 0x30]
movzx edx, word [eax + 0x32]
movdqa xmmword [edi + 0x50], xmm0
mov word [edi + 0x5a], cx
movzx ecx, word [eax + 0x38]
mov word [edi + 0x5c], dx
movzx edx, word [eax + 0x34]
mov word [edi + 0x5e], cx
movzx ecx, word [eax + 0x36]
movdqa xmmword [edi + 0x60], xmm0
mov word [edi + 0x6a], dx
movzx edx, word [eax + 0x3c]
mov word [edi + 0x6c], cx
movzx ecx, word [eax + 0x40]
mov word [edi + 0x6e], dx
movzx edx, word [eax + 0x42]
movdqa xmmword [edi + 0x70], xmm0
mov word [edi + 0x7a], cx
movzx ecx, word [eax + 0x48]
mov word [edi + 0x7c], dx
movzx edx, word [eax + 0x44]
movdqa xmmword [edi + 0x80], xmm0
mov word [edi + 0x7e], cx
movzx ecx, word [eax + 0x46]
mov word [edi + 0x8a], dx
movzx edx, word [eax + 0x4c]
mov word [edi + 0x8c], cx
movzx ecx, word [eax + 0x3a]
mov word [edi + 0x8e], dx
movzx edx, word [eax + 0x3e]
mov word [edi + 0x90], cx
movzx ecx, word [eax + 0x4a]
mov word [edi + 0x94], dx
movzx edx, word [eax + 0x4e]
mov word [edi + 0x98], cx
mov word [edi + 0x9c], dx
movzx ecx, word [eax]
movzx edx, word [eax + 2]
movdqa xmmword [edi], xmm0
mov word [edi + 0xa], cx
movzx ecx, word [eax + 8]
mov word [edi + 0xc], dx
movzx edx, word [eax + 4]
mov word [edi + 0xe], cx
movzx ecx, word [eax + 6]
movdqa xmmword [edi + 0x10], xmm0
mov word [edi + 0x1a], dx
movzx edx, word [eax + 0xc]
mov word [edi + 0x1c], cx
movzx ecx, word [eax + 0x10]
mov word [edi + 0x1e], dx
movzx edx, word [eax + 0x12]
movdqa xmmword [edi + 0x20], xmm0
mov word [edi + 0x2a], cx
movzx ecx, word [eax + 0x18]
mov word [edi + 0x2c], dx
movzx edx, word [eax + 0x14]
mov word [edi + 0x2e], cx
movzx ecx, word [eax + 0x16]
movdqa xmmword [edi + 0x30], xmm0
mov word [edi + 0x3a], dx
movzx edx, word [eax + 0x1c]
mov word [edi + 0x3c], cx
movzx ecx, word [eax + 0xa]
mov word [edi + 0x3e], dx
movzx edx, word [eax + 0xe]
mov word [edi + 0x40], cx
movzx ecx, word [eax + 0x1a]
mov word [edi + 0x44], dx
movzx edx, word [eax + 0x1e]
mov word [edi + 0x48], cx
movzx ecx, word [eax + 0x20]
mov word [edi + 0x4c], dx
movzx edx, word [eax + 0x24]
movdqa xmmword [edi + 0xa0], xmm0
mov word [edi + 0xa6], cx
movzx ecx, word [eax + 0x22]
mov word [edi + 0xae], dx
movzx edx, word [eax + 0x26]
movdqa xmmword [edi + 0xb0], xmm0
mov word [edi + 0xb0], cx
movzx ecx, word [eax + 0x28]
mov word [edi + 0xb4], dx
movzx edx, word [eax + 0x2c]
movdqa xmmword [edi + 0xc0], xmm0
mov word [edi + 0xc6], cx
movzx ecx, word [eax + 0x2a]
mov word [edi + 0xce], dx
movzx edx, word [eax + 0x2e]
movdqa xmmword [edi + 0xd0], xmm0
mov word [edi + 0xd0], cx
mov word [edi + 0xd4], dx
jmp 0x10020ec8
movzx ecx, word [eax + 0x30]
mov bx, word [edi + 0x52]
or bx, cx
or bx, word [edi + 0x50]
mov ecx, 0x8000
or bx, word [edi + 0x5a]
test cx, bx
je 0x1001e221
test edx, edx
je 0x1001e221
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x50], ecx
mov ecx, dword [edi + 0x5c]
mov dword [edi + 0x54], ecx
mov ecx, dword [edi + 0x68]
mov dword [edi + 0x60], ecx
mov ecx, dword [edi + 0x6c]
mov dword [edi + 0x64], ecx
mov ecx, dword [edi + 0x78]
mov dword [edi + 0x70], ecx
mov ecx, dword [edi + 0x7c]
mov dword [edi + 0x74], ecx
mov ecx, dword [edi + 0x88]
mov dword [edi + 0x80], ecx
mov ecx, dword [edi + 0x8c]
mov dword [edi + 0x84], ecx
movzx ecx, word [edi + 0x90]
mov word [edi + 0x58], cx
movzx ecx, word [eax + 0x30]
mov word [edi + 0x5a], cx
movzx ecx, word [eax + 0x32]
mov word [edi + 0x5c], cx
movzx ecx, word [eax + 0x38]
mov word [edi + 0x5e], cx
movzx ecx, word [edi + 0x94]
mov word [edi + 0x68], cx
movzx ecx, word [eax + 0x34]
mov word [edi + 0x6a], cx
movzx ecx, word [eax + 0x36]
mov word [edi + 0x6c], cx
movzx ecx, word [eax + 0x3c]
mov word [edi + 0x6e], cx
movzx ecx, word [edi + 0x98]
mov word [edi + 0x78], cx
movzx ecx, word [eax + 0x40]
mov word [edi + 0x7a], cx
movzx ecx, word [eax + 0x42]
mov word [edi + 0x7c], cx
movzx ecx, word [eax + 0x48]
mov word [edi + 0x7e], cx
movzx ecx, word [edi + 0x9c]
mov word [edi + 0x88], cx
movzx ecx, word [eax + 0x44]
mov word [edi + 0x8a], cx
movzx ecx, word [eax + 0x46]
mov word [edi + 0x8c], cx
movzx ecx, word [eax + 0x4c]
mov word [edi + 0x8e], cx
movzx ecx, word [eax + 0x3a]
mov word [edi + 0x90], cx
movzx ecx, word [eax + 0x3e]
mov word [edi + 0x94], cx
movzx ecx, word [eax + 0x4a]
mov word [edi + 0x98], cx
movzx ecx, word [eax + 0x4e]
mov word [edi + 0x9c], cx
movzx ecx, word [eax]
mov bx, word [edi + 2]
or bx, cx
or bx, word [edi + 0xa]
mov ecx, 0x8000
or bx, word [edi]
test cx, bx
je 0x1001e3ce
mov ecx, dword [edi + 8]
mov dword [edi], ecx
mov ecx, dword [edi + 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x10], ecx
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x14], ecx
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x20], ecx
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x24], ecx
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x30], ecx
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x34], ecx
movzx ecx, word [edi + 0x40]
mov word [edi + 8], cx
movzx ecx, word [eax]
mov word [edi + 0xa], cx
movzx ecx, word [eax + 2]
mov word [edi + 0xc], cx
movzx ecx, word [eax + 8]
mov word [edi + 0xe], cx
movzx ecx, word [edi + 0x44]
mov word [edi + 0x18], cx
movzx ecx, word [eax + 4]
mov word [edi + 0x1a], cx
movzx ecx, word [eax + 6]
mov word [edi + 0x1c], cx
movzx ecx, word [eax + 0xc]
mov word [edi + 0x1e], cx
movzx ecx, word [edi + 0x48]
mov word [edi + 0x28], cx
movzx ecx, word [eax + 0x10]
mov word [edi + 0x2a], cx
movzx ecx, word [eax + 0x12]
mov word [edi + 0x2c], cx
movzx ecx, word [eax + 0x18]
mov word [edi + 0x2e], cx
movzx ecx, word [edi + 0x4c]
mov word [edi + 0x38], cx
movzx ecx, word [eax + 0x14]
mov word [edi + 0x3a], cx
movzx ecx, word [eax + 0x16]
mov word [edi + 0x3c], cx
movzx ecx, word [eax + 0x1c]
mov word [edi + 0x3e], cx
movzx ecx, word [eax + 0xa]
mov word [edi + 0x40], cx
movzx ecx, word [eax + 0xe]
mov word [edi + 0x44], cx
movzx ecx, word [eax + 0x1a]
mov word [edi + 0x48], cx
movzx ecx, word [eax + 0x1e]
mov word [edi + 0x4c], cx
mov ecx, dword [edi + 0xa4]
mov dword [edi + 0xa0], ecx
mov ecx, dword [edi + 0xac]
mov dword [edi + 0xa8], ecx
movzx ecx, word [edi + 0xb0]
mov word [edi + 0xa4], cx
movzx ecx, word [edi + 0xb4]
mov word [edi + 0xac], cx
movzx ecx, word [eax + 0x20]
mov word [edi + 0xa6], cx
movzx ecx, word [eax + 0x24]
mov word [edi + 0xae], cx
movzx ecx, word [eax + 0x22]
mov word [edi + 0xb0], cx
movzx ecx, word [eax + 0x26]
mov word [edi + 0xb4], cx
mov ecx, dword [edi + 0xc4]
mov dword [edi + 0xc0], ecx
mov ecx, dword [edi + 0xcc]
mov dword [edi + 0xc8], ecx
movzx ecx, word [edi + 0xd0]
mov word [edi + 0xc4], cx
movzx ecx, word [edi + 0xd4]
mov word [edi + 0xcc], cx
movzx ecx, word [eax + 0x28]
mov word [edi + 0xc6], cx
movzx ecx, word [eax + 0x2c]
mov word [edi + 0xce], cx
movzx ecx, word [eax + 0x2a]
mov ax, word [eax + 0x2e]
mov word [edi + 0xd0], cx
mov word [edi + 0xd4], ax
mov ecx, dword [ebp - 0x14]
test edx, edx
je 0x1001e7e8
movzx eax, word [ecx - 6]
test eax, 0x8000
je 0x1001e49d
test byte [ebp + 0x14], 0x84
jne 0x1001e49d
movzx ebx, word [ecx - 4]
lea edx, [ecx - 4]
movzx eax, ax
add ebx, 0x2000
and ebx, 0x10000
add eax, 0x2000
shr eax, 1
or eax, ebx
movzx ebx, word [ecx - 2]
movzx ecx, word [ecx]
add ebx, 0x2000
add ecx, 0x2000
shr ebx, 1
and ecx, 0x10000
or ebx, ecx
shr eax, 0xf
shr ebx, 0xf
mov dword [ebp + 0x30], edx
test eax, eax
je 0x1001e46d
mov edx, dword [ebp + 0x1c]
push esi
lea ecx, [esi*8]
sub edx, ecx
mov ecx, dword [ebp + 0x40]
push edx
mov edx, dword [ebp - 0x14]
push ecx
lea ecx, [edi + 0x50]
push ecx
mov ecx, dword [ebp + 0xc]
add edx, 0xfffffff8
push edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4]
add ecx, 0xfffffff8
push ecx
call eax
mov edx, dword [ebp + 0x30]
add esp, 0x18
test ebx, ebx
je 0x1001e49d
mov ecx, dword [ebp + 0x1c]
lea eax, [esi*8]
sub ecx, eax
mov eax, dword [ebp + 0x40]
push esi
add ecx, 0x10
push ecx
push eax
mov eax, dword [ebp - 4]
lea ecx, [edi + 0x54]
push ecx
mov ecx, dword [eax + ebx*4]
push edx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffffc
push edx
call ecx
add esp, 0x18
movzx eax, word [edi + 0x52]
lea ebx, [edi + 0x50]
test eax, 0x8000
je 0x1001e7e8
mov cl, byte [ebp + 0x14]
test cl, 4
jne 0x1001e67a
movzx eax, ax
add eax, 0x2000
shr eax, 1
test cl, cl
jns 0x1001e552
movzx edx, word [ebx + 4]
movzx ecx, word [ebx + 6]
add edx, 0x2000
and edx, 0x10000
or eax, edx
movzx edx, word [ebx + 8]
add ecx, 0x2000
add edx, 0x2000
shr ecx, 1
and edx, 0x10000
or ecx, edx
shr eax, 0xf
shr ecx, 0xf
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x1001e527
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x40]
push esi
push ecx
push edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4]
lea ecx, [ebx + 0x10]
push ecx
push ebx
push ebx
call eax
mov ecx, dword [ebp + 0x10]
add esp, 0x18
test ecx, ecx
je 0x1001e5df
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x40]
push esi
add ecx, 0x10
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x14]
push eax
lea eax, [ebx + 4]
push eax
push eax
mov eax, dword [edx + ecx*4]
jmp 0x1001e5da
movzx ecx, word [ebx + 4]
movzx edx, word [ebx + 8]
add ecx, 0x2000
and ecx, 0x10000
or eax, ecx
movzx ecx, word [ebx + 6]
add ecx, 0x2000
add edx, 0x2000
shr ecx, 1
and edx, 0x10000
or ecx, edx
shr eax, 0xf
shr ecx, 0xf
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x1001e5b2
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x40]
push esi
push ecx
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebx + 0x10]
push ecx
mov ecx, dword [ebp - 4]
add edx, 0xfffffff8
push ebx
push edx
mov edx, dword [ecx + eax*4]
call edx
mov ecx, dword [ebp + 0x10]
add esp, 0x18
test ecx, ecx
je 0x1001e5df
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x40]
push esi
add eax, 0x10
push eax
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebx + 0x14]
push edx
mov edx, dword [ebp + 0x10]
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffc
push eax
mov eax, dword [ecx + edx*4]
call eax
add esp, 0x18
movzx eax, word [ebx + 0x12]
movzx edx, word [ebx + 0x18]
lea ecx, [ebx + 0x14]
mov dword [ebp + 0x30], ecx
movzx ecx, word [ecx]
add ecx, 0x2000
and ecx, 0x10000
add eax, 0x2000
shr eax, 1
or eax, ecx
movzx ecx, word [ebx + 0x16]
add ecx, 0x2000
add edx, 0x2000
shr ecx, 1
and edx, 0x10000
or ecx, edx
shr eax, 0xf
shr ecx, 0xf
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x1001e64f
mov ecx, dword [ebp + 0x1c]
push esi
lea edx, [ecx + esi*8]
mov ecx, dword [ebp + 0x40]
push edx
push ecx
lea edx, [ebx + 0x20]
push edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4]
lea ecx, [ebx + 0x10]
push ecx
push ebx
call eax
mov ecx, dword [ebp + 0x10]
add esp, 0x18
test ecx, ecx
je 0x1001e67a
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x40]
push esi
lea edx, [ecx + esi*8 + 0x10]
push edx
mov edx, dword [ebp + 0x30]
push eax
lea ecx, [ebx + 0x24]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
call edx
add esp, 0x18
test byte [ebp + 0x14], 3
jne 0x1001e7e8
movzx eax, word [ebx + 0x22]
movzx edx, word [ebx + 0x28]
lea ecx, [ebx + 0x24]
mov dword [ebp + 0x30], ecx
movzx ecx, word [ecx]
add ecx, 0x2000
and ecx, 0x10000
add eax, 0x2000
shr eax, 1
or eax, ecx
movzx ecx, word [ebx + 0x26]
add ecx, 0x2000
add edx, 0x2000
shr ecx, 1
and edx, 0x10000
or ecx, edx
shr eax, 0xf
shr ecx, 0xf
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x1001e6fe
mov edx, dword [ebp + 0x1c]
push esi
lea ecx, [esi*8]
lea ecx, [edx + ecx*2]
mov edx, dword [ebp + 0x40]
push ecx
push edx
lea ecx, [ebx + 0x30]
push ecx
lea edx, [ebx + 0x20]
push edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4]
lea ecx, [ebx + 0x10]
push ecx
call eax
mov ecx, dword [ebp + 0x10]
add esp, 0x18
test ecx, ecx
je 0x1001e730
mov ecx, dword [ebp + 0x1c]
push esi
lea eax, [esi*8]
lea edx, [ecx + eax*2 + 0x10]
mov eax, dword [ebp + 0x40]
push edx
mov edx, dword [ebp + 0x30]
push eax
lea ecx, [ebx + 0x34]
push ecx
mov ecx, dword [ebp - 4]
push edx
mov edx, dword [ebp + 0x10]
lea eax, [ebx + 0x14]
push eax
mov eax, dword [ecx + edx*4]
call eax
add esp, 0x18
test dword [ebp + 0x14], 0x100
je 0x1001e7e8
movzx eax, word [ebx + 0x32]
movzx edx, word [ebx + 0x38]
lea ecx, [ebx + 0x34]
mov dword [ebp + 0x28], ecx
movzx ecx, word [ecx]
add ecx, 0x2000
and ecx, 0x10000
add eax, 0x2000
shr eax, 1
or eax, ecx
movzx ecx, word [ebx + 0x36]
add ecx, 0x2000
add edx, 0x2000
shr ecx, 1
and edx, 0x10000
or ecx, edx
shr eax, 0xf
shr ecx, 0xf
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x1001e7b6
mov edx, dword [ebp + 0x1c]
lea ecx, [esi*8]
lea edx, [edx + ecx*2]
push esi
add edx, ecx
mov ecx, dword [ebp + 0x40]
push edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4]
push ecx
lea ecx, [ebx + 0x30]
push ecx
push ecx
add ebx, 0x20
push ebx
call eax
mov ecx, dword [ebp + 0x10]
add esp, 0x18
test ecx, ecx
je 0x1001e7e8
mov ecx, dword [ebp + 0x1c]
lea eax, [esi*8]
lea edx, [ecx + eax*2]
mov ecx, dword [ebp + 0x40]
lea eax, [eax + edx + 0x10]
mov edx, dword [ebp + 0x30]
push esi
push eax
mov eax, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
push eax
mov eax, dword [ebp - 4]
push edx
mov edx, dword [eax + ecx*4]
call edx
add esp, 0x18
mov eax, dword [ebp + 0x14]
test al, al
jns 0x1001ec2c
movzx eax, word [edi + 2]
movzx ecx, word [edi + 4]
movzx edx, word [edi + 8]
movzx ebx, word [edi + 0xa4]
add ecx, 0x2000
and ecx, 0x10000
add eax, 0x2000
add edx, 0x2000
shr eax, 1
or eax, ecx
movzx ecx, word [edi + 6]
and edx, 0x10000
add ecx, 0x2000
shr ecx, 1
or ecx, edx
movzx edx, word [edi + 0xa2]
add edx, 0x2000
shr edx, 1
add ebx, 0x2000
and ebx, 0x10000
or edx, ebx
movzx ebx, word [edi + 0xc4]
shr edx, 0xf
mov dword [ebp + 0x28], edx
movzx edx, word [edi + 0xc2]
add edx, 0x2000
add ebx, 0x2000
shr edx, 1
and ebx, 0x10000
or edx, ebx
mov ebx, dword [ebp + 0x18]
shr eax, 0xf
shr ecx, 0xf
shr edx, 0xf
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x30], edx
test eax, eax
je 0x1001e8af
mov ecx, dword [ebp + 0x40]
push esi
push ebx
push ecx
mov ecx, dword [ebp - 4]
lea edx, [edi + 0x10]
push edx
mov edx, dword [ecx + eax*4]
push edi
push edi
call edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x30]
add esp, 0x18
test ecx, ecx
je 0x1001e8d6
mov ecx, dword [ebp + 0x40]
push esi
lea eax, [ebx + 0x10]
push eax
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [edi + 0x14]
push edx
lea eax, [edi + 4]
push eax
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
call edx
mov edx, dword [ebp + 0x30]
add esp, 0x18
cmp dword [ebp + 0x28], 0
je 0x1001e905
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x40]
push eax
push ecx
lea eax, [edi + 0xa0]
push edx
mov edx, dword [ebp - 4]
lea ecx, [eax + 8]
push ecx
push eax
push eax
mov eax, dword [ebp + 0x28]
mov ecx, dword [edx + eax*4]
call ecx
mov edx, dword [ebp + 0x30]
add esp, 0x18
test edx, edx
je 0x1001e92f
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x40]
push edx
push eax
lea eax, [edi + 0xc0]
push ecx
mov ecx, dword [ebp + 0x30]
lea edx, [eax + 8]
push edx
push eax
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
call edx
add esp, 0x18
movzx eax, word [edi + 2]
mov dword [ebp - 0x24], eax
test eax, 0x8000
jne 0x1001f3f0
mov ecx, dword [ebp + 0x14]
test ecx, 0x4000
jne 0x10020881
movzx eax, word [edi]
test eax, 0x8000
je 0x10020675
test cl, 4
jne 0x1001eada
test ecx, 0x40200
jne 0x1001ea6a
mov ecx, dword [ebp - 0x24]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001e9a7
lea edx, [eax*2 + 0x10035940]
push ebx
push edx
mov ecx, esi
call fcn.1000d930
add esp, 8
movzx ecx, word [edi + 0xa0]
movzx eax, word [edi + 0xa2]
and eax, 0x6000
shr ecx, 2
and ecx, 0x1800
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001e9ea
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x34]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
call fcn.1000d930
add esp, 8
movzx edx, word [edi + 0xc0]
movzx ecx, word [edi + 0xc2]
shr edx, 2
and ecx, 0x6000
and edx, 0x1800
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001ea2e
mov ecx, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x34]
lea edx, [eax*2 + 0x10035940]
push edx
call fcn.1000d930
add esp, 8
movzx eax, word [edi + 0x10]
movzx ecx, word [edi + 0x12]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001ea6a
lea edx, [ebx + esi*8]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x100000
jne 0x1001eada
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax - 0x20]
sub ecx, dword [eax - 0x18]
inc ecx
cmp ecx, 2
ja 0x1001ea8e
mov edx, dword [eax - 0x1c]
sub edx, dword [eax - 0x14]
inc edx
cmp edx, 2
jbe 0x1001eadd
lea eax, [ebx + 0x10]
push eax
push 0x100359e0
mov ecx, esi
call fcn.1000d930
lea ecx, [ebx + esi*8 + 0x10]
push ecx
push 0x100359e0
mov ecx, esi
call fcn.1000d930
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x34]
add edx, 8
push edx
push 0x100359e0
call fcn.1000d930
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
add eax, 8
push eax
push 0x100359e0
call fcn.1000d930
add esp, 0x20
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x14]
test cl, 3
jne 0x10020881
test ecx, 0x40200
jne 0x100207f0
movzx ecx, word [edi + 0x20]
movzx edx, word [edi + 0x22]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035db0]
test ecx, ecx
je 0x1001eb3c
lea eax, [esi*8]
lea eax, [ebx + eax*2]
lea ecx, [ecx*2 + 0x10035940]
push eax
push ecx
mov ecx, esi
call fcn.1000d930
mov eax, dword [ebp + 0x38]
add esp, 8
test dword [ebp + 0x14], 0x100
je 0x100207f0
movzx edx, word [edi + 0x30]
movzx ecx, word [edi + 0x32]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
shr edx, 0xb
movzx ecx, byte [edx + 0x10035db0]
test ecx, ecx
je 0x1001eb92
lea eax, [esi*8]
lea edx, [ebx + eax*2]
add edx, eax
lea eax, [ecx*2 + 0x10035940]
push edx
push eax
mov ecx, esi
call fcn.1000d930
mov eax, dword [ebp + 0x38]
add esp, 8
movzx ecx, word [edi + 0xa8]
movzx edx, word [edi + 0xaa]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx edx, byte [ecx + 0x10035db0]
test edx, edx
je 0x1001ebdc
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x20]
lea eax, [eax + ecx*8]
push eax
lea edx, [edx*2 + 0x10035940]
push edx
call fcn.1000d930
mov eax, dword [ebp + 0x38]
add esp, 8
movzx ecx, word [edi + 0xc8]
movzx edx, word [edi + 0xca]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx edx, byte [ecx + 0x10035db0]
test edx, edx
je 0x100207f0
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x24]
lea eax, [eax + ecx*8]
push eax
lea edx, [edx*2 + 0x10035940]
push edx
call fcn.1000d930
add esp, 8
jmp 0x100207ed
and eax, 4
mov dword [ebp - 0x20], eax
jne 0x1001f282
mov edx, dword [ebp - 8]
movzx ecx, word [edx - 6]
test ecx, 0x8000
je 0x1001f07c
movzx eax, word [edx - 4]
mov ebx, dword [ebp + 0x2c]
movzx ecx, cx
add ecx, 0x2000
shr ecx, 1
add eax, 0x2000
and eax, 0x10000
or eax, ecx
movzx ecx, word [edx - 2]
movzx edx, word [edx]
add edx, 0x2000
and edx, 0x10000
add ecx, 0x2000
shr ecx, 1
or ecx, edx
movzx edx, word [ebx]
movzx ebx, word [ebx - 2]
add edx, 0x2000
add ebx, 0x2000
and edx, 0x10000
shr ebx, 1
or edx, ebx
mov ebx, dword [ebp - 0xc]
shr edx, 0xf
mov dword [ebp + 0x28], edx
movzx edx, word [ebx - 2]
movzx ebx, word [ebx]
add edx, 0x2000
add ebx, 0x2000
shr edx, 1
and ebx, 0x10000
or edx, ebx
mov ebx, dword [ebp + 0x18]
shr eax, 0xf
shr ecx, 0xf
shr edx, 0xf
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x30], edx
test eax, eax
je 0x1001ed10
push esi
lea ecx, [esi*8]
mov edx, ebx
sub edx, ecx
mov ecx, dword [ebp + 0x40]
push edx
mov edx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
add edx, 0xfffffff8
push edi
push edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4]
add ecx, 0xfffffff8
push ecx
call eax
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x10]
add esp, 0x18
test ecx, ecx
je 0x1001ed4b
mov edx, dword [ebp + 0x40]
lea eax, [esi*8]
push esi
mov ecx, ebx
sub ecx, eax
add ecx, 0x10
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp - 4]
lea eax, [edi + 4]
push eax
mov eax, dword [ebp - 8]
add eax, 0xfffffffc
push eax
mov eax, dword [ebp + 0x10]
add ecx, 0xfffffffc
push ecx
mov ecx, dword [edx + eax*4]
call ecx
mov edx, dword [ebp + 0x30]
add esp, 0x18
cmp dword [ebp + 0x28], 0
je 0x1001ed8c
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x40]
push eax
lea edx, [eax*8]
mov eax, dword [ebp + 0x20]
sub eax, edx
mov edx, dword [ebp + 0x2c]
push eax
push ecx
mov ecx, dword [ebp - 4]
lea eax, [edi + 0xa0]
push eax
mov eax, dword [ebp - 0x18]
add edx, 0xfffffffc
push edx
mov edx, dword [ebp + 0x28]
add eax, 0xfffffffc
push eax
mov eax, dword [ecx + edx*4]
call eax
mov edx, dword [ebp + 0x30]
add esp, 0x18
test edx, edx
je 0x1001edc8
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x24]
push eax
lea ecx, [eax*8]
mov eax, dword [ebp + 0x40]
sub edx, ecx
mov ecx, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x1c]
push eax
lea eax, [edi + 0xc0]
push eax
mov eax, dword [ebp - 4]
add ecx, 0xfffffffc
push ecx
mov ecx, dword [ebp + 0x30]
add edx, 0xfffffffc
push edx
mov edx, dword [eax + ecx*4]
call edx
add esp, 0x18
mov eax, dword [ebp + 0x14]
test eax, 0x4000
jne 0x1001f285
test eax, 0x40200
jne 0x1001eec9
mov eax, dword [ebp - 8]
movzx ecx, word [eax - 8]
movzx edx, word [eax - 6]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001ee29
lea ecx, [esi*8]
mov edx, ebx
sub edx, ecx
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
mov eax, dword [ebp + 0x2c]
movzx ecx, word [eax - 4]
movzx edx, word [eax - 2]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
mov dword [ebp + 0x18], eax
test eax, eax
je 0x1001ee79
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x20]
lea eax, [ecx*8]
sub edx, eax
mov eax, dword [ebp + 0x18]
push edx
lea edx, [eax*2 + 0x10035940]
push edx
call fcn.1000d930
add esp, 8
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax - 4]
movzx edx, word [eax - 2]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
mov dword [ebp + 0x18], eax
test eax, eax
je 0x1001eec9
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x24]
lea eax, [ecx*8]
sub edx, eax
mov eax, dword [ebp + 0x18]
push edx
lea edx, [eax*2 + 0x10035940]
push edx
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x80000
jne 0x1001ef20
mov eax, dword [ebp - 8]
movzx ecx, word [eax - 6]
movzx edx, word [eax - 4]
add eax, 0xfffffffc
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001ef20
lea ecx, [esi*8]
mov edx, ebx
sub edx, ecx
add edx, 8
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x100000
jne 0x1001f01c
mov eax, dword [ebp - 8]
movzx ecx, word [eax - 4]
movzx edx, word [eax - 2]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001ef78
lea ecx, [esi*8]
mov edx, ebx
sub edx, ecx
add edx, 0x10
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
mov eax, dword [ebp + 0x2c]
movzx ecx, word [eax - 2]
movzx edx, word [eax]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
mov dword [ebp + 0x18], eax
test eax, eax
je 0x1001efca
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x20]
lea eax, [ecx*8]
sub edx, eax
mov eax, dword [ebp + 0x18]
add edx, 8
push edx
lea edx, [eax*2 + 0x10035940]
push edx
call fcn.1000d930
add esp, 8
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax - 2]
movzx edx, word [eax]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
mov dword [ebp + 0x18], eax
test eax, eax
je 0x1001f01c
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x24]
lea eax, [ecx*8]
sub edx, eax
mov eax, dword [ebp + 0x18]
add edx, 8
push edx
lea edx, [eax*2 + 0x10035940]
push edx
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x200000
jne 0x1001f285
mov eax, dword [ebp - 8]
movzx ecx, word [eax - 2]
movzx edx, word [eax]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001f285
lea ecx, [esi*8]
mov edx, ebx
sub edx, ecx
add edx, 0x18
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
jmp 0x1001f285
mov eax, dword [ebp + 0x14]
test eax, 0x4000
jne 0x1001f282
test eax, 0x40200
jne 0x1001f1ff
movzx eax, word [edx - 8]
test eax, 0x8000
je 0x1001f189
mov ebx, dword [ebp + 0x18]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f0e3
lea ecx, [esi*8]
mov edx, ebx
sub edx, ecx
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
mov eax, dword [ebp + 0x2c]
movzx ecx, word [eax - 4]
movzx edx, word [eax - 2]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
mov dword [ebp + 0x18], eax
test eax, eax
je 0x1001f133
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x20]
lea eax, [ecx*8]
sub edx, eax
mov eax, dword [ebp + 0x18]
push edx
lea edx, [eax*2 + 0x10035940]
push edx
call fcn.1000d930
add esp, 8
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax - 4]
movzx edx, word [eax - 2]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
mov dword [ebp + 0x18], eax
test eax, eax
je 0x1001f202
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x24]
lea eax, [ecx*8]
sub edx, eax
mov eax, dword [ebp + 0x18]
push edx
lea edx, [eax*2 + 0x10035940]
push edx
call fcn.1000d930
add esp, 8
jmp 0x1001f202
mov eax, dword [ebp + 0x3c]
mov ecx, dword [eax - 0x28]
sub ecx, dword [eax - 0x10]
inc ecx
cmp ecx, 2
ja 0x1001f1a4
mov edx, dword [eax - 0x24]
sub edx, dword [eax - 0xc]
inc edx
cmp edx, 2
jbe 0x1001f1fa
mov ebx, dword [ebp + 0x18]
lea eax, [esi*8]
mov ecx, ebx
sub ecx, eax
push ecx
push 0x100359e0
mov ecx, esi
call fcn.1000d930
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x20]
lea eax, [ecx*8]
sub edx, eax
push edx
push 0x100359e0
call fcn.1000d930
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x24]
add eax, eax
add eax, eax
add eax, eax
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x34]
push 0x100359e0
call fcn.1000d930
add esp, 0x18
jmp 0x1001f202
mov ebx, dword [ebp + 0x18]
jmp 0x1001f205
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x3c]
test dword [ebp + 0x14], 0x100000
jne 0x1001f285
mov edx, dword [eax - 0x10]
sub edx, dword [eax - 8]
inc edx
cmp edx, 2
ja 0x1001f226
mov ecx, dword [eax - 0xc]
sub ecx, dword [eax - 4]
inc ecx
cmp ecx, 2
jbe 0x1001f285
lea eax, [esi*8]
mov edx, ebx
sub edx, eax
add edx, 0x10
push edx
push 0x100359e0
mov ecx, esi
call fcn.1000d930
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x20]
lea eax, [ecx*8]
sub edx, eax
add edx, 8
push edx
push 0x100359e0
call fcn.1000d930
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x24]
add eax, eax
add eax, eax
add eax, eax
sub ecx, eax
add ecx, 8
push ecx
mov ecx, dword [ebp + 0x34]
push 0x100359e0
call fcn.1000d930
add esp, 0x18
jmp 0x1001f285
mov ebx, dword [ebp + 0x18]
movzx eax, word [edi + 2]
mov dword [ebp - 0x24], eax
test eax, 0x8000
je 0x1001e941
cmp dword [ebp - 0x20], 0
jne 0x1001f7af
movzx edx, word [edi + 4]
movzx ecx, word [edi + 6]
add edx, 0x2000
and edx, 0x10000
movzx eax, ax
add ecx, 0x2000
add eax, 0x2000
shr ecx, 1
shr eax, 1
or eax, edx
movzx edx, word [edi + 8]
add edx, 0x2000
and edx, 0x10000
or ecx, edx
movzx edx, word [edi + 0xa4]
shr ecx, 0xf
mov dword [ebp + 0x10], ecx
movzx ecx, word [edi + 0xa2]
add ecx, 0x2000
shr ecx, 1
add edx, 0x2000
and edx, 0x10000
or ecx, edx
movzx edx, word [edi + 0xc4]
shr ecx, 0xf
mov dword [ebp + 0x28], ecx
movzx ecx, word [edi + 0xc2]
add ecx, 0x2000
add edx, 0x2000
shr ecx, 1
and edx, 0x10000
or ecx, edx
shr eax, 0xf
shr ecx, 0xf
mov dword [ebp + 0x30], ecx
test eax, eax
je 0x1001f35c
mov ecx, dword [ebp + 0x40]
push esi
push ebx
push ecx
mov ecx, dword [ebp - 8]
lea edx, [edi + 0x10]
push edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4]
add ecx, 0xfffffff8
push edi
push ecx
call eax
mov ecx, dword [ebp + 0x30]
add esp, 0x18
cmp dword [ebp + 0x10], 0
je 0x1001f38b
mov edx, dword [ebp + 0x40]
push esi
lea ecx, [ebx + 0x10]
push ecx
mov ecx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
lea eax, [edi + 0x14]
push eax
lea eax, [edi + 4]
push eax
mov eax, dword [ebp + 0x10]
add ecx, 0xfffffffc
push ecx
mov ecx, dword [edx + eax*4]
call ecx
mov ecx, dword [ebp + 0x30]
add esp, 0x18
cmp dword [ebp + 0x28], 0
je 0x1001f3c0
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x40]
push edx
push eax
push ecx
mov ecx, dword [ebp - 4]
lea eax, [edi + 0xa0]
lea edx, [eax + 8]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffffc
push eax
mov eax, dword [ecx + edx*4]
call eax
mov ecx, dword [ebp + 0x30]
add esp, 0x18
test ecx, ecx
je 0x1001f3f0
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x40]
push ecx
push edx
mov edx, dword [ebp - 0xc]
push eax
lea eax, [edi + 0xc0]
lea ecx, [eax + 8]
push ecx
mov ecx, dword [ebp + 0x30]
push eax
mov eax, dword [ebp - 4]
add edx, 0xfffffffc
push edx
mov edx, dword [eax + ecx*4]
call edx
add esp, 0x18
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x14]
movzx edx, word [edi + 0x18]
add ecx, 0x2000
and ecx, 0x10000
add eax, 0x2000
shr eax, 1
or eax, ecx
movzx ecx, word [edi + 0x16]
add ecx, 0x2000
add edx, 0x2000
shr ecx, 1
and edx, 0x10000
or ecx, edx
shr eax, 0xf
shr ecx, 0xf
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x1001f458
mov edx, dword [ebp + 0x40]
push esi
lea ecx, [ebx + esi*8]
push ecx
push edx
lea ecx, [edi + 0x20]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [edi + 0x10]
push edx
mov edx, dword [ecx + eax*4]
push edi
call edx
mov ecx, dword [ebp + 0x10]
add esp, 0x18
test ecx, ecx
je 0x1001f480
mov ecx, dword [ebp + 0x40]
push esi
lea eax, [ebx + esi*8 + 0x10]
push eax
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [edi + 0x24]
push edx
lea eax, [edi + 0x14]
push eax
lea eax, [edi + 4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
call edx
add esp, 0x18
test dword [ebp + 0x14], 0x4000
jne 0x1001f7af
test dword [ebp + 0x14], 0x40200
jne 0x1001f595
movzx eax, word [edi]
movzx ecx, word [edi + 2]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f4d2
lea edx, [eax*2 + 0x10035940]
push ebx
push edx
mov ecx, esi
call fcn.1000d930
add esp, 8
movzx eax, word [edi + 0xa0]
movzx ecx, word [edi + 0xa2]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f515
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x34]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
call fcn.1000d930
add esp, 8
movzx ecx, word [edi + 0xc0]
movzx edx, word [edi + 0xc2]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001f559
mov ecx, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x34]
lea edx, [eax*2 + 0x10035940]
push edx
call fcn.1000d930
add esp, 8
movzx eax, word [edi + 0x10]
movzx ecx, word [edi + 0x12]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f595
lea edx, [ebx + esi*8]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x80000
jne 0x1001f618
movzx ecx, word [edi + 2]
movzx edx, word [edi + 4]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001f5db
lea ecx, [ebx + 8]
push ecx
lea edx, [eax*2 + 0x10035940]
push edx
mov ecx, esi
call fcn.1000d930
add esp, 8
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x14]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f618
lea edx, [ebx + esi*8 + 8]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x100000
jne 0x1001f72c
movzx ecx, word [edi + 4]
movzx edx, word [edi + 6]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001f662
lea ecx, [ebx + 0x10]
push ecx
lea edx, [eax*2 + 0x10035940]
push edx
mov ecx, esi
call fcn.1000d930
add esp, 8
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 0x16]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f69f
lea edx, [ebx + esi*8 + 0x10]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
movzx ecx, word [edi + 0xa2]
movzx edx, word [edi + 0xa4]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001f6e6
mov ecx, dword [ebp + 0x20]
add ecx, 8
push ecx
mov ecx, dword [ebp + 0x34]
lea edx, [eax*2 + 0x10035940]
push edx
call fcn.1000d930
add esp, 8
movzx eax, word [edi + 0xc2]
movzx ecx, word [edi + 0xc4]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f72c
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
add edx, 8
push edx
lea eax, [eax*2 + 0x10035940]
push eax
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x200000
jne 0x1001f7af
movzx ecx, word [edi + 6]
movzx edx, word [edi + 8]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001f772
lea ecx, [ebx + 0x18]
push ecx
lea edx, [eax*2 + 0x10035940]
push edx
mov ecx, esi
call fcn.1000d930
add esp, 8
movzx eax, word [edi + 0x16]
movzx ecx, word [edi + 0x18]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f7af
lea edx, [ebx + esi*8 + 0x18]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
mov eax, dword [ebp + 0x14]
and eax, 3
mov dword [ebp - 0x2c], eax
jne 0x1001fd86
movzx eax, word [edi + 0x22]
movzx edx, word [edi + 0x28]
lea ecx, [edi + 0x24]
mov dword [ebp + 0x18], ecx
movzx ecx, word [ecx]
add ecx, 0x2000
and ecx, 0x10000
add eax, 0x2000
shr eax, 1
or eax, ecx
movzx ecx, word [edi + 0x26]
add ecx, 0x2000
add edx, 0x2000
shr ecx, 1
and edx, 0x10000
or ecx, edx
shr eax, 0xf
shr ecx, 0xf
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x1001f835
mov edx, dword [ebp + 0x40]
push esi
lea ecx, [esi*8]
lea ecx, [ebx + ecx*2]
push ecx
push edx
lea ecx, [edi + 0x30]
push ecx
lea edx, [edi + 0x20]
push edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4]
lea ecx, [edi + 0x10]
push ecx
call eax
mov ecx, dword [ebp + 0x10]
add esp, 0x18
test ecx, ecx
je 0x1001f864
mov edx, dword [ebp + 0x40]
push esi
lea eax, [esi*8]
lea ecx, [ebx + eax*2 + 0x10]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [edi + 0x14]
push edx
mov edx, dword [eax + ecx*4]
call edx
add esp, 0x18
mov ecx, dword [ebp + 0x14]
mov eax, ecx
and eax, 0x4000
mov dword [ebp - 0x24], eax
jne 0x1001f9b6
test ecx, 0x40200
jne 0x1001f8c5
movzx eax, word [edi + 0x20]
movzx edx, word [edi + 0x22]
shr eax, 2
and eax, 0x1800
and edx, 0x6000
or eax, edx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f8c5
lea ecx, [esi*8]
lea ecx, [ebx + ecx*2]
push ecx
lea edx, [eax*2 + 0x10035940]
push edx
mov ecx, esi
call fcn.1000d930
mov ecx, dword [ebp + 0x14]
add esp, 8
test ecx, 0x80000
jne 0x1001f916
movzx eax, word [edi + 0x22]
mov edx, dword [ebp + 0x18]
movzx edx, word [edx]
shr eax, 2
and eax, 0x1800
and edx, 0x6000
or eax, edx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f916
lea ecx, [esi*8]
lea ecx, [ebx + ecx*2 + 8]
push ecx
lea edx, [eax*2 + 0x10035940]
push edx
mov ecx, esi
call fcn.1000d930
mov ecx, dword [ebp + 0x14]
add esp, 8
test ecx, 0x100000
jne 0x1001f967
mov eax, dword [ebp + 0x18]
movzx edx, word [eax]
movzx eax, word [edi + 0x26]
shr edx, 2
and edx, 0x1800
and eax, 0x6000
or edx, eax
shr edx, 0xb
movzx eax, byte [edx + 0x10035db0]
test eax, eax
je 0x1001f967
lea ecx, [esi*8]
lea ecx, [ebx + ecx*2 + 0x10]
push ecx
lea edx, [eax*2 + 0x10035940]
push edx
mov ecx, esi
call fcn.1000d930
mov ecx, dword [ebp + 0x14]
add esp, 8
test ecx, 0x200000
jne 0x1001f9b6
movzx eax, word [edi + 0x26]
movzx edx, word [edi + 0x28]
shr eax, 2
and eax, 0x1800
and edx, 0x6000
or eax, edx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001f9b6
lea ecx, [esi*8]
lea ecx, [ebx + ecx*2 + 0x18]
push ecx
lea edx, [eax*2 + 0x10035940]
push edx
mov ecx, esi
call fcn.1000d930
mov ecx, dword [ebp + 0x14]
add esp, 8
test ecx, 0x100
je 0x1001fd86
movzx eax, word [edi + 0x34]
movzx ecx, word [edi + 0x32]
movzx edx, word [edi + 0x38]
add ecx, 0x2000
shr ecx, 1
add eax, 0x2000
and eax, 0x10000
or eax, ecx
movzx ecx, word [edi + 0x36]
add ecx, 0x2000
shr ecx, 1
add edx, 0x2000
and edx, 0x10000
or ecx, edx
movzx edx, word [edi + 0xac]
shr ecx, 0xf
mov dword [ebp + 0x10], ecx
movzx ecx, word [edi + 0xaa]
add ecx, 0x2000
shr ecx, 1
add edx, 0x2000
and edx, 0x10000
or ecx, edx
movzx edx, word [edi + 0xcc]
shr ecx, 0xf
mov dword [ebp + 0x28], ecx
movzx ecx, word [edi + 0xca]
add ecx, 0x2000
add edx, 0x2000
shr ecx, 1
and edx, 0x10000
or ecx, edx
shr eax, 0xf
shr ecx, 0xf
mov dword [ebp + 0x30], ecx
test eax, eax
je 0x1001fa86
lea ecx, [esi*8]
lea edx, [ebx + ecx*2]
add edx, ecx
mov ecx, dword [ebp + 0x40]
push esi
push edx
push ecx
lea ecx, [edi + 0x30]
push ecx
push ecx
mov ecx, dword [ebp - 4]
lea edx, [edi + 0x20]
push edx
mov edx, dword [ecx + eax*4]
call edx
mov ecx, dword [ebp + 0x30]
add esp, 0x18
cmp dword [ebp + 0x10], 0
je 0x1001faba
lea eax, [esi*8]
lea ecx, [ebx + eax*2]
lea edx, [eax + ecx + 0x10]
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x18]
push esi
push edx
mov edx, dword [ebp - 4]
push eax
lea eax, [edi + 0x34]
push eax
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [edx + eax*4]
call ecx
mov ecx, dword [ebp + 0x30]
add esp, 0x18
cmp dword [ebp + 0x28], 0
je 0x1001faec
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x20]
push ecx
lea ecx, [edx + ecx*8]
mov edx, dword [ebp + 0x40]
push ecx
lea eax, [edi + 0xa0]
push edx
lea ecx, [eax + 8]
push ecx
push ecx
mov ecx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
call edx
mov ecx, dword [ebp + 0x30]
add esp, 0x18
test ecx, ecx
je 0x1001fb19
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x24]
push ecx
lea ecx, [edx + ecx*8]
mov edx, dword [ebp + 0x40]
push ecx
lea eax, [edi + 0xc0]
push edx
lea ecx, [eax + 8]
push ecx
push ecx
mov ecx, dword [ebp + 0x30]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
call edx
add esp, 0x18
cmp dword [ebp - 0x24], 0
jne 0x1001fd86
test dword [ebp + 0x14], 0x40200
jne 0x1001fc03
movzx eax, word [edi + 0x30]
movzx ecx, word [edi + 0x32]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001fb75
lea ecx, [esi*8]
lea edx, [ebx + ecx*2]
add edx, ecx
push edx
lea eax, [eax*2 + 0x10035940]
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
movzx ecx, word [edi + 0xa8]
movzx edx, word [edi + 0xaa]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001fbbc
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x20]
lea edx, [edx + ecx*8]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
call fcn.1000d930
add esp, 8
movzx ecx, word [edi + 0xc8]
movzx edx, word [edi + 0xca]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001fc03
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x24]
lea edx, [edx + ecx*8]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x80000
jne 0x1001fc54
movzx ecx, word [edi + 0x32]
movzx edx, word [edi + 0x34]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001fc54
lea ecx, [esi*8]
lea edx, [ebx + ecx*2]
lea ecx, [ecx + edx + 8]
push ecx
lea edx, [eax*2 + 0x10035940]
push edx
mov ecx, esi
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x100000
jne 0x1001fd37
movzx eax, word [edi + 0x34]
movzx ecx, word [edi + 0x36]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001fca8
lea ecx, [esi*8]
lea edx, [ebx + ecx*2]
lea ecx, [ecx + edx + 0x10]
push ecx
lea edx, [eax*2 + 0x10035940]
push edx
mov ecx, esi
call fcn.1000d930
add esp, 8
movzx eax, word [edi + 0xaa]
movzx ecx, word [edi + 0xac]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035db0]
test eax, eax
je 0x1001fcef
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x20]
lea edx, [edx + ecx*8 + 8]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
call fcn.1000d930
add esp, 8
movzx ecx, word [edi + 0xca]
movzx edx, word [edi + 0xcc]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035db0]
test eax, eax
je 0x1001fd37
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x24]
lea edx, [edx + ecx*8 + 8]
push edx
lea eax, [eax*2 + 0x10035940]
push eax
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x200000
jne 0x1001fd86
movzx ecx, word [edi + 0x36]
movzx edx, word [edi + 0x38]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035db0]
test ecx, ecx
je 0x1001fd86
lea eax, [esi*8 + 8]
lea edx, [ebx + eax*2]
add edx, eax
lea eax, [ecx*2 + 0x10035940]
push edx
push eax
mov ecx, esi
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x8000
jne 0x10020e50
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x20]
lea eax, [esi + esi]
sub ebx, eax
mov eax, dword [ebp + 0x34]
add eax, eax
sub dword [ebp + 0x24], eax
push edx
mov edx, dword [ebp + 0x24]
sub ecx, eax
xor eax, eax
push edx
push ecx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x10], eax
lea eax, [edi + 0xe0]
push ebx
mov ecx, esi
mov dword [ebp + 0x18], ebx
call fcn.1001dbc0
add esp, 0x10
test byte [ebp + 0x14], 0x84
jne 0x10020278
mov ecx, dword [ebp - 8]
movzx eax, word [ecx - 6]
mov dword [ebp - 0x20], eax
test eax, 0x8000
je 0x1002007c
test dword [ebp + 0x14], 0x8000000
jne 0x1001fee2
movzx ecx, word [ecx - 4]
mov edx, dword [ebp + 8]
movzx edx, word [edx - 4]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp + 8]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
mov dword [ebp + 0x10], edx
movzx edx, word [ecx - 6]
shr edx, 2
and edx, 0x1800
mov ecx, eax
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp + 0x10]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
or ecx, edx
je 0x1001fe84
mov eax, ecx
shr eax, 1
and eax, 0x7ffffff8
lea edx, [eax*2 + 0x10035940]
and ecx, 0xf
lea eax, [esi*8]
shl ecx, 4
sub ebx, eax
add ecx, 0x10035940
push ebx
call fcn.1000d740
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx - 2]
mov ecx, dword [ebp - 8]
movzx ecx, word [ecx - 2]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp + 8]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
mov dword [ebp + 0x10], edx
movzx edx, word [ecx]
mov ecx, dword [ebp - 8]
movzx ecx, word [ecx]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp + 0x10]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
or ecx, edx
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 8]
test dword [ebp + 0x14], 0x4000000
jne 0x1001ffa8
mov edx, dword [ebp - 0x18]
movzx ecx, word [edx - 2]
mov edx, dword [ebp + 0x2c]
movzx edx, word [edx - 2]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
mov edx, dword [ebp - 0x18]
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dc0]
mov dword [ebp + 0x30], ecx
movzx ecx, word [edx]
mov edx, dword [ebp + 0x2c]
movzx edx, word [edx]
shr ecx, 2
and edx, 0x6000
and ecx, 0x1800
or ecx, edx
mov edx, dword [ebp + 0x30]
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dd0]
or edx, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x28], edx
movzx edx, word [ecx - 2]
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx - 2]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp - 0x1c]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
mov dword [ebp + 0x30], edx
movzx edx, word [ecx]
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp + 0x30]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
or ecx, edx
mov dword [ebp + 0x30], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
and edx, 0x10000000
mov dword [ebp - 0x24], edx
jne 0x1002019d
movzx edx, word [ecx - 4]
movzx ecx, word [edi + 4]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
shr edx, 0xb
movzx ecx, byte [edx + 0x10035dd0]
movzx edx, word [edi + 2]
shr eax, 2
and eax, 0x1800
and edx, 0x6000
or eax, edx
shr eax, 0xb
movzx eax, byte [eax + 0x10035dc0]
or ecx, eax
je 0x10020025
mov edx, ecx
shr edx, 1
and ecx, 0xf
and edx, 0x7ffffff8
shl ecx, 4
lea edx, [edx*2 + 0x10035940]
add ecx, 0x10035940
push ebx
call fcn.1000d740
add esp, 4
mov eax, dword [ebp - 8]
movzx ecx, word [eax - 2]
movzx edx, word [edi + 6]
movzx eax, word [eax]
shr ecx, 2
and edx, 0x6000
and ecx, 0x1800
or ecx, edx
movzx edx, word [edi + 8]
and edx, 0x6000
shr eax, 2
and eax, 0x1800
or edx, eax
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dc0]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
or ecx, edx
mov edx, dword [ebp - 0x24]
shl ecx, 8
or dword [ebp + 0x10], ecx
jmp 0x1002019d
mov edx, dword [ebp + 0x14]
and edx, 0x10000000
mov dword [ebp - 0x24], edx
jne 0x1002014b
movzx ecx, word [ecx - 4]
movzx edx, word [edi + 4]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
movzx edx, word [edi + 2]
shr eax, 2
and eax, 0x1800
and edx, 0x6000
or eax, edx
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dd0]
shr eax, 0xb
movzx eax, byte [eax + 0x10035dc0]
or ecx, eax
je 0x100200f9
mov edx, ecx
shr edx, 1
and ecx, 0xf
and edx, 0x7ffffff8
shl ecx, 4
lea edx, [edx*2 + 0x10035940]
add ecx, 0x10035940
push ebx
call fcn.1000d740
add esp, 4
mov ecx, dword [ebp - 8]
movzx eax, word [ecx - 2]
movzx edx, word [edi + 6]
movzx ecx, word [ecx]
shr eax, 2
and edx, 0x6000
and eax, 0x1800
or eax, edx
movzx edx, word [edi + 8]
and edx, 0x6000
shr ecx, 2
and ecx, 0x1800
or edx, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035dc0]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
or eax, edx
mov edx, dword [ebp - 0x24]
shl eax, 8
mov dword [ebp + 0x10], eax
test dword [ebp + 0x14], 0x4000000
jne 0x1002019d
mov eax, dword [ebp + 0x3c]
mov ecx, dword [eax - 0x10]
sub ecx, dword [eax - 0x20]
inc ecx
cmp ecx, 2
ja 0x1002016f
mov ecx, dword [eax - 0xc]
sub ecx, dword [eax - 0x1c]
inc ecx
cmp ecx, 2
jbe 0x1002017a
mov ecx, 0xa
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x30], ecx
mov ecx, dword [eax - 8]
sub ecx, dword [eax - 0x18]
inc ecx
cmp ecx, 2
ja 0x10020192
mov ecx, dword [eax - 4]
sub ecx, dword [eax - 0x14]
inc ecx
cmp ecx, 2
jbe 0x1002019d
mov eax, 0xa0
or dword [ebp + 0x28], eax
or dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x14]
and eax, 0x4000010
cmp eax, 0x10
jne 0x100201c6
movzx ecx, byte [ebp + 0x28]
mov eax, dword [ebp - 0x10]
mov byte [eax], cl
movzx ecx, byte [ebp + 0x30]
inc eax
mov byte [eax], cl
inc eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x30], eax
test edx, edx
jne 0x10020278
mov eax, dword [ebp + 0x2c]
movzx edx, word [eax - 2]
movzx eax, word [eax]
movzx ecx, word [edi + 0xa2]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
movzx ecx, word [edi + 0xa4]
shr eax, 2
and ecx, 0x6000
and eax, 0x1800
or eax, ecx
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
shr eax, 0xb
movzx eax, byte [eax + 0x10035dd0]
or edx, eax
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax - 2]
movzx eax, word [eax]
shl edx, 8
or dword [ebp + 0x28], edx
movzx edx, word [edi + 0xc2]
shr ecx, 2
and edx, 0x6000
and ecx, 0x1800
or ecx, edx
movzx edx, word [edi + 0xc4]
and edx, 0x6000
shr eax, 2
and eax, 0x1800
or edx, eax
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dc0]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
or ecx, edx
shl ecx, 8
or dword [ebp + 0x30], ecx
mov eax, dword [ebp + 0x14]
test eax, 0x20000004
jne 0x10020347
movzx eax, word [edi + 4]
movzx ecx, word [edi + 0x14]
movzx edx, word [edi + 0x12]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx ecx, byte [eax + 0x10035dd0]
movzx eax, word [edi + 2]
and edx, 0x6000
shr eax, 2
and eax, 0x1800
or edx, eax
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
or ecx, edx
je 0x100202f6
mov eax, ecx
shr eax, 1
and eax, 0x7ffffff8
and ecx, 0xf
lea edx, [eax*2 + 0x10035940]
shl ecx, 4
lea eax, [ebx + esi*8]
add ecx, 0x10035940
push eax
call fcn.1000d740
add esp, 4
movzx ecx, word [edi + 8]
movzx edx, word [edi + 0x18]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
movzx edx, word [edi + 0x16]
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035dd0]
movzx ecx, word [edi + 6]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dc0]
or eax, ecx
shl eax, 0x10
or dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x2c], 0
jne 0x10020655
mov ecx, eax
and ecx, 0x40000000
mov dword [ebp - 0x2c], ecx
jne 0x100204be
movzx edx, word [edi + 0x14]
shr edx, 2
and edx, 0x1800
test al, 4
movzx eax, word [edi + 0x24]
jne 0x10020434
and eax, 0x6000
or edx, eax
movzx eax, word [edi + 0x22]
shr edx, 0xb
movzx ecx, byte [edx + 0x10035dd0]
movzx edx, word [edi + 0x12]
shr edx, 2
and edx, 0x1800
and eax, 0x6000
or edx, eax
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
or ecx, edx
je 0x100203e1
mov eax, ecx
shr eax, 1
and eax, 0x7ffffff8
lea edx, [eax*2 + 0x10035940]
and ecx, 0xf
lea eax, [esi*8]
shl ecx, 4
lea eax, [ebx + eax*2]
add ecx, 0x10035940
push eax
call fcn.1000d740
add esp, 4
movzx ecx, word [edi + 0x18]
movzx edx, word [edi + 0x28]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
movzx edx, word [edi + 0x26]
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035dd0]
movzx ecx, word [edi + 0x16]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dc0]
or eax, ecx
shl eax, 0x18
or dword [ebp + 0x10], eax
jmp 0x100204bb
movzx ecx, word [edi + 0x12]
and eax, 0x6000
or edx, eax
movzx eax, word [edi + 0x22]
shr ecx, 2
and eax, 0x6000
and ecx, 0x1800
or ecx, eax
mov eax, dword [ebp - 0x10]
shr edx, 0xb
mov dl, byte [edx + 0x10035dd0]
shr ecx, 0xb
or dl, byte [ecx + 0x10035dc0]
movzx ecx, word [edi + 0x28]
mov byte [eax], dl
movzx edx, word [edi + 0x16]
inc eax
mov dword [ebp - 0x10], eax
movzx eax, word [edi + 0x18]
shr eax, 2
and ecx, 0x6000
and eax, 0x1800
or eax, ecx
movzx ecx, word [edi + 0x26]
shr edx, 2
and ecx, 0x6000
and edx, 0x1800
or edx, ecx
shr eax, 0xb
mov cl, byte [eax + 0x10035dd0]
mov eax, dword [ebp - 0x10]
shr edx, 0xb
or cl, byte [edx + 0x10035dc0]
inc eax
mov byte [eax - 1], cl
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
test eax, 0x100
je 0x10020655
test eax, eax
js 0x1002059b
movzx edx, word [edi + 0x24]
movzx eax, word [edi + 0x34]
shr edx, 2
and edx, 0x1800
and eax, 0x6000
or edx, eax
movzx eax, word [edi + 0x32]
shr edx, 0xb
movzx ecx, byte [edx + 0x10035dd0]
movzx edx, word [edi + 0x22]
shr edx, 2
and edx, 0x1800
and eax, 0x6000
or edx, eax
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
or ecx, edx
je 0x1002054d
mov eax, ecx
shr eax, 1
and eax, 0x7ffffff8
lea edx, [eax*2 + 0x10035940]
lea eax, [esi*8]
and ecx, 0xf
lea ebx, [ebx + eax*2]
shl ecx, 4
add ebx, eax
add ecx, 0x10035940
push ebx
call fcn.1000d740
mov ebx, dword [ebp + 0x18]
add esp, 4
movzx ecx, word [edi + 0x28]
movzx edx, word [edi + 0x38]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
movzx edx, word [edi + 0x36]
shr ecx, 0xb
movzx eax, byte [ecx + 0x10035dd0]
movzx ecx, word [edi + 0x26]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dc0]
or eax, ecx
shl eax, 0x18
or dword [ebp + 0x28], eax
cmp dword [ebp - 0x2c], 0
jne 0x10020655
movzx edx, word [edi + 0xa4]
movzx eax, word [edi + 0xac]
shr edx, 2
and eax, 0x6000
and edx, 0x1800
or edx, eax
movzx eax, word [edi + 0xaa]
shr edx, 0xb
movzx ecx, byte [edx + 0x10035dd0]
movzx edx, word [edi + 0xa2]
and eax, 0x6000
shr edx, 2
and edx, 0x1800
or edx, eax
movzx eax, word [edi + 0xc4]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
or ecx, edx
shl ecx, 0x10
or dword [ebp + 0x28], ecx
movzx ecx, word [edi + 0xcc]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
movzx ecx, word [edi + 0xca]
shr eax, 0xb
movzx edx, byte [eax + 0x10035dd0]
movzx eax, word [edi + 0xc2]
shr eax, 2
and eax, 0x1800
and ecx, 0x6000
or eax, ecx
shr eax, 0xb
movzx eax, byte [eax + 0x10035dc0]
or edx, eax
shl edx, 0x10
or dword [ebp + 0x30], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x30]
mov dword [edi + 0xe0], ecx
mov dword [edi + 0xe4], edx
mov dword [edi + 0xe8], eax
jmp 0x10020e40
mov eax, dword [ebp + 0x38]
test cl, 4
jne 0x10020756
test ecx, 0x40200
jne 0x100206e6
mov ecx, dword [eax - 0x38]
sub ecx, dword [eax - 0x20]
inc ecx
cmp ecx, 2
ja 0x100206a1
mov edx, dword [eax - 0x34]
sub edx, dword [eax - 0x1c]
inc edx
cmp edx, 2
jbe 0x100206e6
push ebx
push 0x100359e0
mov ecx, esi
call fcn.1000d930
lea eax, [ebx + esi*8]
push eax
push 0x100359e0
mov ecx, esi
call fcn.1000d930
mov ecx, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x34]
push 0x100359e0
call fcn.1000d930
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
push edx
push 0x100359e0
call fcn.1000d930
mov eax, dword [ebp + 0x38]
add esp, 0x20
test dword [ebp + 0x14], 0x100000
jne 0x10020756
mov ecx, dword [eax - 0x20]
sub ecx, dword [eax - 0x18]
inc ecx
cmp ecx, 2
ja 0x10020707
mov edx, dword [eax - 0x1c]
sub edx, dword [eax - 0x14]
inc edx
cmp edx, 2
jbe 0x10020756
lea eax, [ebx + 0x10]
push eax
push 0x100359e0
mov ecx, esi
call fcn.1000d930
lea ecx, [ebx + esi*8 + 0x10]
push ecx
push 0x100359e0
mov ecx, esi
call fcn.1000d930
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x34]
add edx, 8
push edx
push 0x100359e0
call fcn.1000d930
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
add eax, 8
push eax
push 0x100359e0
call fcn.1000d930
mov eax, dword [ebp + 0x38]
add esp, 0x20
mov ecx, dword [ebp + 0x14]
test cl, 3
jne 0x10020881
test ecx, 0x40200
jne 0x100207f0
mov ecx, dword [eax - 0x28]
sub ecx, dword [eax - 0x10]
inc ecx
cmp ecx, 2
ja 0x10020786
mov edx, dword [eax - 0x24]
sub edx, dword [eax - 0xc]
inc edx
cmp edx, 2
jbe 0x100207f0
lea eax, [esi*8]
lea eax, [ebx + eax*2]
push eax
push 0x100359e0
mov ecx, esi
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x100
je 0x100207ed
lea eax, [esi*8]
lea ecx, [ebx + eax*2]
add ecx, eax
push ecx
push 0x100359e0
mov ecx, esi
call fcn.1000d930
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x34]
lea eax, [edx + ecx*8]
push eax
push 0x100359e0
call fcn.1000d930
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
lea eax, [edx + ecx*8]
push eax
push 0x100359e0
call fcn.1000d930
add esp, 0x18
mov eax, dword [ebp + 0x38]
test dword [ebp + 0x14], 0x100000
jne 0x10020881
mov ecx, dword [eax - 0x10]
sub ecx, dword [eax - 8]
inc ecx
cmp ecx, 2
ja 0x10020815
mov edx, dword [eax - 0xc]
sub edx, dword [eax - 4]
inc edx
cmp edx, 2
jbe 0x10020881
lea eax, [esi*8]
lea eax, [ebx + eax*2 + 0x10]
push eax
push 0x100359e0
mov ecx, esi
call fcn.1000d930
add esp, 8
test dword [ebp + 0x14], 0x100
je 0x10020881
lea eax, [esi*8]
lea ecx, [ebx + eax*2]
lea edx, [eax + ecx + 0x10]
push edx
push 0x100359e0
mov ecx, esi
call fcn.1000d930
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x34]
lea edx, [eax + ecx*8 + 8]
push edx
push 0x100359e0
call fcn.1000d930
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
lea edx, [eax + ecx*8 + 8]
push edx
push 0x100359e0
call fcn.1000d930
add esp, 0x18
test dword [ebp + 0x14], 0x8000
jne 0x10020e50
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x20]
lea eax, [esi + esi]
sub ebx, eax
mov eax, dword [ebp + 0x34]
add eax, eax
sub dword [ebp + 0x24], eax
push edx
mov edx, dword [ebp + 0x24]
sub ecx, eax
xor eax, eax
push edx
push ecx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x10], eax
lea eax, [edi + 0xe0]
push ebx
mov ecx, esi
mov dword [ebp + 0x18], ebx
call fcn.1001dbc0
add esp, 0x10
test byte [ebp + 0x14], 0x84
jne 0x10020d0a
mov eax, dword [ebp - 8]
movzx ecx, word [eax - 6]
mov dword [ebp - 0x20], ecx
test ecx, 0x8000
je 0x10020c17
test dword [ebp + 0x14], 0x8000000
jne 0x100209d6
mov ecx, dword [ebp + 8]
movzx edx, word [ecx - 4]
movzx ecx, word [eax - 4]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp + 8]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
mov dword [ebp + 0x10], edx
movzx edx, word [ecx - 6]
mov ecx, dword [ebp - 0x20]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp + 0x10]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
or ecx, edx
je 0x10020981
mov eax, ecx
shr eax, 1
and eax, 0x7ffffff8
lea edx, [eax*2 + 0x10035940]
and ecx, 0xf
lea eax, [esi*8]
shl ecx, 4
sub ebx, eax
add ecx, 0x10035940
push ebx
call fcn.1000d740
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx - 2]
movzx ecx, word [eax - 2]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp + 8]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
mov dword [ebp + 0x18], edx
movzx edx, word [ecx]
movzx ecx, word [eax]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp + 0x18]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
or ecx, edx
mov dword [ebp + 0x10], ecx
test dword [ebp + 0x14], 0x4000000
jne 0x10020a99
mov edx, dword [ebp - 0x18]
movzx ecx, word [edx - 2]
mov edx, dword [ebp + 0x2c]
movzx edx, word [edx - 2]
shr ecx, 2
and edx, 0x6000
and ecx, 0x1800
or ecx, edx
mov edx, dword [ebp - 0x18]
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dc0]
mov dword [ebp + 0x18], ecx
movzx ecx, word [edx]
mov edx, dword [ebp + 0x2c]
movzx edx, word [edx]
shr ecx, 2
and edx, 0x6000
and ecx, 0x1800
or ecx, edx
mov edx, dword [ebp + 0x18]
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dd0]
or edx, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x28], edx
movzx edx, word [ecx - 2]
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx - 2]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp - 0x1c]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dc0]
mov dword [ebp + 0x18], edx
movzx edx, word [ecx]
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx]
shr edx, 2
and edx, 0x1800
and ecx, 0x6000
or edx, ecx
mov ecx, dword [ebp + 0x18]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
or ecx, edx
mov dword [ebp + 0x30], ecx
test dword [ebp + 0x14], 0x10000000
jne 0x10020cd8
movzx edx, word [eax - 4]
movzx ecx, word [edi + 4]
shr edx, 2
and ecx, 0x6000
and edx, 0x1800
or edx, ecx
mov ecx, dword [ebp - 0x20]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
mov dword [ebp + 0x18], edx
mov edx, dword [ebp - 0x24]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
shr ecx, 0xb
movzx edx, byte [ecx + 0x10035dc0]
mov ecx, dword [ebp + 0x18]
or ecx, edx
je 0x10020b1c
mov eax, ecx
and ecx, 0xf
shr eax, 1
and eax, 0x7ffffff8
shl ecx, 4
lea edx, [eax*2 + 0x10035940]
add ecx, 0x10035940
push ebx
call fcn.1000d740
mov eax, dword [ebp - 8]
add esp, 4
movzx ecx, word [eax - 2]
movzx eax, word [eax]
movzx edx, word [edi + 6]
shr ecx, 2
and ecx, 0x1800
and edx, 0x6000
or ecx, edx
movzx edx, word [edi + 8]
and edx, 0x6000
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dc0]
shr eax, 2
and eax, 0x1800
or edx, eax
mov eax, dword [ebp + 0x2c]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
or ecx, edx
movzx edx, word [edi + 0xa2]
shl ecx, 8
or dword [ebp + 0x10], ecx
movzx ecx, word [eax - 2]
shr ecx, 2
and edx, 0x6000
and ecx, 0x1800
or ecx, edx
movzx edx, word [eax]
movzx eax, word [edi + 0xa4]
shr edx, 2
and edx, 0x1800
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dc0]
and eax, 0x6000
or edx, eax
mov eax, dword [ebp - 0xc]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
or ecx, edx
movzx edx, word [edi + 0xc2]
shl ecx, 8
or dword [ebp + 0x28], ecx
movzx ecx, word [eax - 2]
movzx eax, word [eax]
shr ecx, 2
and edx, 0x6000
and ecx, 0x1800
or ecx, edx
movzx edx, word [edi + 0xc4]
and edx, 0x6000
shr eax, 2
and eax, 0x1800
or edx, eax
shr ecx, 0xb
movzx ecx, byte [ecx + 0x10035dc0]
shr edx, 0xb
movzx edx, byte [edx + 0x10035dd0]
or ecx, edx
shl ecx, 8
or dword [ebp + 0x30], ecx
jmp 0x10020cd8
test dword [ebp + 0x14], 0x10000000
mov eax, dword [ebp + 0x3c]
jne 0x10020c89
mov ecx, dword [ebp + 0x38]
mov edx, dword [ecx - 0x20]
sub edx, dword [eax - 0x10]
inc edx
cmp edx, 2
ja 0x10020c3e
mov edx, dword [ecx - 0x1c]
sub edx, dword [eax - 0xc]
inc edx
cmp edx, 2
jbe 0x10020c5f
mov edx, 0x100359e0
push ebx
mov ecx, edx
call fcn.1000d740
mov ecx, dword [ebp + 0x38]
mov eax, 0xa00
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x3c]
add esp, 4
mov edx, dword [ecx - 0x18]
sub edx, dword [eax - 8]
inc edx
cmp edx, 2
ja 0x10020c77
mov ecx, dword [ecx - 0x14]
sub ecx, dword [eax - 4]
inc ecx
cmp ecx, 2
jbe 0x10020c89
mov ecx, 0xa000
or dword [ebp + 0x28], ecx
or dword [ebp + 0x30], ecx
mov dword [ebp + 0x10], 0xaa00
test dword [ebp + 0x14], 0x4000000
jne 0x10020cd8
mov edx, dword [eax - 0x10]
sub edx, dword [eax - 0x20]
inc edx
cmp edx, 2
ja 0x10020caa
mov ecx, dword [eax - 0xc]
sub ecx, dword [eax - 0x1c]
inc ecx
cmp ecx, 2
jbe 0x10020cb5
mov ecx, 0xa
or dword [ebp + 0x28], ecx
or dword [ebp + 0x30], ecx
mov edx, dword [eax - 8]
sub edx, dword [eax - 0x18]
inc edx
cmp edx, 2
ja 0x10020ccd
mov ecx, dword [eax - 4]
sub ecx, dword [eax - 0x14]
inc ecx
cmp ecx, 2
jbe 0x10020cd8
mov eax, 0xa0
or dword [ebp + 0x28], eax
or dword [ebp + 0x30], eax
mov edx, dword [ebp + 0x14]
and edx, 0x4000010
cmp edx, 0x10
jne 0x10020d0a
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x30]
mov byte [eax], cl
inc eax
mov byte [eax], dl
inc eax
and ecx, 0xff00
and edx, 0xff00
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x30], edx
mov eax, dword [ebp + 0x14]
test al, 3
jne 0x10020e25
test eax, 0x40000000
jne 0x10020dcb
test al, 4
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax - 0x20]
jne 0x10020d7d
sub ecx, dword [eax - 0x10]
inc ecx
cmp ecx, 2
ja 0x10020d3f
mov edx, dword [eax - 0x1c]
sub edx, dword [eax - 0xc]
inc edx
cmp edx, 2
jbe 0x10020d5c
lea eax, [esi*8]
lea eax, [ebx + eax*2]
mov edx, 0x100359e0
push eax
mov ecx, edx
call fcn.1000d740
mov eax, dword [ebp + 0x38]
add esp, 4
mov ecx, dword [eax - 0x18]
sub ecx, dword [eax - 8]
inc ecx
cmp ecx, 2
ja 0x10020d74
mov edx, dword [eax - 0x14]
sub edx, dword [eax - 4]
inc edx
cmp edx, 2
jbe 0x10020dce
or dword [ebp + 0x10], 0xaa000000
jmp 0x10020dce
sub ecx, dword [eax - 0x10]
inc ecx
cmp ecx, 2
ja 0x10020d9a
mov edx, dword [eax - 0x1c]
sub edx, dword [eax - 0xc]
inc edx
cmp edx, 2
ja 0x10020d9a
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
jmp 0x10020da0
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0xaa
mov edx, dword [eax - 0x18]
sub edx, dword [eax - 8]
inc ecx
inc edx
cmp edx, 2
ja 0x10020dc2
mov edx, dword [eax - 0x14]
sub edx, dword [eax - 4]
inc edx
cmp edx, 2
ja 0x10020dc2
mov byte [ecx], 0
inc ecx
mov dword [ebp - 0x10], ecx
jmp 0x10020dce
mov byte [ecx], 0xaa
inc ecx
mov dword [ebp - 0x10], ecx
jmp 0x10020dce
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x14]
and ecx, 0x40000100
cmp ecx, 0x100
jne 0x10020e25
mov edx, dword [eax - 0x10]
sub edx, dword [eax - 0x20]
inc edx
cmp edx, 2
ja 0x10020df7
mov ecx, dword [eax - 0xc]
sub ecx, dword [eax - 0x1c]
inc ecx
cmp ecx, 2
jbe 0x10020e02
mov ecx, 0xa0000
or dword [ebp + 0x28], ecx
or dword [ebp + 0x30], ecx
mov edx, dword [eax - 8]
sub edx, dword [eax - 0x18]
inc edx
cmp edx, 2
ja 0x10020e1a
mov ecx, dword [eax - 4]
sub ecx, dword [eax - 0x14]
inc ecx
cmp ecx, 2
jbe 0x10020e25
mov eax, 0xa00000
or dword [ebp + 0x28], eax
or dword [ebp + 0x30], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x30]
mov dword [edi + 0xe0], edx
mov dword [edi + 0xe4], eax
mov dword [edi + 0xe8], ecx
lea eax, [esi + esi]
add ebx, eax
mov eax, dword [ebp + 0x34]
add eax, eax
add dword [ebp + 0x20], eax
add dword [ebp + 0x24], eax
cmp dword [ebp + 0x1c], 0
je 0x10020e7a
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 0x70]
mov ecx, dword [edi + 0x74]
mov dword [eax - 8], edx
mov edx, dword [edi + 0x80]
mov dword [eax - 4], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0x84]
mov dword [eax - 8], edx
mov dword [eax - 4], ecx
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [eax - 8], edx
mov edx, dword [edi + 0x30]
mov dword [eax - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x34]
mov dword [eax - 8], edx
mov edx, dword [edi + 0xa0]
mov dword [eax - 4], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 0xa8]
mov dword [eax - 4], edx
mov edx, dword [ebp + 0x2c]
mov eax, dword [edi + 0xc0]
mov dword [edx - 4], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edi + 0xc8]
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [eax - 4], edx
mov eax, dword [ebp + 0x14]
test al, 0x40
je 0x100213bf
test eax, 0x400
jne 0x10021063
mov ecx, 0x20
add dword [ebp + 0x38], ecx
add dword [ebp + 0x3c], ecx
add ebx, ecx
mov edx, 0x10
add dword [ebp + 0x20], edx
add dword [ebp + 0x24], edx
mov edx, 4
add dword [ebp - 0x18], edx
add dword [ebp + 0x2c], edx
add dword [ebp - 0x1c], edx
add dword [ebp - 0xc], edx
mov dword [ebp + 0x18], ebx
mov ebx, 8
add dword [ebp + 8], ebx
add dword [ebp - 8], ebx
or eax, 0x400
test cl, al
je 0x10020f23
or eax, 0x200
mov edx, eax
shr edx, 4
and edx, 0x3c0000
and eax, 0xfc03ffff
or edx, eax
mov dword [ebp + 0x14], edx
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x10020fb4
mov eax, dword [edi + 0x58]
mov dword [edi + 0x50], eax
mov eax, dword [edi + 0x5c]
mov dword [edi + 0x54], eax
mov eax, dword [edi + 0x68]
add dword [ebp + 0xc], ebx
mov dword [edi + 0x60], eax
mov eax, dword [edi + 0x6c]
mov dword [edi + 0x64], eax
mov eax, dword [edi + 0x78]
mov dword [edi + 0x70], eax
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x74], eax
mov eax, dword [edi + 0x88]
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0x8c]
mov dword [edi + 0x84], eax
mov eax, dword [edi + 0x90]
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0x94]
add edx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x98]
mov dword [edi + 0x78], eax
mov eax, dword [edi + 0x9c]
add ecx, ebx
mov dword [ebp + 0x1c], edx
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x88], eax
jmp 0x10020fb7
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 8]
mov dword [edi], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x28]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x38]
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x40]
mov dword [edi + 8], eax
mov eax, dword [edi + 0x44]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x48]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x4c]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0xa4]
mov dword [edi + 0xa0], eax
mov eax, dword [edi + 0xac]
mov dword [edi + 0xa8], eax
mov eax, dword [edi + 0xb0]
mov dword [edi + 0xa4], eax
mov eax, dword [edi + 0xb4]
mov dword [edi + 0xac], eax
mov eax, dword [edi + 0xc4]
mov dword [edi + 0xc0], eax
mov eax, dword [edi + 0xcc]
mov dword [edi + 0xc8], eax
mov eax, dword [edi + 0xd0]
mov dword [edi + 0xc4], eax
mov eax, dword [edi + 0xd4]
mov dword [edi + 0xcc], eax
jmp 0x1001e3d1
cmp dword [ebp + 0x1c], 0
je 0x10021080
movzx ecx, word [edi + 0x78]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
movzx ecx, word [edi + 0x88]
mov edx, dword [ebp - 0x14]
mov word [edx], cx
movzx ecx, word [edi + 0x28]
mov edx, dword [ebp + 8]
mov word [edx], cx
movzx ecx, word [edi + 0x38]
mov edx, dword [ebp - 8]
mov word [edx], cx
movzx ecx, word [edi + 0xa4]
mov edx, dword [ebp - 0x18]
mov word [edx], cx
movzx ecx, word [edi + 0xac]
mov edx, dword [ebp + 0x2c]
mov word [edx], cx
movzx ecx, word [edi + 0xc4]
mov edx, dword [ebp - 0x1c]
mov word [edx], cx
movzx ecx, word [edi + 0xcc]
mov edx, dword [ebp - 0xc]
mov word [edx], cx
test eax, 0x8000
jne 0x100213bf
mov eax, dword [edi + 0xe0]
mov edx, dword [edi + 0xe4]
mov ecx, dword [edi + 0xe8]
mov edi, esi
neg edi
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x30], ecx
lea edi, [ebx + edi*2]
test eax, eax
je 0x100211f6
movzx ecx, al
test ecx, ecx
je 0x1002113d
mov eax, ecx
shr eax, 1
and eax, 0x7ffffff8
lea edx, [eax*2 + 0x10035940]
lea eax, [esi*8]
and ecx, 0xf
mov ebx, edi
sub ebx, eax
shl ecx, 4
add ebx, 0x10
add ecx, 0x10035940
push ebx
call fcn.1000d740
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x28]
add esp, 4
mov ecx, eax
shr ecx, 8
and ecx, 0xff
je 0x10021179
mov edx, ecx
shr edx, 1
and ecx, 0xf
and edx, 0x7ffffff8
shl ecx, 4
lea eax, [edi + 0x10]
lea edx, [edx*2 + 0x10035940]
add ecx, 0x10035940
push eax
call fcn.1000d740
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x28]
add esp, 4
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
je 0x100211b6
mov edx, ecx
shr edx, 1
and ecx, 0xf
and edx, 0x7ffffff8
shl ecx, 4
lea eax, [edi + esi*8 + 0x10]
lea edx, [edx*2 + 0x10035940]
add ecx, 0x10035940
push eax
call fcn.1000d740
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x28]
add esp, 4
shr eax, 0x18
test eax, eax
je 0x100211f3
mov ecx, eax
shr ecx, 1
and ecx, 0x7ffffff8
lea edx, [ecx*2 + 0x10035940]
mov ecx, eax
and ecx, 0xf
lea eax, [esi*8]
shl ecx, 4
lea eax, [edi + eax*2 + 0x10]
add ecx, 0x10035940
push eax
call fcn.1000d740
mov edx, dword [ebp + 0x28]
add esp, 4
mov ecx, dword [ebp + 0x30]
test edx, edx
je 0x100212fb
mov ecx, edx
shr ecx, 0x18
test ecx, ecx
je 0x1002123e
mov edx, ecx
lea eax, [esi*8]
shr edx, 1
and ecx, 0xf
lea edi, [edi + eax*2]
and edx, 0x7ffffff8
shl ecx, 4
lea eax, [eax + edi + 0x10]
lea edx, [edx*2 + 0x10035940]
add ecx, 0x10035940
push eax
call fcn.1000d740
mov edx, dword [ebp + 0x28]
add esp, 4
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x20]
neg ecx
lea edi, [eax + ecx*2]
movzx ecx, dl
test ecx, ecx
je 0x10021287
mov esi, dword [ebp + 0x34]
mov edx, ecx
shr edx, 1
and ecx, 0xf
lea eax, [esi*8]
mov ebx, edi
and edx, 0x7ffffff8
shl ecx, 4
sub ebx, eax
lea edx, [edx*2 + 0x10035940]
add ecx, 0x10035940
push ebx
call fcn.1000d740
mov edx, dword [ebp + 0x28]
add esp, 4
mov ecx, edx
shr ecx, 8
and ecx, 0xff
je 0x100212c0
mov esi, dword [ebp + 0x34]
mov edx, ecx
shr edx, 1
and ecx, 0xf
and edx, 0x7ffffff8
shl ecx, 4
lea edx, [edx*2 + 0x10035940]
add ecx, 0x10035940
push edi
call fcn.1000d740
mov edx, dword [ebp + 0x28]
add esp, 4
shr edx, 0x10
and edx, 0xff
mov ecx, edx
je 0x100212f8
mov esi, dword [ebp + 0x34]
mov eax, ecx
shr eax, 1
and eax, 0x7ffffff8
and ecx, 0xf
lea edx, [eax*2 + 0x10035940]
shl ecx, 4
lea eax, [edi + esi*8]
add ecx, 0x10035940
push eax
call fcn.1000d740
add esp, 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x100213bf
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x24]
neg edx
lea edi, [eax + edx*2]
movzx eax, cl
test eax, eax
je 0x1002134e
mov esi, dword [ebp + 0x34]
mov ecx, eax
shr ecx, 1
and ecx, 0x7ffffff8
lea edx, [ecx*2 + 0x10035940]
mov ecx, eax
and ecx, 0xf
lea eax, [esi*8]
mov ebx, edi
shl ecx, 4
sub ebx, eax
add ecx, 0x10035940
push ebx
call fcn.1000d740
mov ecx, dword [ebp + 0x30]
add esp, 4
mov eax, ecx
shr eax, 8
and eax, 0xff
je 0x10021388
mov esi, dword [ebp + 0x34]
mov ecx, eax
shr ecx, 1
and ecx, 0x7ffffff8
lea edx, [ecx*2 + 0x10035940]
mov ecx, eax
and ecx, 0xf
shl ecx, 4
add ecx, 0x10035940
push edi
call fcn.1000d740
mov ecx, dword [ebp + 0x30]
add esp, 4
shr ecx, 0x10
and ecx, 0xff
je 0x100213bf
mov esi, dword [ebp + 0x34]
mov edx, ecx
shr edx, 1
and ecx, 0xf
and edx, 0x7ffffff8
shl ecx, 4
lea eax, [edi + esi*8]
lea edx, [edx*2 + 0x10035940]
add ecx, 0x10035940
push eax
call fcn.1000d740
add esp, 4
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x100213db
test byte [ebp + 0x14], 0x14
je 0x100213db
mov eax, dword [ebp - 0x10]
sub eax, ecx
sub eax, 4
cmp eax, dword [ebp - 0x28]
je 0x100213db
mov dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret