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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x34
push 0
push esi
mov dword [esp + 0x48], 0xffffff9d
mov dword [esp + 0x4c], 1
call fcn.00428920
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [esi + 0x24], eax
fild dword [edi]
add esp, 0xc
fmul qword [0x4502c0]
call fcn.0042d280
fstp qword [esp + 0x70]
fld qword [0x44a6e8]
call fcn.0042d280
fdivr qword [esp + 0x70]
sub esp, 8
fadd qword [0x446418]
fstp qword [esp]
call fcn.004281f0
fsub qword [0x446410]
add esp, 8
call fcn.00428140
fild dword [ebp + 0x18]
mov ebx, eax
mov dword [esi + 0x20], ebx
fstp dword [esp + 0x50]
fild dword [ebp + 0x14]
fst qword [esp + 0x68]
fld dword [esp + 0x50]
fmul qword [0x4502b8]
fmul qword [0x446418]
fdivrp st(1)
call fcn.0042d280
fmul qword [0x450250]
lea ecx, [ebx + 1]
mov edx, 1
fsub qword [0x450260]
shl edx, cl
mov dword [esp + 0x5c], edx
fild dword [esp + 0x5c]
fmulp st(1)
fisub dword [edi]
call fcn.00428140
fild dword [ebp + 0x14]
mov edi, eax
mov dword [esi + 0x1c], edi
fadd qword [0x4502b8]
fmul dword [esp + 0x50]
fmul qword [0x446418]
fdiv qword [esp + 0x68]
call fcn.0042d280
fmul qword [0x450250]
mov ecx, ebx
inc ecx
fsub qword [0x450260]
mov eax, 1
shl eax, cl
mov dword [esp + 0x5c], eax
fild dword [esp + 0x5c]
fmulp st(1)
fadd qword [0x446418]
call fcn.00428140
mov ebx, dword [ebp + 0x14]
sub eax, edi
inc eax
lea edi, [ebx*4]
push edi
mov dword [esi + 0x28], eax
call fcn.00427f9b
push edi
mov dword [esi + 0x10], eax
call fcn.00427f9b
push edi
mov dword [esi + 0x14], eax
call fcn.00427f9b
fld1
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
fstp dword [esi + 0x30]
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp eax, 0x6590
mov dword [esi + 4], ecx
mov dword [esi], ebx
mov dword [esi + 0x2c], eax
jge 0x41781c
fldz
jmp 0x417838
cmp eax, 0x9470
jge 0x41782b
fld dword [0x4502b4]
jmp 0x417838
cmp eax, 0xb3b0
jle 0x41783b
fld dword [0x4502b0]
fstp dword [esi + 0x30]
fild dword [ebp + 0x18]
xor edi, edi
mov dword [esp + 0x38], edi
fstp qword [esp + 0x70]
mov edx, dword [esp + 0x38]
inc edx
mov dword [esp + 0x50], edx
fild dword [esp + 0x50]
fmul qword [0x450248]
fsub qword [0x44a6e8]
fadd qword [0x450260]
fmul qword [0x450258]
call fcn.0042d3cc
fadd st(0), st(0)
sub esp, 8
fmul qword [esp + 0x70]
fdiv qword [esp + 0x78]
fadd qword [0x446418]
fstp qword [esp]
call fcn.004281f0
add esp, 8
call fcn.00428140
cmp edi, eax
mov edx, dword [esp + 0x38]
fld dword [edx*4 + 0x44a6f8]
fstp dword [esp + 0x38]
jge 0x4179a9
fld dword [edx*4 + 0x44a6fc]
mov ecx, eax
fld dword [esp + 0x38]
sub ecx, edi
cmp ecx, 4
fld st(0)
fsubp st(2)
mov dword [esp + 0x5c], ecx
fild dword [esp + 0x5c]
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fld qword [0x446d68]
jl 0x417999
lea ecx, [edi + 2]
jmp 0x4178e9
fxch st(2)
cmp edi, ebx
jge 0x417b1a
mov edx, dword [esi + 0x10]
fld st(2)
fadd st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fstp dword [edx + edi*4]
lea edx, [ecx - 1]
cmp edx, ebx
fld st(1)
faddp st(3)
fxch st(2)
fstp dword [esp + 0x38]
jge 0x417afe
cmp ecx, ebx
fld dword [esp + 0x38]
mov edx, dword [esi + 0x10]
fld st(0)
fadd st(3)
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fstp dword [edx + edi*4 + 4]
fadd st(1)
fstp dword [esp + 0x38]
jge 0x417b06
fld dword [esp + 0x38]
mov edx, dword [esi + 0x10]
fld st(0)
fadd st(3)
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fstp dword [edx + edi*4 + 8]
lea edx, [ecx + 1]
cmp edx, ebx
fadd st(1)
fstp dword [esp + 0x38]
jge 0x417b10
fld dword [esp + 0x38]
mov edx, dword [esi + 0x10]
fld st(0)
add edi, 4
fadd st(3)
add ecx, 4
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fstp dword [edx + edi*4 - 4]
lea edx, [eax - 3]
cmp edi, edx
fadd st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
jl 0x4178e7
jmp 0x41799b
fxch st(2)
cmp edi, eax
jl 0x417ad1
fstp st(1)
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x50]
cmp eax, 0x57
mov dword [esp + 0x38], eax
jl 0x417848
mov edx, ebx
sub edx, edi
cmp edx, 4
jl 0x4179fb
lea ecx, [ebx - 3]
mov eax, dword [esi + 0x10]
fld dword [eax + edi*4 - 4]
lea eax, [eax + edi*4]
fstp dword [eax]
mov edx, dword [esi + 0x10]
fld dword [edx + edi*4]
lea eax, [edx + edi*4]
fstp dword [eax + 4]
mov eax, dword [esi + 0x10]
fld dword [eax + edi*4 + 4]
add edi, 4
cmp edi, ecx
fstp dword [eax + edi*4 - 8]
mov eax, dword [esi + 0x10]
fld dword [eax + edi*4 - 8]
fstp dword [eax + edi*4 - 4]
jl 0x4179c6
cmp edi, ebx
jge 0x417a11
nop
mov eax, dword [esi + 0x10]
fld dword [eax + edi*4 - 4]
lea eax, [eax + edi*4]
inc edi
fstp dword [eax]
cmp edi, ebx
jl 0x417a00
mov dword [esp + 0x38], 0
test ebx, ebx
jle 0x417c84
mov eax, dword [ebp + 0x18]
lea ecx, [ebx + ebx]
cdq
idiv ecx
mov edi, eax
mov ebx, eax
imul ebx, edi
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x4c]
fild dword [esp + 0x50]
imul edx, dword [esp + 0x38]
fstp dword [esp + 0x48]
mov dword [esp + 0x5c], edx
fild dword [esp + 0x5c]
fmul qword [0x4502a8]
call fcn.0042d460
fmul qword [0x4502a0]
fstp qword [esp + 0x60]
fld dword [esp + 0x48]
fmul qword [0x450298]
call fcn.0042d460
fmul qword [0x450290]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x78]
fadd qword [esp + 0x60]
mov edx, dword [esp + 0x3c]
fld dword [esp + 0x48]
add eax, edx
cmp eax, dword [esp + 0x38]
fmul qword [0x450288]
faddp st(1)
fstp dword [esp + 0x5c]
jge 0x417ba1
fld dword [esp + 0x5c]
mov dword [esp + 0x58], eax
fsub dword [ecx + 0x70]
mov ecx, edx
mov eax, edi
imul eax, ecx
fstp qword [esp + 0x78]
mov dword [esp + 0x48], eax
mov eax, ebx
imul eax, ecx
mov dword [esp + 0x44], eax
jmp 0x417b2b
fld dword [esp + 0x38]
cmp edi, ebx
jge 0x4179a3
mov ecx, dword [esi + 0x10]
fld st(0)
fadd st(3)
inc edi
cmp edi, eax
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fstp dword [ecx + edi*4 - 4]
fadd st(1)
fstp dword [esp + 0x38]
jl 0x417acd
fstp st(0)
jmp 0x4179a7
fstp st(0)
inc edi
jmp 0x4179a7
fstp st(0)
add edi, 2
jmp 0x4179a7
fstp st(0)
add edi, 3
jmp 0x4179a7
fstp st(1)
fstp st(0)
jmp 0x4179a7
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
fild dword [esp + 0x48]
imul eax, ecx
fstp dword [esp + 0x54]
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fmul qword [0x4502a8]
call fcn.0042d460
fmul qword [0x4502a0]
fstp qword [esp + 0x60]
fld dword [esp + 0x54]
fmul qword [0x450298]
call fcn.0042d460
fmul qword [0x450290]
fadd qword [esp + 0x60]
fld dword [esp + 0x54]
fmul qword [0x450288]
faddp st(1)
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 5
jp 0x417b9e
mov eax, dword [esp + 0x58]
inc dword [esp + 0x3c]
add dword [esp + 0x44], ebx
add dword [esp + 0x48], edi
inc eax
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
jl 0x417b23
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x40]
cmp eax, dword [ebp + 0x14]
jg 0x417c53
mov ecx, dword [ecx + 0x7c]
mov edx, dword [esp + 0x38]
add ecx, edx
mov dword [esp + 0x60], ecx
mov ecx, edi
imul ecx, eax
mov dword [esp + 0x48], ecx
mov ecx, ebx
imul ecx, eax
mov dword [esp + 0x54], ecx
cmp eax, dword [esp + 0x60]
jl 0x417c3b
fild dword [esp + 0x48]
imul ecx, eax
fstp dword [esp + 0x58]
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fmul qword [0x4502a8]
call fcn.0042d460
fmul qword [0x4502a0]
fstp qword [esp + 0x78]
fld dword [esp + 0x58]
fmul qword [0x450298]
call fcn.0042d460
fmul qword [0x450290]
mov eax, dword [ebp + 0xc]
fadd qword [esp + 0x78]
fld dword [esp + 0x58]
fmul qword [0x450288]
faddp st(1)
fld dword [eax + 0x74]
fadd dword [esp + 0x5c]
fcompp
fnstsw ax
test ah, 0x41
mov eax, dword [esp + 0x40]
jne 0x417c53
mov ecx, dword [esp + 0x54]
add dword [esp + 0x48], edi
inc eax
add ecx, ebx
cmp eax, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], ecx
jle 0x417bcd
mov ecx, dword [esp + 0x3c]
add dword [esp + 0x4c], ebx
add dword [esp + 0x50], edi
shl ecx, 0x10
lea edx, [ecx + eax - 0x10001]
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
jl 0x417a3b
mov ebx, dword [ebp + 0x14]
fld qword [0x446418]
xor edi, edi
mov dword [esp + 0x38], edi
test ebx, ebx
jle 0x417cec
fild dword [esp + 0x38]
fadd qword [0x4502b8]
fmulp st(1)
fmul qword [esp + 0x70]
fdiv qword [esp + 0x68]
call fcn.0042d280
fmul qword [0x450250]
mov ecx, dword [esi + 0x20]
inc ecx
fsub qword [0x450260]
mov edx, 1
shl edx, cl
mov dword [esp + 0x60], edx
fild dword [esp + 0x60]
fmulp st(1)
fld qword [0x446418]
fadd st(1), st(0)
fxch st(1)
call fcn.00428140
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebx
mov dword [esp + 0x38], edi
jl 0x417c94
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x1c]
sub esp, 8
fstp dword [esp + 4]
fld dword [eax + 0x18]
fstp dword [esp]
push ebx
push ecx
fmul qword [esp + 0x80]
lea ecx, [eax + 0x24]
fdiv qword [esp + 0x78]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fstp dword [esp]
call fcn.00416a90
push 0xc
mov dword [esi + 8], eax
call fcn.00427f9b
add esp, 0x14
mov dword [esi + 0xc], eax
xor edi, edi
lea eax, [ebx*4]
push eax
call fcn.00427f9b
mov edx, dword [esi + 0xc]
mov dword [edi + edx], eax
add edi, 4
add esp, 4
cmp edi, 0xc
jl 0x417d31
xor edi, edi
mov dword [esp + 0x38], edi
test ebx, ebx
jle 0x417e6c
fld qword [esp + 0x68]
fadd st(0), st(0)
fstp qword [esp + 0x78]
fild dword [esp + 0x38]
fadd qword [0x446418]
fmul qword [esp + 0x70]
fdiv qword [esp + 0x78]
call fcn.0042d280
fmul qword [0x450250]
fsub qword [0x450260]
fadd st(0), st(0)
fstp dword [esp + 0x3c]
fldz
fld dword [esp + 0x3c]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x417dab
fstp st(0)
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
jmp 0x417dca
fstp st(1)
fld dword [0x450284]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x417dc8
fstp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
jmp 0x417dca
fstp st(0)
fld st(0)
call fcn.00428140
mov ecx, dword [esi + 4]
mov dword [esp + 0x60], eax
fisub dword [esp + 0x60]
inc edi
cmp edi, ebx
mov dword [esp + 0x38], edi
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fld st(0)
fld1
fsubrp st(1)
fld dword [ecx + eax*4 + 0x88]
fmul st(2)
fld dword [ecx + eax*4 + 0x84]
mov ecx, dword [esi + 0xc]
fmul st(2)
mov edx, dword [ecx]
faddp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fstp dword [edx + edi*4 - 4]
mov ecx, dword [esi + 4]
fld dword [ecx + eax*4 + 0xcc]
fmul st(2)
fld dword [ecx + eax*4 + 0xc8]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 4]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fstp dword [edx + edi*4 - 4]
mov ecx, dword [esi + 4]
fld dword [ecx + eax*4 + 0x110]
fmulp st(2)
fmul dword [ecx + eax*4 + 0x10c]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 8]
faddp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fstp dword [ecx + edi*4 - 4]
jl 0x417d67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret