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

Disassembly:
sub esp, 0xe8
fld dword [esp + 0xec]
push ebx
fld1
push ebp
fdivrp st(1)
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 8], ebp
push edi
fstp dword [esp + 0x34]
fld dword [0x6dd850]
fst dword [esp + 0x48]
fstp dword [esp + 0x4c]
fld dword [0x798424]
fst dword [esp + 0x38]
fstp dword [esp + 0x3c]
jle 0x6877a9
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
push edi
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00669410
mov edx, dword [eax]
mov eax, dword [eax + 4]
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x58], edx
push ecx
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x64], eax
call fcn.00669490
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0x18
add edi, 0xc
sub ebx, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jne 0x687764
fld dword [esp + 0x38]
fsub dword [esp + 0x48]
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fxch st(1)
call fcn.00698370
fld dword [esp + 0x3c]
fsub dword [esp + 0x4c]
lea edi, [eax + 1]
mov dword [esi + 0xc], edi
fmulp st(1)
call fcn.00698370
mov ecx, dword [esi]
inc eax
mov dword [esi + 0x10], eax
imul eax, edi
add eax, eax
add eax, eax
push eax
call fcn.0067bc10
mov ecx, dword [esi + 0x10]
imul ecx, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
test ecx, ecx
jle 0x687812
jmp 0x687800
mov edx, dword [esi + 0x14]
mov dword [edx + eax*4], ebp
mov ecx, dword [esi + 0x10]
imul ecx, dword [esi + 0xc]
inc eax
cmp eax, ecx
jl 0x687800
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
imul eax, eax
add eax, eax
add eax, eax
shl eax, 4
mov edi, eax
push edi
mov dword [esp + 0x20], ecx
call fcn.0067bc10
add edi, eax
cmp dword [esi + 8], ebp
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
jle 0x687a1c
mov dword [esp + 0x10], ebp
mov edi, dword [esi + 4]
add edi, dword [esp + 0x10]
fld dword [edi]
fsub dword [esp + 0x48]
fstp dword [esp + 0x38]
fld dword [edi + 4]
fsub dword [esp + 0x4c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x38]
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
mov dword [edi], edx
fmul dword [esp + 0x3c]
fstp dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
fld dword [edi]
mov dword [edi + 4], eax
mov ebx, dword [esi + 0xc]
lea ebp, [ebx - 1]
call fcn.00698370
cmp eax, ebp
jl 0x6878a8
mov eax, ebp
mov ebp, dword [esi + 0x10]
fld dword [edi + 4]
xor ecx, ecx
test eax, eax
setl cl
dec ebp
dec ecx
and ecx, eax
mov dword [esp + 0x18], ecx
call fcn.00698370
cmp eax, ebp
jge 0x6878c8
mov ebp, eax
mov ecx, dword [esp + 0x18]
xor eax, eax
test ebp, ebp
setl al
lea edx, [esp + 0x68]
mov dword [esp + 0x68], ecx
push edx
mov dword [esp + 0x78], edi
dec eax
and eax, ebp
imul ebx, eax
add ebx, ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
call fcn.00687670
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], 0xc
inc eax
cmp eax, dword [esi + 8]
mov dword [esp + 0x30], eax
jl 0x687852
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x28]
jae 0x687a18
mov edi, edi
mov ebx, dword [ecx + 8]
mov edx, dword [esi + 0x14]
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx]
mov ebp, dword [ecx + 4]
add ecx, 0x10
cmp dword [edx + ebx*4], 0
lea edx, [edx + ebx*4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
jne 0x687a0e
mov dword [edx], eax
test edi, edi
jle 0x687978
lea ecx, [edi - 1]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ecx
lea edx, [ebx - 1]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], edx
call fcn.00687670
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test ebp, ebp
jle 0x6879aa
lea ecx, [ebp - 1]
mov edx, ebx
sub edx, dword [esi + 0xc]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], ecx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edx
call fcn.00687670
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
dec edx
cmp edi, edx
jge 0x6879de
lea ecx, [edi + 1]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x58], ecx
lea edx, [ebx + 1]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], edx
call fcn.00687670
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x10]
dec edx
cmp ebp, edx
jge 0x687a0e
mov ecx, dword [esi + 0xc]
add ecx, ebx
lea edx, [esp + 0x68]
inc ebp
mov dword [esp + 0x70], ecx
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], eax
call fcn.00687670
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x28]
jb 0x687920
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x10]
add edx, dword [esi + 0xc]
mov dword [esp + 0x30], 0
mov dword [esp + 0x48], edx
test edx, edx
jle 0x687dae
xor edx, edx
cmp dword [esi + 0x10], edx
mov dword [esp + 0x10], edx
jle 0x687af0
mov eax, dword [esi + 0xc]
dec eax
xor ebx, ebx
test eax, eax
jle 0x687ade
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
imul edi, edx
add edi, ebx
mov ebp, dword [ecx + edi*4]
lea eax, [ecx + edi*4]
mov eax, dword [eax + 4]
cmp ebp, eax
je 0x687ad1
mov dword [esp + 0xdc], edx
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], eax
call fcn.00687670
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xe8]
lea eax, [ebx + 1]
mov dword [esp + 0xec], ecx
inc edi
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf8], ebp
call fcn.00687670
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
inc ebx
dec eax
cmp ebx, eax
jl 0x687a53
inc edx
cmp edx, dword [esi + 0x10]
mov dword [esp + 0x10], edx
jl 0x687a45
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x10]
xor edx, edx
dec eax
mov dword [esp + 0x10], edx
test eax, eax
jle 0x687baa
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jle 0x687b95
lea ecx, [ecx]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov edi, eax
imul edi, edx
add edi, ebx
mov ebp, dword [ecx + edi*4]
add eax, edi
mov ecx, dword [ecx + eax*4]
cmp ebp, ecx
je 0x687b8b
mov dword [esp + 0xa4], ecx
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], edi
call fcn.00687670
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x78]
inc edx
add eax, edi
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ebp
call fcn.00687670
mov edx, dword [esp + 0x10]
inc ebx
cmp ebx, dword [esi + 0xc]
jl 0x687b10
mov eax, dword [esi + 0x10]
inc edx
dec eax
cmp edx, eax
mov dword [esp + 0x10], edx
jl 0x687b02
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x17], 0
cmp ecx, dword [esp + 0x28]
jae 0x687daa
lea esp, [esp]
mov ebp, dword [ecx + 8]
mov eax, dword [esi + 0x14]
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
lea eax, [eax + ebp*4]
mov edi, ecx
mov edi, dword [edi + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
add ecx, 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ecx
cmp eax, edi
je 0x687d86
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [eax]
fld dword [esp + 0x18]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x34]
fild dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [eax + 4]
fld dword [esp + 0x18]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [edi]
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x58]
fsubr dword [edi + 4]
fstp dword [esp + 0x68]
fld dword [esp + 0x18]
fld dword [esp + 0x34]
fld dword [esp + 0x68]
fld dword [esp + 0x58]
fld st(2)
fmulp st(3)
fld st(3)
fmulp st(4)
fxch st(2)
faddp st(3)
fxch st(2)
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fcompp
fnstsw ax
test ah, 5
jp 0x687d86
mov eax, dword [esp + 0x38]
mov dword [eax], edi
test ebx, ebx
jle 0x687cc0
lea ecx, [ebx - 1]
mov dword [esp + 0xbc], edx
lea eax, [esp + 0xb8]
mov dword [esp + 0xb8], ecx
lea edx, [ebp - 1]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], edi
call fcn.00687670
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x687cff
dec edx
mov ecx, ebp
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x8c], edx
lea edx, [esp + 0x88]
mov dword [esp + 0x90], ecx
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x98], edi
call fcn.00687670
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
dec eax
cmp ebx, eax
jge 0x687d42
lea ecx, [ebx + 1]
mov dword [esp + 0xac], edx
lea eax, [esp + 0xa8]
mov dword [esp + 0xa8], ecx
lea edx, [ebp + 1]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], edi
call fcn.00687670
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
dec eax
cmp edx, eax
jge 0x687d81
mov ecx, dword [esi + 0xc]
inc edx
add ecx, ebp
mov dword [esp + 0xcc], edx
lea edx, [esp + 0xc8]
mov dword [esp + 0xd0], ecx
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd8], edi
call fcn.00687670
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x17], 1
cmp ecx, dword [esp + 0x28]
jb 0x687bc0
cmp byte [esp + 0x17], 0
je 0x687daa
mov eax, dword [esp + 0x30]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
jl 0x687a36
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
mov dword [esp + 4], eax
jmp fcn.0067bba0