Function at 0x666d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov edx, dword [ebp + 0x690]
mov eax, dword [ebp + 0x68c]
cmp eax, edx
je 0x666d80
lea eax, [edx + edx*2]
mov esi, dword [esp + 0x88]
shl eax, 4
pop edi
lea ecx, [eax + ebp + 0x6a0]
mov eax, dword [eax + ebp + 0x6b8]
sub eax, edx
mov edx, dword [ecx + 0x1c]
mov dword [esi], edx
mov ecx, dword [ecx + 0x18]
mov dword [ebp + 0x690], ecx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0xc
mov eax, dword [ebp + 0x31938]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 0x68c], ebx
mov dword [ebp + 0x690], ebx
jne 0x666da9
lea edx, [esp + 0x30]
push edx
push ebp
call fcn.00666c80
mov dword [esp + 0x20], eax
jmp 0x666dbd
mov eax, dword [ebp + 0x694]
mov ecx, dword [ebp + 0x698]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ecx
mov eax, dword [ebp + 0x69c]
cmp eax, 2
mov dword [esp + 0x18], eax
jae 0x666de8
mov edx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword [edx], 0xffffffff
mov eax, 1
pop ebx
add esp, 0x6c
ret 0xc
cmp eax, 0x111
jbe 0x666df7
mov dword [esp + 0x18], 0x111
mov eax, dword [ebp + 0x18]
push eax
call dword [ebp + 0xc]
lea ecx, [ebp + 0x3193c]
dec eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x2c]
mov ecx, eax
lea edi, [ebx*4]
mov edx, dword [edx]
sub ecx, edx
mov dword [esp + edi + 0x5c], edx
mov dl, byte [eax]
dec ecx
cmp dl, byte [ecx]
jne 0x666e7e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x666e7e
mov edx, dword [esp + 0x18]
mov esi, 2
cmp edx, esi
jbe 0x666e66
lea edx, [eax + 2]
sub ecx, eax
mov bl, byte [edx]
cmp bl, byte [ecx + edx]
jne 0x666e5f
mov ebx, dword [esp + 0x18]
inc esi
inc edx
cmp esi, ebx
jb 0x666e4e
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x3c]
mov dword [esp + edi + 0x6c], esi
cmp esi, dword [esp + ecx + 0x6c]
jbe 0x666e86
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], edi
jmp 0x666e86
mov dword [esp + edi + 0x6c], 0
mov edx, dword [esp + 0x2c]
inc ebx
add edx, 4
cmp ebx, 4
mov dword [esp + 0x80], ebx
mov dword [esp + 0x2c], edx
jb 0x666e18
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 0x31934]
mov esi, dword [esp + edx*4 + 0x6c]
cmp esi, ecx
mov dword [esp + 0x4c], esi
jb 0x666ed9
mov eax, dword [esp + 0x88]
mov ecx, edx
lea edx, [esi - 1]
push edx
push ebp
mov dword [eax], ecx
call fcn.006680d0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0xc
mov edi, dword [esp + 0x20]
lea edx, [ebp + 0x310a0]
cmp edi, ecx
jb 0x666f13
mov eax, dword [esp + 0x30]
mov esi, edi
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [esp + 0x88]
lea eax, [esi - 1]
add ecx, 4
push eax
push ebp
mov dword [edx], ecx
call fcn.006680d0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0xc
mov ebx, dword [esp + 0x5c]
mov cl, byte [eax]
mov edx, eax
mov byte [esp + 0x80], cl
sub edx, ebx
cmp edi, 2
mov dl, byte [edx - 1]
mov byte [esp + 0x3c], dl
jae 0x666f55
cmp cl, dl
je 0x666f55
cmp esi, 2
jae 0x666f55
mov eax, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword [eax], 0xffffffff
mov eax, 1
pop ebx
add esp, 0x6c
ret 0xc
mov esi, dword [ebp + 0x3194c]
mov edi, dword [ebp + 0x325a8]
mov ecx, dword [esp + 0x84]
mov edx, dword [ebp + 0x32598]
xor ebx, ebx
mov dword [ebp + 0x6a4], esi
mov bl, byte [eax - 1]
and edi, ecx
mov cl, 8
mov eax, ebx
mov ebx, dword [ebp + 0x325a4]
sub cl, dl
shr eax, cl
mov ecx, dword [esp + 0x84]
and ebx, ecx
mov ecx, edx
shl ebx, cl
mov edx, dword [ebp + 0x325ac]
lea ecx, [ebp + 0x30ea0]
push ecx
add eax, ebx
lea eax, [eax + eax*2]
shl eax, 9
add eax, edx
cmp esi, 7
jb 0x666fd3
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x84]
and ecx, 0xff
and edx, 0xff
push ecx
push edx
push eax
call fcn.00668060
jmp 0x666fe7
mov ecx, dword [esp + 0x84]
and ecx, 0xff
push ecx
push eax
call fcn.00668010
mov ecx, dword [ebp + 0x3194c]
xor esi, esi
mov edx, ecx
xor ebx, ebx
shl edx, 4
add edx, edi
mov si, word [ebp + edx*2 + 0x325b0]
lea edx, [ebp + edx*2 + 0x325b0]
shr esi, 4
mov esi, dword [ebp + esi*4 + 0x30ea0]
mov dword [ebp + 0x6ec], 0xffffffff
add esi, eax
xor eax, eax
mov dword [ebp + 0x6d0], esi
mov dword [ebp + 0x6d8], ebx
mov ax, word [edx]
xor edx, edx
mov dx, word [ebp + ecx*2 + 0x32730]
xor eax, 0x7f0
xor edx, 0x7f0
shr eax, 4
shr edx, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
mov esi, dword [ebp + edx*4 + 0x30ea0]
mov dl, byte [esp + 0x3c]
mov dword [esp + 0x44], eax
add esi, eax
mov al, byte [esp + 0x80]
mov dword [esp + 0x48], esi
cmp dl, al
jne 0x667096
push edi
push ecx
push ebp
call fcn.00668100
mov ecx, dword [ebp + 0x6d0]
add eax, esi
cmp eax, ecx
jae 0x667096
mov dword [ebp + 0x6d0], eax
mov dword [ebp + 0x6ec], ebx
mov dword [ebp + 0x6d8], ebx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
cmp ecx, eax
jb 0x6670a4
mov eax, ecx
cmp eax, 2
mov dword [esp + 0x10], eax
jae 0x6670cb
mov edx, dword [esp + 0x88]
mov ecx, dword [ebp + 0x6ec]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov eax, 1
pop ebx
add esp, 0x6c
ret 0xc
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [ebp + 0x6e8], ebx
mov dword [ebp + 0x6c0], ecx
mov ecx, dword [esp + 0x64]
mov dword [ebp + 0x6c4], edx
mov edx, dword [esp + 0x68]
mov dword [ebp + 0x6c8], ecx
lea ecx, [eax + eax*2]
mov dword [ebp + 0x6cc], edx
shl ecx, 4
lea ecx, [ecx + ebp + 0x6a0]
mov dword [ecx], 0x40000000
dec eax
sub ecx, 0x30
cmp eax, 2
jae 0x667106
lea edx, [esp + 0x6c]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
cmp esi, 2
jb 0x66719c
mov ecx, dword [ebp + 0x3194c]
mov edx, dword [esp + 0x80]
push edi
push ecx
push edx
push ebp
call fcn.00668150
mov ebx, eax
lea ecx, [esi + esi*2]
mov eax, dword [esp + 0x48]
add ebx, eax
mov eax, edi
shl eax, 4
add eax, edi
shl eax, 4
add eax, esi
shl ecx, 4
lea eax, [ebp + eax*4 + 0x37858]
lea ecx, [ecx + ebp + 0x6bc]
mov edx, dword [eax]
add edx, ebx
cmp edx, dword [ecx - 0x1c]
jae 0x667190
mov dword [ecx - 0x1c], edx
mov edx, dword [esp + 0x80]
mov dword [ecx - 4], 0
mov dword [ecx], edx
mov dword [ecx - 0x14], 0
dec esi
sub eax, 4
sub ecx, 0x30
cmp esi, 2
jae 0x66716d
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x2c]
inc eax
add edx, 4
cmp eax, 4
mov dword [esp + 0x80], eax
mov dword [esp + 0x2c], edx
jb 0x667124
mov eax, dword [ebp + 0x3194c]
xor ecx, ecx
mov cx, word [ebp + eax*2 + 0x32730]
shr ecx, 4
mov eax, dword [ebp + ecx*4 + 0x30ea0]
mov ecx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x6c]
cmp ecx, 2
inc ecx
mov dword [esp + 0x4c], eax
jae 0x6671f2
mov ecx, 2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
ja 0x667332
mov esi, dword [ebp + 0x310a0]
lea eax, [ebp + 0x310a0]
xor edx, edx
cmp ecx, esi
mov dword [esp + 0x80], edx
jbe 0x66722f
mov esi, dword [eax + 8]
add eax, 8
add edx, 2
cmp ecx, esi
ja 0x66721b
mov dword [esp + 0x80], edx
lea eax, [ebp + 0x310a0]
lea ebx, [eax + edx*4]
mov edx, edi
shl edx, 4
add edx, edi
mov dword [esp + 0x3c], ebx
shl edx, 4
add edx, ecx
lea eax, [ebp + edx*4 + 0x33010]
lea edx, [ecx + ecx*2]
shl edx, 4
mov dword [esp + 0x28], eax
lea edx, [edx + ebp + 0x6bc]
mov eax, dword [esp + 0x28]
mov edi, dword [ebx + 4]
mov dword [esp + 0x38], edx
mov esi, dword [eax]
mov eax, dword [esp + 0x4c]
add esi, eax
cmp ecx, 5
lea eax, [ecx - 2]
jb 0x667280
mov eax, 3
cmp edi, 0x80
jae 0x667296
shl eax, 7
add eax, edi
add esi, dword [ebp + eax*4 + 0x31d50]
jmp 0x6672e1
mov ecx, 0x1ffff
mov edx, edi
sub ecx, edi
xor ebx, ebx
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
shr edx, cl
shl eax, 5
add eax, ecx
mov ecx, edi
and ecx, 0xf
mov bl, byte [edx + ebp + 0x306a0]
lea eax, [ebx + eax*2 + 0xc654]
mov ebx, dword [ebp + ecx*4 + 0x32550]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + eax*4]
add edx, ebx
mov ebx, dword [esp + 0x3c]
add esi, edx
mov edx, dword [esp + 0x38]
cmp esi, dword [edx - 0x1c]
jae 0x6672f6
xor eax, eax
add edi, 4
mov dword [edx - 0x1c], esi
mov dword [edx - 4], eax
mov dword [edx], edi
mov dword [edx - 0x14], eax
cmp ecx, dword [ebx]
jne 0x66731a
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x30]
add eax, 2
add ebx, 8
cmp eax, esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x3c], ebx
je 0x667332
mov esi, dword [esp + 0x28]
inc ecx
add esi, 4
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], esi
add edx, 0x30
jmp 0x667260
mov eax, dword [esp + 0x10]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x80], esi
je 0x667ff3
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.00666c80
mov ecx, dword [ebp + 0x31934]
cmp eax, ecx
mov dword [esp + 0x54], eax
jae 0x667fe3
mov edi, dword [esp + 0x84]
lea ecx, [esi + esi*2]
shl ecx, 4
inc edi
mov edx, dword [ecx + ebp + 0x6a8]
mov eax, dword [ecx + ebp + 0x6b8]
lea ebx, [ecx + ebp]
mov dword [esp + 0x84], edi
test edx, edx
je 0x6673f0
mov ecx, dword [ebx + 0x6ac]
dec eax
test ecx, ecx
je 0x6673da
mov ecx, dword [ebx + 0x6b0]
mov edi, dword [ebx + 0x6b4]
lea ecx, [ecx + ecx*2]
shl ecx, 4
cmp edi, 4
mov ecx, dword [ecx + ebp + 0x6a4]
jae 0x6673ca
mov ecx, dword [ecx*4 + 0x100737f8]
mov ecx, dword [ecx*4 + 0x10073798]
jmp 0x6673fd
mov ecx, dword [ecx*4 + 0x100737c8]
mov ecx, dword [ecx*4 + 0x10073798]
jmp 0x6673fd
lea ecx, [eax + eax*2]
shl ecx, 4
mov ecx, dword [ecx + ebp + 0x6a4]
mov ecx, dword [ecx*4 + 0x10073798]
jmp 0x6673fd
lea ecx, [eax + eax*2]
shl ecx, 4
mov ecx, dword [ecx + ebp + 0x6a4]
dec esi
cmp eax, esi
jne 0x66742c
mov eax, dword [ebx + 0x6bc]
test eax, eax
jne 0x66741c
mov edx, dword [ecx*4 + 0x10073828]
mov dword [esp + 0x14], edx
jmp 0x6674dd
mov eax, dword [ecx*4 + 0x10073798]
mov dword [esp + 0x14], eax
jmp 0x6674dd
test edx, edx
je 0x66744f
mov edx, dword [ebx + 0x6ac]
test edx, edx
je 0x66744f
mov eax, dword [ebx + 0x6b0]
mov edx, dword [ebx + 0x6b4]
mov ecx, dword [ecx*4 + 0x100737f8]
jmp 0x66746a
mov edx, dword [ebx + 0x6bc]
cmp edx, 4
jae 0x667463
mov ecx, dword [ecx*4 + 0x100737f8]
jmp 0x66746a
mov ecx, dword [ecx*4 + 0x100737c8]
lea eax, [eax + eax*2]
mov dword [esp + 0x14], ecx
shl eax, 4
cmp edx, 4
lea ecx, [eax + ebp + 0x6a0]
mov dword [esp + 0x4c], ecx
jae 0x6674bf
mov eax, dword [ecx + edx*4 + 0x20]
mov dword [esp + 0x5c], eax
mov eax, 1
cmp edx, eax
jb 0x6674ac
lea esi, [ecx + 0x20]
lea eax, [edx + 1]
mov ecx, edx
lea edi, [esp + 0x60]
cmp eax, 4
rep movsd dword es:[edi], dword [esi]
jae 0x6674dd
mov ecx, dword [esp + 0x4c]
lea esi, [ecx + eax*4 + 0x20]
mov ecx, 4
lea edi, [esp + eax*4 + 0x5c]
sub ecx, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x6674dd
add edx, 0xfffffffc
lea eax, [ecx + 0x20]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x6a4], ecx
mov ecx, dword [esp + 0x68]
mov dword [ebx + 0x6c0], edi
mov dword [ebx + 0x6c4], edx
mov edx, dword [ebx + 0x6a0]
mov dword [ebx + 0x6c8], eax
mov dword [ebx + 0x6cc], ecx
mov eax, dword [ebp + 0x18]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], 0
call dword [ebp + 0xc]
mov esi, eax
dec esi
mov edx, esi
mov dword [esp + 0x24], esi
mov cl, byte [esi]
sub edx, edi
mov edi, dword [ebp + 0x325a8]
mov byte [esp + 0x28], cl
mov ecx, dword [esp + 0x84]
lea eax, [edx - 1]
and edi, ecx
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x44], eax
mov al, byte [eax]
add ecx, edi
mov byte [esp + 0x34], al
xor edx, edx
mov dword [esp + 0x3c], edi
mov dx, word [ebp + ecx*2 + 0x325b0]
lea eax, [ebp + ecx*2 + 0x325b0]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
shr edx, 4
mov eax, dword [ebp + edx*4 + 0x30ea0]
mov edx, dword [ebp + 0x32598]
add eax, ecx
mov cl, 8
mov dword [esp + 0x38], eax
xor eax, eax
mov al, byte [esi - 1]
sub cl, dl
shr eax, cl
mov ecx, dword [ebp + 0x325a4]
and ecx, dword [esp + 0x84]
mov dword [esp + 0x4c], ecx
mov ecx, edx
mov edx, dword [esp + 0x4c]
shl edx, cl
mov ecx, dword [esp + 0x14]
add eax, edx
mov edx, dword [ebp + 0x325ac]
lea eax, [eax + eax*2]
shl eax, 9
add eax, edx
cmp ecx, 7
lea ecx, [ebp + 0x30ea0]
push ecx
jb 0x6675f3
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
and ecx, 0xff
and edx, 0xff
push ecx
push edx
push eax
call fcn.00668060
jmp 0x667604
mov ecx, dword [esp + 0x2c]
and ecx, 0xff
push ecx
push eax
call fcn.00668010
mov ecx, dword [esp + 0x38]
add ecx, eax
mov eax, dword [ebx + 0x6d0]
cmp ecx, eax
mov dword [esp + 0x38], ecx
jae 0x667647
mov edx, dword [esp + 0x80]
mov dword [ebx + 0x6d0], ecx
mov dword [ebx + 0x6e8], edx
mov dword [ebx + 0x6ec], 0xffffffff
mov dword [ebx + 0x6d8], 0
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x48]
xor eax, eax
mov edx, dword [esp + 0x2c]
mov ax, word [ecx]
mov ecx, dword [esp + 0x14]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
add eax, edx
xor edx, edx
mov dx, word [ebp + ecx*2 + 0x32730]
mov dword [esp + 0x58], eax
xor edx, 0x7f0
shr edx, 4
mov ecx, dword [ebp + edx*4 + 0x30ea0]
mov dl, byte [esp + 0x34]
add ecx, eax
mov al, byte [esp + 0x28]
cmp dl, al
mov dword [esp + 0x40], ecx
jne 0x6676f7
mov eax, dword [esp + 0x80]
mov ecx, dword [ebx + 0x6e8]
cmp ecx, eax
jae 0x6676b4
mov eax, dword [ebx + 0x6ec]
test eax, eax
je 0x6676f7
mov ecx, dword [esp + 0x14]
push edi
push ecx
push ebp
call fcn.00668100
mov ecx, dword [ebx + 0x6d0]
add eax, dword [esp + 0x40]
cmp eax, ecx
ja 0x6676f7
mov edx, dword [esp + 0x80]
mov dword [ebx + 0x6d0], eax
xor eax, eax
mov dword [ebx + 0x6e8], edx
mov dword [ebx + 0x6ec], eax
mov dword [ebx + 0x6d8], eax
mov dword [esp + 0x1c], 1
mov edi, dword [esp + 0x80]
mov ecx, dword [ebp + 0x69c]
mov eax, 0xfff
mov dword [esp + 0x2c], ecx
sub eax, edi
cmp eax, ecx
jae 0x667719
mov ecx, eax
mov dword [esp + 0x2c], ecx
cmp ecx, 2
jb 0x667fc4
mov edi, dword [ebp + 0x31934]
mov dword [esp + 0x18], ecx
cmp ecx, edi
jbe 0x667734
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x66786f
mov al, byte [esp + 0x28]
mov dl, byte [esp + 0x34]
cmp dl, al
je 0x66786f
inc edi
cmp edi, ecx
jbe 0x667757
mov edi, ecx
mov ecx, 1
cmp edi, ecx
jbe 0x667776
mov edx, dword [esp + 0x44]
lea eax, [esi + 1]
sub edx, esi
mov bl, byte [eax]
cmp bl, byte [edx + eax]
jne 0x667776
inc ecx
inc eax
cmp ecx, edi
jb 0x667769
lea edx, [ecx - 1]
cmp edx, 2
mov dword [esp + 0x44], edx
jb 0x66786f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x84]
mov edi, dword [ebp + 0x325a8]
inc eax
mov ecx, dword [ecx*4 + 0x10073798]
and eax, edi
mov edi, ecx
xor ebx, ebx
shl edi, 4
add edi, eax
mov dword [esp + 0x48], ecx
mov bx, word [ebp + edi*2 + 0x325b0]
xor edi, edi
mov di, word [ebp + ecx*2 + 0x32730]
xor ebx, 0x7f0
shr ebx, 4
xor edi, 0x7f0
mov ebx, dword [ebp + ebx*4 + 0x30ea0]
shr edi, 4
add ebx, dword [ebp + edi*4 + 0x30ea0]
mov edi, dword [esp + 0x38]
add ebx, edi
mov edi, dword [esp + 0x80]
lea edi, [edx + edi + 1]
cmp dword [esp + 0x10], edi
jae 0x66782e
mov edx, dword [esp + 0x10]
lea ecx, [edx + edx*2]
shl ecx, 4
lea ecx, [ecx + ebp + 0x6a0]
mov dword [esp + 0x4c], ecx
mov ecx, edi
sub ecx, edx
add edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x4c]
add edx, 0x30
dec ecx
mov dword [edx], 0x40000000
jne 0x66781a
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
push 0
push ebp
call fcn.00668230
lea edx, [edi + edi*2]
add eax, ebx
shl edx, 4
lea ecx, [edx + ebp + 0x6a0]
mov edx, dword [edx + ebp + 0x6a0]
cmp eax, edx
jae 0x66786f
mov dword [ecx], eax
mov eax, dword [esp + 0x80]
inc eax
mov dword [ecx + 8], 1
mov dword [ecx + 0x18], eax
xor eax, eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0xc], eax
mov dword [esp + 0x48], 2
mov dword [esp + 0x1c], 0
jmp 0x667885
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, esi
mov edx, dword [esp + 0x10]
mov edi, dword [esp + ecx*4 + 0x5c]
mov cl, byte [esi]
sub eax, edi
dec eax
mov dword [esp + 0x44], eax
cmp cl, byte [eax]
jne 0x667b97
mov cl, byte [esi + 1]
mov bl, byte [eax + 1]
cmp cl, bl
jne 0x667b97
mov ecx, dword [esp + 0x18]
mov ebx, 2
cmp ecx, ebx
jbe 0x6678d7
mov edi, eax
lea ecx, [esi + 2]
sub edi, esi
mov al, byte [ecx]
cmp al, byte [edi + ecx]
jne 0x6678d7
mov eax, dword [esp + 0x18]
inc ebx
inc ecx
cmp ebx, eax
jb 0x6678c6
mov ecx, dword [esp + 0x80]
lea edi, [ebx + ecx]
cmp edx, edi
jae 0x667908
lea eax, [edx + edx*2]
shl eax, 4
lea ecx, [eax + ebp + 0x6a0]
mov eax, edi
sub eax, edx
add edx, eax
mov dword [esp + 0x10], edx
add ecx, 0x30
dec eax
mov dword [ecx], 0x40000000
jne 0x6678fc
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push ebp
mov esi, ebx
call fcn.00668150
mov edx, eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add edx, eax
mov eax, ecx
shl eax, 4
add eax, ecx
mov dword [esp + 0x50], edx
shl eax, 4
mov dword [esp + 0x4c], eax
add eax, ebx
mov dword [esp + 0x38], eax
lea ecx, [ebp + eax*4 + 0x37858]
lea eax, [edi + edi*2]
shl eax, 4
mov dword [esp + 0x38], ecx
mov edi, ecx
lea eax, [eax + ebp + 0x6bc]
mov ecx, edx
add ecx, dword [edi]
cmp ecx, dword [eax - 0x1c]
jae 0x667980
mov dword [eax - 0x1c], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax - 0x14], 0
dec ebx
sub edi, 4
sub eax, 0x30
cmp ebx, 2
jae 0x66795d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
test eax, eax
jne 0x66799f
lea edx, [esi + 1]
mov dword [esp + 0x48], edx
mov ecx, dword [ebp + 0x31934]
mov edx, dword [esp + 0x2c]
lea eax, [esi + 1]
add ecx, eax
cmp ecx, edx
jbe 0x6679b4
mov ecx, edx
cmp eax, ecx
jae 0x6679d2
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
sub edx, ebx
lea edi, [eax + ebx]
mov bl, byte [edi]
cmp bl, byte [edx + edi]
jne 0x6679d2
inc eax
inc edi
cmp eax, ecx
jb 0x6679c5
or ecx, 0xffffffff
sub ecx, esi
add eax, ecx
cmp eax, 2
mov dword [esp + 0x38], eax
jb 0x667b97
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x14]
xor ecx, ecx
lea edi, [esi + eax]
lea eax, [ebp + 0x30ea0]
push eax
mov eax, dword [esp + 0x48]
mov ebx, dword [edx*4 + 0x100737f8]
mov edx, dword [ebp + 0x325a8]
mov cl, byte [esi + eax]
mov eax, dword [esp + 0x28]
push ecx
xor ecx, ecx
mov cl, byte [esi + eax]
and edi, edx
mov edx, dword [ebp + 0x32598]
push ecx
xor ecx, ecx
mov cl, byte [eax + esi - 1]
mov eax, ecx
mov cl, 8
sub cl, dl
mov edx, dword [ebp + 0x325a4]
shr eax, cl
mov ecx, dword [esp + 0x90]
add ecx, esi
and edx, ecx
mov ecx, dword [ebp + 0x32598]
shl edx, cl
mov ecx, dword [ebp + 0x325ac]
add eax, edx
lea edx, [eax + eax*2]
shl edx, 9
add edx, ecx
push edx
call fcn.00668060
mov ecx, ebx
xor edx, edx
shl ecx, 4
add ecx, edi
mov dx, word [ebp + ecx*2 + 0x325b0]
mov ecx, dword [esp + 0x4c]
shr edx, 4
add ecx, esi
mov edi, dword [ebp + edx*4 + 0x30ea0]
mov edx, dword [ebp + ecx*4 + 0x37858]
mov ecx, dword [esp + 0x50]
add eax, edi
mov edi, dword [ebp + 0x325a8]
add eax, edx
mov edx, dword [ebx*4 + 0x10073798]
add eax, ecx
mov ecx, dword [esp + 0x84]
xor ebx, ebx
lea ecx, [esi + ecx + 1]
and ecx, edi
mov edi, edx
shl edi, 4
add edi, ecx
mov bx, word [ebp + edi*2 + 0x325b0]
xor edi, edi
mov di, word [ebp + edx*2 + 0x32730]
xor ebx, 0x7f0
shr ebx, 4
mov dword [esp + 0x50], ebx
mov ebx, edi
mov edi, dword [esp + 0x50]
xor ebx, 0x7f0
shr ebx, 4
mov edi, dword [ebp + edi*4 + 0x30ea0]
add edi, dword [ebp + ebx*4 + 0x30ea0]
mov ebx, dword [esp + 0x80]
add edi, eax
mov eax, dword [esp + 0x38]
add eax, esi
lea ebx, [eax + ebx + 1]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x4c], ebx
jae 0x667b42
lea eax, [eax + eax*2]
shl eax, 4
lea eax, [eax + ebp + 0x6a0]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
sub ebx, eax
add eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
add eax, 0x30
dec ebx
mov dword [eax], 0x40000000
jne 0x667b32
mov ebx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push ecx
push 0
push ebp
call fcn.00668230
lea edx, [ebx + ebx*2]
add eax, edi
shl edx, 4
lea ecx, [edx + ebp + 0x6a0]
mov edx, dword [edx + ebp + 0x6a0]
cmp eax, edx
jae 0x667b97
mov dword [ecx], eax
mov eax, dword [esp + 0x80]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x1c], 0
lea edx, [esi + eax + 1]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x18], edx
mov edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 4
mov dword [esp + 0x1c], eax
jb 0x667881
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
cmp edi, ecx
jbe 0x667be1
xor eax, eax
lea edx, [ebp + 0x310a0]
mov dword [esp + 0x20], eax
mov edi, ecx
cmp ecx, dword [edx]
jbe 0x667bd3
add eax, 2
mov dword [esp + 0x20], eax
cmp ecx, dword [edx + eax*4]
ja 0x667bc7
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x20]
add eax, 2
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x48]
cmp edi, esi
jb 0x667fc4
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x58]
xor ecx, ecx
mov cx, word [ebp + edx*2 + 0x32730]
shr ecx, 4
mov eax, dword [ebp + ecx*4 + 0x30ea0]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
add eax, edi
cmp ecx, eax
jae 0x667c41
lea edx, [ecx + ecx*2]
sub eax, ecx
shl edx, 4
add ecx, eax
lea edx, [edx + ebp + 0x6a0]
mov dword [esp + 0x10], ecx
add edx, 0x30
dec eax
mov dword [edx], 0x40000000
jne 0x667c35
mov edx, dword [ebp + 0x310a0]
lea ecx, [ebp + 0x310a0]
xor eax, eax
cmp esi, edx
mov dword [esp + 0x1c], eax
jbe 0x667c68
mov edx, dword [ecx + 8]
add ecx, 8
add eax, 2
cmp esi, edx
ja 0x667c57
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + eax*4 + 0x310a4]
lea edx, [ebp + 0x310a0]
mov ecx, 0x1ffff
mov edi, eax
sub ecx, eax
xor ebx, ebx
shr ecx, 0x1f
neg ecx
and ecx, 0xa
mov dword [esp + 0x40], eax
add ecx, 6
shr edi, cl
mov bl, byte [edi + ebp + 0x306a0]
lea edi, [esi + 1]
lea ecx, [ebx + ecx*2]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
lea edx, [edx + ecx*4]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov edx, ecx
shl edx, 4
add edx, ecx
shl edx, 4
add edx, esi
lea ecx, [ebp + edx*4 + 0x33010]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x3c], ecx
lea ecx, [esi + edx]
lea ecx, [ecx + ecx*2]
shl ecx, 4
lea edx, [ecx + ebp + 0x6bc]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x58]
mov esi, dword [ecx]
add edx, esi
lea esi, [edi - 1]
cmp esi, 5
lea ecx, [esi - 2]
jb 0x667cff
mov ecx, 3
cmp eax, 0x80
jae 0x667d14
shl ecx, 7
add ecx, eax
add edx, dword [ebp + ecx*4 + 0x31d50]
jmp 0x667d32
mov ebx, dword [esp + 0x4c]
shl ecx, 6
add ecx, ebx
mov ebx, eax
and ebx, 0xf
mov ecx, dword [ebp + ecx*4 + 0x31950]
add ecx, dword [ebp + ebx*4 + 0x32550]
add edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], edx
cmp edx, dword [ecx - 0x1c]
jae 0x667d58
mov dword [ecx - 0x1c], edx
mov edx, dword [esp + 0x80]
mov dword [ecx - 4], edx
lea edx, [eax + 4]
mov dword [ecx], edx
mov dword [ecx - 0x14], 0
mov ecx, dword [esp + 0x18]
cmp esi, dword [ecx]
jne 0x667fa8
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ecx, ebx
mov esi, edi
sub ecx, eax
mov eax, dword [ebp + 0x31934]
add eax, edi
dec ecx
cmp eax, edx
jbe 0x667d81
mov eax, edx
cmp edi, eax
jae 0x667da1
sub ebx, ecx
lea edx, [ecx + edi]
mov dword [esp + 0x54], ebx
jmp 0x667d94
mov ebx, dword [esp + 0x54]
mov bl, byte [ebx + edx]
cmp bl, byte [edx]
jne 0x667da1
inc esi
inc edx
cmp esi, eax
jb 0x667d90
or edx, 0xffffffff
lea eax, [edi - 1]
sub edx, eax
add esi, edx
cmp esi, 2
mov dword [esp + 0x44], esi
jb 0x667f54
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x84]
mov ebx, dword [eax*4 + 0x100737c8]
lea eax, [ebp + 0x30ea0]
push eax
xor eax, eax
mov al, byte [ecx + edi - 1]
xor ecx, ecx
push eax
mov eax, dword [esp + 0x2c]
lea esi, [edx + edi - 1]
mov edx, dword [ebp + 0x325a8]
mov cl, byte [eax + edi - 1]
mov dword [esp + 0x5c], esi
push ecx
xor ecx, ecx
mov cl, byte [eax + edi - 2]
and esi, edx
mov edx, dword [ebp + 0x32598]
mov eax, ecx
mov cl, 8
sub cl, dl
mov edx, dword [ebp + 0x325a4]
shr eax, cl
mov ecx, dword [esp + 0x60]
and edx, ecx
mov ecx, dword [ebp + 0x32598]
shl edx, cl
add eax, edx
mov edx, dword [ebp + 0x325ac]
lea eax, [eax + eax*2]
shl eax, 9
add eax, edx
push eax
call fcn.00668060
mov ecx, ebx
xor edx, edx
shl ecx, 4
add ecx, esi
mov dx, word [ebp + ecx*2 + 0x325b0]
shr edx, 4
mov ecx, dword [ebp + edx*4 + 0x30ea0]
mov edx, dword [ebx*4 + 0x10073798]
add eax, ecx
mov ecx, dword [esp + 0x48]
add eax, ecx
lea ecx, [esi + 1]
mov esi, dword [ebp + 0x325a8]
xor ebx, ebx
and ecx, esi
mov esi, edx
shl esi, 4
add esi, ecx
mov bx, word [ebp + esi*2 + 0x325b0]
xor esi, esi
mov si, word [ebp + edx*2 + 0x32730]
xor ebx, 0x7f0
shr ebx, 4
mov dword [esp + 0x54], ebx
mov ebx, esi
mov esi, dword [esp + 0x54]
xor ebx, 0x7f0
shr ebx, 4
mov esi, dword [ebp + esi*4 + 0x30ea0]
add esi, dword [ebp + ebx*4 + 0x30ea0]
mov ebx, dword [esp + 0x80]
add esi, eax
mov eax, dword [esp + 0x44]
lea eax, [eax + edi - 1]
lea ebx, [eax + ebx + 1]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x50], ebx
jae 0x667efd
lea eax, [eax + eax*2]
shl eax, 4
lea eax, [eax + ebp + 0x6a0]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
sub ebx, eax
add eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
add eax, 0x30
dec ebx
mov dword [eax], 0x40000000
jne 0x667eed
mov ebx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push ecx
push 0
push ebp
call fcn.00668230
lea edx, [ebx + ebx*2]
add eax, esi
shl edx, 4
lea ecx, [edx + ebp + 0x6a0]
mov edx, dword [edx + ebp + 0x6a0]
cmp eax, edx
jae 0x667f54
mov edx, dword [esp + 0x80]
mov dword [ecx], eax
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x1c], 0
lea eax, [edi + edx]
mov edx, dword [esp + 0x40]
mov dword [ecx + 0x18], eax
mov eax, 1
add edx, 4
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, 2
add edx, 8
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
je 0x667fc4
mov eax, edx
mov eax, dword [eax + 4]
cmp eax, 0x80
mov dword [esp + 0x40], eax
jb 0x667fa8
mov ecx, 0x1ffff
mov edx, eax
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
shr edx, cl
xor ebx, ebx
mov bl, byte [edx + ebp + 0x306a0]
lea ecx, [ebx + ecx*2]
mov dword [esp + 0x4c], ecx
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add esi, 4
add edx, 0x30
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edx
inc edi
jmp 0x667ce3
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x80], eax
mov esi, eax
jne 0x66734a
jmp 0x667ff3
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x694], eax
mov dword [ebp + 0x698], ecx
mov edx, dword [esp + 0x88]
push esi
push edx
push ebp
call fcn.00668270
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0xc