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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov eax, edi
mov dword [esp + 0x2c], esi
imul eax, esi
cdq
and edx, 3
mov dword [esp + 0x20], 0
add eax, edx
mov edx, dword [ebp + 0x24]
sar eax, 2
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
push edx
push ecx
call fcn.1006b2c0
add esp, 0x1c
test esi, esi
jbe 0x1006b79a
mov ecx, dword [ebp + 0xc]
lea eax, [edi + edi*2]
mov dword [esp + 0x14], esi
lea eax, [eax + eax*4]
lea ebx, [ecx + 0x1dc]
lea edx, [edi + eax*4]
shl edx, 3
test edi, edi
jbe 0x1006b78d
mov eax, ebx
mov ecx, edi
mov dword [eax], 0
add eax, 0x1e8
dec ecx
jne 0x1006b77f
mov eax, dword [esp + 0x14]
add ebx, edx
dec eax
mov dword [esp + 0x14], eax
jne 0x1006b777
lea eax, [esi - 1]
mov dword [esp + 0x10], 1
cmp eax, 1
mov dword [esp + 0x28], eax
jbe 0x1006b958
lea ecx, [edi + edi*2]
lea eax, [edi - 1]
lea edx, [ecx + ecx*4]
lea ecx, [edi + edx*4]
shl ecx, 3
mov dword [esp + 0x30], ecx
lea ecx, [edi + edi*2 + 3]
lea ecx, [ecx + ecx*4]
lea edx, [edi + ecx*4 + 1]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + edx*8]
mov dword [esp + 0xc], edx
cmp eax, 1
mov dword [esp + 0x38], 1
jbe 0x1006b935
mov ebx, dword [esp + 0xc]
mov esi, dword [ebx]
mov edx, dword [ebx - 0x1e8]
mov eax, esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x1006b91b
mov eax, dword [ebx + 4]
mov edx, dword [ebx - 0x1e4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x1006b91b
mov edx, dword [ebx + 0x1e8]
mov eax, esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x1006b91b
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0x1ec]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x1006b91b
mov eax, dword [esp + 0x30]
mov ecx, ebx
sub ecx, eax
mov eax, esi
sub eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x1006b91b
mov eax, dword [ebx + 4]
mov edx, dword [ecx + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x1006b91b
mov ecx, dword [esp + 0x30]
mov eax, esi
sub eax, dword [ecx + ebx]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x1006b91b
mov eax, dword [ebx + 4]
mov edx, ecx
sub eax, dword [edx + ebx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x1006b91b
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x38]
mov ecx, dword [ebp + 0x14]
push 0x10000
mov eax, dword [eax + 8]
mov esi, eax
push eax
imul esi, dword [esp + 0x18]
add esi, edx
mov edx, dword [ecx + 0x38]
shl esi, 4
add esi, edx
mov dword [esp + 0x20], eax
lea edx, [esi + 1]
push edx
push esi
call dword [0x10151230]
add esp, 0x10
cmp eax, 0x200
jb 0x1006b91b
mov eax, dword [esp + 0x18]
push 0x10000
push eax
add eax, esi
push eax
push esi
call dword [0x10151230]
add esp, 0x10
cmp eax, 0x200
jb 0x1006b91b
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x1dc], 1
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x38]
lea eax, [edi - 1]
inc ecx
add ebx, 0x1e8
cmp ecx, eax
mov dword [esp + 0x38], ecx
jb 0x1006b7ef
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add esi, edx
mov edx, dword [esp + 0x28]
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
jb 0x1006b7da
call dword [0x101510c8]
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, 9
jl 0x1006bea0
fld qword [0x1009a5e8]
fld qword [0x1009a5e8]
fld qword [0x1009a5e8]
fld qword [0x1009a5e8]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], 0
fld qword [0x1009a5e8]
fld qword [0x1009a5e8]
cmp eax, 1
mov dword [esp + 0x4c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
jbe 0x1006bb12
lea eax, [edi + edi*2]
mov ebx, dword [ebp + 0xc]
mov edx, 0x18
lea eax, [eax + eax*4]
lea ecx, [edi + eax*4]
lea eax, [edi + edi*2 + 3]
shl ecx, 3
lea eax, [eax + eax*4]
mov dword [esp + 0x18], ecx
lea eax, [edi + eax*4 + 1]
lea eax, [ebx + eax*8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x10], eax
lea ebx, [edi - 1]
cmp ebx, 1
jbe 0x1006baf6
mov ecx, dword [esp + 0xc]
dec ebx
mov eax, 0x18
mov dword [esp + 0x14], ebx
mov ebx, dword [ecx]
mov dword [esp + 0x38], ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x3c], ebx
mov ebx, dword [ecx + 0x1dc]
cmp ebx, esi
je 0x1006bada
fld qword [esp + 0x48]
fadd qword [0x1009a5d8]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc4], esi
mov esi, eax
mov ebx, edx
imul esi, eax
imul ebx, edx
fstp qword [esp + 0x48]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc0], edx
fild qword [esp + 0xc8]
add esi, ebx
mov dword [esp + 0xd8], esi
xor esi, esi
fst qword [esp + 0xb8]
faddp st(4)
fild qword [esp + 0xc0]
mov dword [esp + 0xdc], esi
fst qword [esp + 0x20]
faddp st(5)
fild qword [esp + 0xd8]
faddp st(6)
fild dword [esp + 0x38]
fst qword [esp + 0x30]
faddp st(1)
fild dword [esp + 0x3c]
fst qword [esp + 0x40]
fmul qword [esp + 0x20]
fld qword [esp + 0x30]
fmul qword [esp + 0xb8]
faddp st(1)
faddp st(2)
fld qword [esp + 0x30]
fmul qword [esp + 0x20]
fld qword [esp + 0x40]
fmul qword [esp + 0xb8]
fsubp st(1)
faddp st(3)
fld qword [esp + 0x40]
fadd qword [esp + 0x70]
fstp qword [esp + 0x70]
mov ebx, dword [esp + 0x14]
add ecx, 0x1e8
add eax, 0x10
dec ebx
mov dword [esp + 0x14], ebx
jne 0x1006ba0b
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
add edx, 0x10
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x1006b9f1
fld st(4)
fmul st(5)
fld st(4)
fmul st(5)
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], esi
cmp edx, 1
faddp st(1)
fld qword [esp + 0x48]
fmul st(7)
fsubp st(1)
fstp qword [esp + 0x40]
fld st(2)
fmul st(5)
fld st(1)
fmul st(7)
fsubp st(1)
fld st(2)
fmul st(5)
faddp st(1)
fstp qword [esp + 0x78]
fld st(0)
fmul st(4)
fld st(2)
fmul qword [esp + 0x48]
fsubp st(1)
fld qword [esp + 0x70]
fmul st(6)
faddp st(1)
fstp qword [esp + 0x80]
fmul st(4)
fld st(2)
fmul qword [esp + 0x48]
fsubp st(1)
fld qword [esp + 0x70]
fmul st(4)
fsubp st(1)
fstp qword [esp + 0x88]
fmul st(3)
fxch st(1)
fmul st(2)
fsubp st(1)
fld qword [esp + 0x70]
fmul st(4)
fsubp st(1)
fstp qword [esp + 0x90]
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [0x1009a5d8]
fdiv qword [esp + 0x40]
fst qword [esp + 0x40]
fld qword [esp + 0x78]
fmul st(1)
fstp qword [esp + 0x78]
fmul qword [esp + 0x80]
fld qword [esp + 0x40]
fmul qword [esp + 0x88]
fst qword [esp + 0x88]
fld qword [esp + 0x40]
fmul qword [esp + 0x90]
fstp qword [esp + 0x90]
fld qword [0x1009a5e8]
fld qword [0x1009a5e8]
jbe 0x1006bcef
lea eax, [edi + edi*2]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x18
lea ecx, [eax + eax*4]
lea eax, [edi + edi*2 + 3]
lea eax, [eax + eax*4]
lea ecx, [edi + ecx*4]
shl ecx, 3
lea eax, [edi + eax*4 + 1]
dec edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
lea eax, [ebx + eax*8]
mov dword [esp + 0x14], eax
lea edx, [edi - 1]
cmp edx, 1
jbe 0x1006bccb
mov ecx, 0x18
dec edx
mov ebx, dword [eax]
mov dword [esp + 0xa8], ebx
mov ebx, dword [eax + 4]
mov dword [esp + 0xac], ebx
mov ebx, dword [eax + 0x1dc]
cmp ebx, esi
je 0x1006bcb8
mov ebx, dword [esp + 0x30]
mov dword [esp + 0xec], esi
inc ebx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xd4], esi
fild qword [esp + 0xe8]
fild qword [esp + 0xd0]
fld st(0)
fmul st(6)
fld st(2)
fmul st(6)
faddp st(1)
fadd qword [esp + 0x78]
fisub dword [esp + 0xa8]
fabs
faddp st(3)
fmul st(4)
fsubr qword [esp + 0x90]
fxch st(1)
fmul st(5)
faddp st(1)
fisub dword [esp + 0xac]
fabs
faddp st(2)
add eax, 0x1e8
add ecx, 0x10
dec edx
jne 0x1006bc31
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add eax, ecx
add ebx, 0x10
dec edx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
jne 0x1006bc1f
fild dword [esp + 0x30]
fstp qword [esp + 0x18]
fld qword [0x100d5620]
fmul st(1)
fcomp qword [esp + 0x18]
fnstsw ax
and eax, 0x4100
jne 0x1006bd19
fdiv qword [esp + 0x18]
fstp qword [esp + 0x98]
jmp 0x1006bd31
fstp st(0)
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0x3fd00000
fld qword [0x100d5620]
fmul st(1)
fcomp qword [esp + 0x18]
fnstsw ax
and eax, 0x4100
jne 0x1006bd4c
fdiv qword [esp + 0x18]
jmp 0x1006bd54
fstp st(0)
fld qword [0x100d6c58]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x20], eax
jbe 0x1006be7c
lea eax, [edi + edi*2]
mov dword [esp + 0x10], 8
fld qword [esp + 0x98]
lea edx, [eax + eax*4]
mov dword [esp + 0x14], ecx
lea eax, [edi + edx*4]
shl eax, 3
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
add eax, 0x1dc
mov dword [esp + 0xc], eax
cmp edi, esi
jbe 0x1006be4e
mov ecx, dword [esp + 0xc]
mov edx, 8
mov ebx, edi
mov eax, dword [ecx - 0x1dc]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx - 0x1d8]
mov dword [esp + 0xb4], eax
mov eax, dword [ecx]
cmp eax, esi
je 0x1006be3e
mov eax, dword [esp + 0x10]
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], eax
mov dword [esp + 0x50], edx
fild qword [esp + 0xe0]
mov dword [esp + 0x54], esi
fild qword [esp + 0x50]
fld st(1)
fmul st(5)
fld st(1)
fmul st(7)
faddp st(1)
fadd qword [esp + 0x78]
fisub dword [esp + 0xb0]
fabs
fcomp st(3)
fnstsw ax
and eax, 0x4100
je 0x1006be38
fmul st(4)
fsubr qword [esp + 0x90]
fxch st(1)
fmul st(5)
faddp st(1)
fisub dword [esp + 0xb4]
fabs
fcomp st(2)
fnstsw ax
and eax, 0x4100
je 0x1006be3c
inc dword [esp + 0x20]
jmp 0x1006be3e
fstp st(0)
fstp st(0)
mov dword [ecx], esi
add ecx, 0x1e8
add edx, 0x10
dec ebx
jne 0x1006bda8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], edx
add ecx, 0x10
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x1006bd95
mov eax, dword [esp + 0x20]
fstp st(0)
mov ecx, dword [esp + 0x30]
fstp st(0)
cmp ecx, eax
fstp st(0)
je 0x1006be95
cmp eax, 9
fstp st(0)
jge 0x1006b96d
jmp 0x1006bea0
cmp eax, 9
jge 0x1006c025
fstp st(0)
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x20], esi
mov dword [esp + 0x6c], esi
mov eax, dword [edx + 8]
mov dword [esp + 0x68], esi
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x10]
test ah, 2
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
je 0x1006c11d
cmp dword [esp + 0x28], 1
jbe 0x1006c09c
lea eax, [edi + edi*2]
lea edx, [eax + eax*4]
lea eax, [edi + edx*4]
mov edx, dword [esp + 0xc]
mov ecx, edx
shl ecx, 4
mov dword [esp + 0x48], ecx
lea ecx, [edx + 1]
shl ecx, 4
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0xc]
shl eax, 3
mov dword [esp + 0x30], eax
lea edx, [eax + ecx + 0x1ec]
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
lea eax, [edi - 1]
cmp eax, 1
jbe 0x1006bfd2
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
lea edx, [edi - 2]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x10000
mov esi, dword [eax + 0x38]
add esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esi + 1]
push edx
push esi
call dword [0x10151230]
add esp, 0x10
cmp eax, 0x200
jb 0x1006bfb2
mov eax, dword [esp + 0xc]
push 0x10000
push eax
add eax, esi
push eax
push esi
call dword [0x10151230]
add esp, 0x10
cmp eax, 0x200
jb 0x1006bfb2
mov ecx, dword [ebx - 4]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x58], edx
mov edx, dword [ebx]
mov dword [ebx + 0x1d8], 1
add ecx, edx
inc eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
add ebx, 0x1e8
add ecx, 0x10
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], eax
jne 0x1006bf3d
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x18]
add edx, ecx
dec eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
jne 0x1006bf1e
mov eax, dword [esp + 0x58]
test eax, eax
je 0x1006c00e
cdq
idiv dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1006c09c
cdq
idiv dword [esp + 0x20]
mov dword [esp + 0x5c], eax
jmp 0x1006c09c
fld qword [esp + 0x78]
fadd qword [0x100d0290]
call fcn.10078530
fld qword [esp + 0x90]
fadd qword [0x100d0290]
mov dword [esp + 0x58], eax
call fcn.10078530
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], esi
mov eax, dword [edx]
mov dword [esp + 0x50], eax
fild qword [esp + 0x50]
fst qword [esp + 0x50]
fmul st(1)
fadd qword [0x100d0290]
call fcn.10078530
fstp st(0)
fld qword [esp + 0x50]
fmul qword [esp + 0x88]
mov esi, eax
mov dword [esp + 0x60], esi
fsubr qword [0x100d0290]
call fcn.10078530
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], esi
neg eax
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xa4]
cmp ecx, eax
jle 0x1006c11d
mov ecx, dword [esp + 0x28]
cmp ecx, 1
jbe 0x1006c11d
lea eax, [edi + edi*2]
lea edx, [edi - 1]
mov dword [esp + 0x18], edx
lea eax, [eax + eax*4]
lea edi, [edi + eax*4]
mov eax, dword [ebp + 0xc]
shl edi, 3
dec ecx
lea ebx, [eax + 0x3c4]
lea esi, [edi + eax + 0x3c4]
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x18], 1
jbe 0x1006c10e
mov edx, dword [esp + 0x18]
mov eax, esi
mov ecx, ebx
dec edx
cmp dword [eax - 0x1e8], 0
jne 0x1006c0fa
cmp dword [ecx], 0
je 0x1006c100
mov dword [eax], 0
add ecx, 0x1e8
add eax, 0x1e8
dec edx
jne 0x1006c0ec
mov eax, dword [esp + 0x2c]
add esi, edi
add ebx, edi
dec eax
mov dword [esp + 0x2c], eax
jne 0x1006c0dc
mov eax, dword [ebp + 8]
lea esi, [esp + 0x58]
mov edi, eax
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret