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

Disassembly:
sub esp, 0xc4
mov eax, dword [esp + 0xd4]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 8]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x1c], ebp
jle 0x1003f5e6
fild dword [esp + 0xe0]
mov dword [esp + 0x20], ebp
fstp dword [esp + 0x3c]
fild dword [esp + 0xdc]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0xec]
fld dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0xe8]
lea eax, [ebp*4]
add ecx, eax
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [esp + 0xe4]
mov ebx, dword [eax + 4]
add ebx, dword [esp + 0x20]
sub esp, 0x10
fmul dword [ebx + 0xc]
lea esi, [esp + 0x90]
mov dword [esp + 0x44], ecx
fadd dword [ebx + 8]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 0xc]
fld dword [esp + 0x40]
fmul dword [ebx + 0xc]
fadd dword [ebx + 4]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 8]
fld dword [ebx + 8]
fstp dword [esp + 4]
fld dword [ebx + 4]
fstp dword [esp]
call fcn.10049a10
lea eax, [edi - 1]
cmp eax, ebp
mov byte [esp + 0x13], 1
mov dword [esp + 0x2c], eax
jle 0x1003f5c6
fld dword [esp + 0x9c]
mov ecx, edi
fsub dword [esp + 0x90]
shl ecx, 4
fld dword [esp + 0x98]
mov edx, eax
fsub dword [esp + 0x8c]
shl edx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
fmulp st(1)
fstp dword [esp + 0x38]
jmp 0x1003f3c8
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xec]
mov ecx, dword [ecx + 4]
add eax, eax
add eax, eax
add ecx, eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xe8]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [esp + 0xe4]
mov ebp, dword [eax + 4]
fld dword [ebp + edx + 0xc]
add ebp, edx
fmul dword [esp + 0x3c]
sub esp, 0x10
lea esi, [esp + 0x68]
mov dword [esp + 0x64], ecx
fadd dword [ebp + 8]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 0xc]
fld dword [ebp + 0xc]
fmul dword [esp + 0x40]
fadd dword [ebp + 4]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 8]
fld dword [ebp + 8]
fstp dword [esp + 4]
fld dword [ebp + 4]
fstp dword [esp]
call fcn.10049a10
fld dword [esp + 0x74]
lea esi, [esp + 0xa8]
fsub dword [esp + 0x68]
fld dword [esp + 0x70]
fsub dword [esp + 0x64]
fmulp st(1)
fstp dword [esp + 0x18]
call fcn.10049780
lea ecx, [esp + 0x58]
lea edx, [esp + 0x80]
mov esi, eax
call fcn.1004a000
fld dword [eax + 0x18]
fstp dword [esp + 0x50]
fld dword [eax + 0xc]
fstp dword [esp + 0x28]
fld dword [eax + 0x1c]
fstp dword [esp + 0x40]
fld dword [eax + 0x10]
fstp dword [esp + 0x4c]
fld dword [esp + 0x38]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x38]
je 0x1003f4a7
lea eax, [esp + 0x18]
fld dword [esp + 0x40]
mov byte [esp + 0x12], 1
fsub dword [esp + 0x4c]
fld dword [esp + 0x50]
fsub dword [esp + 0x28]
fmulp st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [esp + 0xd8]
fmul dword [eax]
fcompp
fnstsw ax
test ah, 5
jnp 0x1003f4dd
mov byte [esp + 0x12], 0
lea ecx, [esp + 0xc8]
call fcn.10049aa0
cmp byte [esp + 0x12], 0
je 0x1003f551
mov ecx, dword [esp + 0x54]
fld dword [ecx]
mov edx, dword [esp + 0x34]
fld dword [edx]
fcompp
fnstsw ax
test ah, 0x41
jne 0x1003f54c
mov edx, dword [esp + 0xec]
mov edx, dword [edx + 4]
fld dword [edx + edi*4 - 4]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
fstp dword [edx]
mov edx, dword [esp + 0xe8]
mov edx, dword [edx + 4]
fld dword [edx + edi*4 - 4]
sub edi, 1
fstp dword [ecx]
mov ecx, dword [esp + 0xe4]
mov ecx, dword [ecx + 4]
sub eax, 0x10
add ecx, eax
mov dword [esp + 0x14], eax
mov eax, ebp
call fcn.1004b480
jmp 0x1003f551
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x78]
call fcn.10049aa0
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x24], 0x10
sub eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jg 0x1003f3c0
cmp byte [esp + 0x13], 0
jne 0x1003f5c2
mov edx, dword [esp + 0xec]
mov eax, dword [edx + 4]
fld dword [eax + edi*4 - 4]
mov edx, dword [esp + 0xe8]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx + 4]
fstp dword [ecx]
fld dword [eax + edi*4 - 4]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xe4]
fstp dword [ecx]
sub edi, 1
mov ecx, edi
shl ecx, 4
add ecx, dword [edx + 4]
mov eax, ebx
call fcn.1004b480
mov ebp, dword [esp + 0x1c]
jmp 0x1003f5d2
mov ebp, dword [esp + 0x1c]
add ebp, 1
add dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0xa0]
call fcn.10049aa0
cmp ebp, edi
jl 0x1003f2ec
mov ecx, dword [esp + 0xe4]
call fcn.1000ec40
mov esi, dword [esp + 0xe8]
push 0
push edi
call fcn.10009380
mov esi, dword [esp + 0xec]
push 0
push edi
call fcn.10009380
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret