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

Disassembly:
push 0xffffffffffffffff
push 0x880138
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x7c]
xor esi, esi
cmp eax, esi
je 0x66da7b
push eax
call fcn.0080d523
add esp, 4
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x7c], esi
cmp ecx, esi
je 0x66debc
mov ebp, dword [edi + 0x2c]
cmp ebp, esi
je 0x66debc
mov ebx, dword [esp + 0x44]
fld qword [esp + 0x50]
mov eax, dword [esp + 0x48]
fldz
mov esi, dword [edi + 0x50]
mov edx, dword [edi + 0x68]
and ebx, 7
add ecx, ebx
and eax, 7
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x64]
add esi, 7
sub edx, eax
sub ecx, ebx
and esi, 0xfffffff8
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x70], edx
mov dword [edi + 0x50], esi
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x44], ebx
cmp eax, dword [edi + 0x44]
jne 0x66daea
cmp dword [esp + 0x4c], 0
jne 0x66daea
fcom st(1)
fnstsw ax
test ah, 5
jp 0x66db48
fcomp st(1)
xor ecx, ecx
fnstsw ax
test ah, 5
jp 0x66db13
fmul qword [0x4022d8]
fmul qword [0x43a3f0]
fadd qword [0x405058]
call fcn.00802da0
mov ecx, eax
or ecx, 1
jmp 0x66db15
fstp st(0)
cmp dword [esp + 0x4c], 0
je 0x66db1f
add ecx, 8
lea eax, [ecx + 7]
and eax, 0xfffffff8
lea ecx, [esi + eax]
add dword [esp + 0x48], ecx
lea edx, [ecx + ecx]
add dword [esp + 0x14], edx
add ebx, ecx
lea ecx, [esi + eax]
sub dword [edi + 0x6c], ecx
add esi, eax
add ebp, edx
sub dword [edi + 0x70], esi
mov dword [esp + 0x44], ebx
jmp 0x66db4c
fstp st(1)
fstp st(0)
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + 7]
lea eax, [ebp + 0xe]
sar eax, 3
sar ecx, 3
inc eax
inc ecx
mov dword [edi + 0x78], eax
imul eax, ecx
lea esi, [eax + eax]
push 0x10
push esi
mov dword [edi + 0x74], ecx
call fcn.0080d53d
add esp, 8
mov dword [edi + 0x7c], eax
test eax, eax
je 0x66dcda
push esi
push 0
push eax
call fcn.00802690
lea eax, [edi + 0x30]
mov dword [esp + 0x34], eax
lea eax, [edi + 0x40]
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + ecx*4 + 0x28]
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
cmp ebp, eax
je 0x66dc68
jmp 0x66dbc0
mov ecx, dword [esp + 0x48]
mov eax, dword [ebp + 4]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp]
lea eax, [eax + ecx - 0x40000000]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x20], esi
lea esi, [ecx + ebx - 0x40000000]
lea edx, [edx + ebx - 0x40000000]
mov dword [esp + 0x18], esi
cmp esi, edx
jbe 0x66dc5b
mov ebx, dword [esp + 0x14]
shr eax, 3
imul eax, dword [edi + 0x74]
mov ecx, edx
shr ecx, 3
add eax, ecx
dec esi
shr esi, 3
lea eax, [ebx + eax*2]
add eax, dword [edi + 0x7c]
mov dword [esp + 0x1c], esi
cmp ecx, esi
jne 0x66dc1d
mov cl, byte [esp + 0x18]
sub cl, dl
jmp 0x66dc55
mov bl, cl
add bl, bl
add bl, bl
add bl, bl
sub bl, dl
add bl, 8
add byte [eax], bl
mov ebx, dword [esp + 0x1c]
inc ecx
add eax, 2
cmp ecx, ebx
jae 0x66dc49
mov edx, ebx
sub edx, ecx
lea esp, [esp]
add byte [eax], 8
add eax, 2
dec edx
jne 0x66dc40
mov cl, byte [esp + 0x18]
add bl, bl
add bl, bl
add bl, bl
sub cl, bl
mov ebx, dword [esp + 0x44]
add byte [eax], cl
add ebp, 0x10
cmp ebp, dword [esp + 0x24]
jne 0x66dbc0
dec dword [esp + 0x14]
jns 0x66dba2
fldz
fld qword [esp + 0x50]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x66dd54
sub esp, 8
lea ecx, [esp + 0x30]
fstp qword [esp]
call fcn.0066aa90
mov ecx, dword [edi + 0x74]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], 0
cmp ecx, edx
jl 0x66dd3d
mov eax, dword [edi + 0x78]
cmp eax, edx
jl 0x66dd3d
lea ebp, [ecx + ecx]
imul eax, ebp
push eax
call fcn.007c8558
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x66dce1
mov edx, dword [esp + 0x28]
push edx
call fcn.007c8563
add esp, 4
xor al, al
jmp 0x66dec4
mov eax, dword [edi + 0x40]
mov esi, dword [edi + 0x7c]
mov edx, dword [esp + 0x30]
xor ecx, ecx
cmp eax, dword [edi + 0x44]
push edx
mov edx, dword [edi + 0x78]
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x2c]
add esi, eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [edi + 0x74]
push ecx
push ebp
push edx
push eax
push ebx
push esi
call fcn.0066d020
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [edi + 0x78]
push edx
mov edx, dword [edi + 0x74]
push eax
push ebp
push ecx
push edx
push esi
push ebx
call fcn.0066d120
add esp, 0x40
push ebx
call fcn.007c8563
add esp, 4
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x40], 0xffffffff
call fcn.007c8563
add esp, 4
jmp 0x66dd56
fstp st(0)
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x14], 0
jle 0x66dec2
lea esp, [esp]
mov ecx, dword [edi + 0x74]
cmp ecx, 3
jl 0x66dea7
mov eax, dword [edi + 0x78]
cmp eax, 3
jl 0x66dea7
lea esi, [ecx + ecx]
imul eax, esi
push eax
call fcn.007c8558
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x66dcda
mov ecx, dword [edi + 0x78]
mov edx, dword [edi + 0x7c]
imul ecx, esi
push ecx
push edx
push ebx
call fcn.008030c0
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x78]
xor edx, edx
add esp, 0xc
cmp eax, dword [edi + 0x44]
mov dword [esp + 0x44], 1
setne dl
dec ecx
mov dword [esp + 0x1c], edx
cmp ecx, 1
jle 0x66de9e
lea eax, [edx + ebx]
lea ecx, [eax + esi + 2]
mov eax, 2
sub eax, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov ebp, dword [edi + 0x7c]
add eax, edx
lea eax, [eax + ebp + 2]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x74]
mov ebp, 1
dec eax
cmp eax, ebp
jle 0x66de82
mov eax, dword [esp + 0x24]
add eax, ecx
jmp 0x66de20
movzx ebx, byte [eax + esi]
movzx edx, byte [esi + eax - 4]
add edx, ebx
movzx ebx, byte [ecx + esi]
add edx, ebx
movzx ebx, byte [ecx]
lea edx, [edx + ebx*2]
movzx ebx, byte [eax - 2]
add edx, ebx
movzx ebx, byte [ecx + esi + 2]
lea ebx, [ebx + edx*2]
movzx edx, byte [ecx + esi - 2]
add ebx, edx
movzx edx, byte [eax - 4]
add ebx, edx
movzx edx, byte [eax]
add ebx, edx
mov edx, dword [esp + 0x50]
sar ebx, 4
mov byte [edx], bl
add edx, 2
mov dword [esp + 0x50], edx
mov edx, dword [edi + 0x74]
inc ebp
dec edx
add ecx, 2
add eax, 2
cmp ebp, edx
jl 0x66de20
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x78]
inc dword [esp + 0x44]
add dword [esp + 0x48], esi
add ecx, esi
dec eax
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x44], eax
jl 0x66ddf7
push ebx
call fcn.007c8563
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x4c]
jl 0x66dd70
jmp 0x66dec2
mov dword [edi + 0x78], esi
mov dword [edi + 0x74], esi
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x14