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

Disassembly:
sub esp, 0xb8
mov eax, dword [esp + 0xc8]
push ebx
mov ebx, dword [eax + 8]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
push edi
mov dword [esp + 0x1c], ebp
jle 0x1003ee78
fild dword [esp + 0xd4]
mov dword [esp + 0x20], ebp
fstp dword [esp + 0x38]
fild dword [esp + 0xd0]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0xdc]
fld dword [esp + 0x38]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0xd8]
mov edi, dword [ecx + 4]
add edi, dword [esp + 0x20]
sub esp, 0x10
fmul dword [edi + 0xc]
lea eax, [edx + ebp*4]
lea esi, [esp + 0x88]
mov dword [esp + 0x40], eax
fadd dword [edi + 8]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 0xc]
fld dword [esp + 0x4c]
fmul dword [edi + 0xc]
fadd dword [edi + 4]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 8]
fld dword [edi + 8]
fstp dword [esp + 4]
fld dword [edi + 4]
fstp dword [esp]
call fcn.10049a10
lea eax, [ebx - 1]
cmp eax, ebp
mov byte [esp + 0x13], 1
mov dword [esp + 0x2c], eax
jle 0x1003ee58
fld dword [esp + 0x94]
mov ecx, ebx
fsub dword [esp + 0x88]
shl ecx, 4
fld dword [esp + 0x90]
mov dword [esp + 0x18], ecx
fsub dword [esp + 0x84]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x28], ecx
fmulp st(1)
fstp dword [esp + 0x34]
jmp 0x1003ec98
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xdc]
fld dword [esp + 0x38]
mov edx, dword [edx + 4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0xd8]
mov ebp, dword [edx + 4]
fmul dword [ebp + ecx + 0xc]
add ebp, ecx
sub esp, 0x10
lea esi, [esp + 0x60]
fadd dword [ebp + 8]
mov dword [esp + 0x54], eax
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 0xc]
fld dword [esp + 0x4c]
fmul dword [ebp + 0xc]
fadd dword [ebp + 4]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
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 + 0x6c]
lea esi, [esp + 0xa0]
fsub dword [esp + 0x60]
fld dword [esp + 0x68]
fsub dword [esp + 0x5c]
fmulp st(1)
fstp dword [esp + 0x14]
call fcn.10049780
lea ecx, [esp + 0x50]
lea edx, [esp + 0x78]
mov esi, eax
call fcn.1004a000
fld dword [eax + 0x18]
fstp dword [esp + 0x40]
fld dword [eax + 0xc]
fstp dword [esp + 0x24]
fld dword [eax + 0x1c]
fstp dword [esp + 0x4c]
fld dword [eax + 0x10]
fstp dword [esp + 0x48]
fld dword [esp + 0x34]
fld dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x34]
je 0x1003ed61
lea eax, [esp + 0x14]
fld dword [esp + 0x4c]
mov byte [esp + 0x12], 1
fsub dword [esp + 0x48]
fld dword [esp + 0x40]
fsub dword [esp + 0x24]
fmulp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [eax]
fmul dword [esp + 0xcc]
fcompp
fnstsw ax
test ah, 5
jnp 0x1003ed97
mov byte [esp + 0x12], 0
lea ecx, [esp + 0xc0]
call fcn.10049aa0
cmp byte [esp + 0x12], 0
je 0x1003edf7
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
fld dword [ecx]
fld dword [eax]
fcompp
fnstsw ax
test ah, 0x41
jne 0x1003edf2
mov edx, dword [esp + 0xdc]
mov edx, dword [edx + 4]
fld dword [edx + ebx*4 - 4]
mov eax, dword [esp + 0x18]
sub ebx, 1
fstp dword [ecx]
mov ecx, dword [esp + 0xd8]
mov ecx, dword [ecx + 4]
sub eax, 0x10
add ecx, eax
mov dword [esp + 0x18], eax
mov eax, ebp
call fcn.1004b480
jmp 0x1003edf7
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x70]
call fcn.10049aa0
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], 0x10
sub eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jg 0x1003ec90
cmp byte [esp + 0x13], 0
jne 0x1003ee54
mov edx, dword [esp + 0xdc]
mov eax, dword [edx + 4]
fld dword [eax + ebx*4 - 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xd8]
fstp dword [ecx]
sub ebx, 1
mov ecx, ebx
shl ecx, 4
add ecx, dword [edx + 4]
mov eax, edi
call fcn.1004b480
mov ebp, dword [esp + 0x1c]
jmp 0x1003ee64
mov ebp, dword [esp + 0x1c]
add ebp, 1
add dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x98]
call fcn.10049aa0
cmp ebp, ebx
jl 0x1003ebdc
mov ecx, dword [esp + 0xd8]
mov edi, ebx
call fcn.1000ec40
mov esi, dword [esp + 0xdc]
push 0
push ebx
call fcn.10009380
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xb8
ret