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

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x8c]
fld dword [eax + 0x28]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
fstp dword [esp]
fld dword [eax + 0x2c]
push ebx
mov ebx, dword [esp + 0xa0]
fstp dword [esp + 0x28]
fld dword [eax + 0x30]
push ebp
mov ebp, dword [esp + 0xa0]
fstp dword [esp + 0x34]
push esi
push edi
lea eax, [ebx + ecx]
push eax
lea eax, [edx + ebp]
push eax
push ecx
push edx
lea ecx, [esp + 0x90]
push ecx
call dword [0x435258]
fld dword [esp + 0x10]
call fcn.00431580
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp + 0x30]
fld dword [esp + 0x10]
call fcn.00431450
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp + 0x38]
fild dword [esp + 0xa8]
fmul dword [esp + 0x3c]
call fcn.004312a0
fild dword [esp + 0xac]
cdq
sub eax, edx
fmul dword [esp + 0x34]
mov esi, eax
sar esi, 1
mov dword [esp + 0x2c], esi
call fcn.004312a0
fild dword [esp + 0x2c]
cdq
sub eax, edx
mov edi, eax
mov eax, ebp
mov ebp, dword [esp + 0xa4]
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sar edi, 1
sub eax, edx
mov dword [esp + 0x28], edi
mov ebx, eax
sar ecx, 1
fild dword [esp + 0x28]
sub dword [esp + 0xa0], ecx
sar ebx, 1
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], ebx
sub ebp, ebx
call fcn.0043167a
sub esp, 8
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld st(0)
fld dword [esp + 0x18]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 4]
mov edx, edi
fsubrp st(1)
mov eax, esi
imul edx, edi
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp]
imul eax, esi
add edx, eax
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
call fcn.00431350
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
push ecx
lea edi, [esp + 0x6c]
fstp dword [esp]
call fcn.0041f090
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
jge 0x41f536
lea edi, [eax + ebp]
add edi, ebx
mov dword [esp + 0x10], edi
fild dword [esp + 0x2c]
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
mov ebx, eax
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
mov dword [esp + 0x28], eax
fld st(0)
fmul dword [esp + 0x38]
fstp dword [esp + 0x40]
fmul dword [esp + 0x30]
fstp dword [esp + 0x48]
jge 0x41f51e
fild dword [esp + 0xb0]
fstp dword [esp + 0x44]
fild dword [esp + 0xb4]
fstp dword [esp + 0x4c]
fild dword [esp + 0xa8]
fstp dword [esp + 0x50]
fild dword [esp + 0xac]
fstp dword [esp + 0x54]
fild dword [esp + 0x28]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld st(0)
fmul dword [esp + 0x30]
fadd dword [esp + 0x40]
fdiv dword [esp + 0x34]
fadd dword [esp + 0x44]
fstp dword [esp + 0x24]
fld dword [esp + 0x38]
fmulp st(1)
fsubr dword [esp + 0x48]
fdiv dword [esp + 0x3c]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x18]
fld dword [esp + 0x50]
fadd dword [esp + 0x24]
fst qword [esp + 0x58]
call fcn.004312a0
fld dword [esp + 0x54]
mov ebp, eax
fadd dword [esp + 0x18]
mov dword [esp + 0x14], ebp
fst qword [esp + 0x18]
call fcn.004312a0
mov esi, eax
push esi
push ebp
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x30], esi
call dword [0x435254]
test eax, eax
je 0x41f50b
fild dword [esp + 0x14]
fsubr qword [esp + 0x58]
fstp dword [esp + 0x14]
fild dword [esp + 0x24]
fsubr qword [esp + 0x18]
fstp dword [esp + 0x18]
fldz
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x41f3f9
fadd qword [0x4388e0]
dec ebp
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 5
jp 0x41f41f
fxch st(1)
dec esi
fadd qword [0x4388e0]
mov dword [esp + 0x24], esi
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fxch st(1)
mov edx, dword [esp + 0xa0]
add ebx, edx
add ebx, dword [esp + 0xa8]
js 0x41f459
test edi, edi
jl 0x41f459
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x18]
cmp ebx, edx
jge 0x41f459
mov eax, dword [ecx + 0x1c]
cmp edi, eax
jge 0x41f459
mov ecx, dword [ecx]
sub eax, edi
dec eax
imul eax, edx
add eax, ebx
mov edi, dword [ecx + eax*4]
jmp 0x41f45b
xor edi, edi
mov ecx, dword [esp + 0x9c]
push ebp
mov eax, edi
mov edx, esi
call fcn.0041eec0
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x70], eax
inc esi
push ebp
mov eax, edi
mov edx, esi
call fcn.0041eec0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x74], eax
inc ebp
push ebp
mov eax, edi
call fcn.0041eec0
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x78], eax
push ebp
mov eax, edi
mov edx, esi
call fcn.0041eec0
mov dword [esp + 0x7c], eax
test ebx, ebx
jl 0x41f503
cmp dword [esp + 0x10], 0
jl 0x41f503
mov ebp, dword [esp + 0x98]
cmp ebx, dword [ebp + 0x18]
jge 0x41f503
mov esi, dword [ebp + 0x1c]
cmp dword [esp + 0x10], esi
jge 0x41f503
sub esp, 8
fxch st(1)
fstp dword [esp + 4]
lea eax, [esp + 0x78]
fstp dword [esp]
call fcn.0041eb50
sub esi, dword [esp + 0x10]
mov edx, dword [ebp]
dec esi
imul esi, dword [ebp + 0x18]
and edi, 0xff000000
or eax, edi
add esi, ebx
mov dword [edx + esi*4], eax
jmp 0x41f507
fstp st(1)
fstp st(0)
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
inc ebx
cmp ebx, dword [esp + 0x64]
mov dword [esp + 0x28], ebx
jl 0x41f345
mov eax, dword [esp + 0x2c]
inc eax
inc edi
cmp eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], edi
jl 0x41f2e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 0x20