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

Disassembly:
sub esp, 0x2c
movzx ecx, byte [esp + 0x80]
mov edx, dword [esp + 0x38]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, 1
sub eax, ecx
imul ecx, edi
mov esi, eax
imul eax, edi
mov edi, dword [esp + 0x4c]
imul esi, edx
mov ebp, eax
mov eax, dword [esp + 0x54]
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
sub edi, edx
lea ecx, [edi + eax]
add ecx, dword [esp + 0x5c]
mov dword [esp + 0x38], esi
add ecx, ecx
add ecx, ecx
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], edi
call fcn.1005986c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10030110
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
fldz
mov eax, ebp
imul eax, dword [esp + 0x60]
fcom dword [esp + 0x74]
mov dword [esp + 0x34], eax
add eax, esi
mov dword [esp + 0x10], eax
lea edx, [edi*4]
fnstsw ax
test ah, 0x44
fld1
mov dword [esp + 0x2c], edx
fld1
jp 0x1003014e
fst dword [esp + 0x18]
fst dword [esp + 0x1c]
fstp dword [esp + 0x20]
jmp 0x1003024c
mov esi, dword [esp + 0x6c]
fstp st(2)
sub esi, dword [esp + 0x68]
fstp st(0)
mov ebp, dword [esp + 0x70]
fstp st(0)
mov ecx, dword [esp + 0x78]
lea edi, [esi + esi*2]
add edi, edi
lea eax, [ebp + 1]
add edi, edi
sub eax, dword [edi + ecx + 4]
push eax
call fcn.1002dfc0
mov edx, dword [esp + 0x80]
fild dword [edi + edx + 4]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
mov eax, esi
fmul qword [0x1008aec8]
shl eax, 4
fld1
sub eax, esi
fadd st(1), st(0)
lea esi, [ecx + eax*8]
fxch st(2)
lea eax, [ebp + 1]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ebp
fmulp st(1)
sub eax, dword [edi + edx + 8]
push eax
fstp dword [esp + 0x38]
fdiv dword [esp + 0x38]
fstp dword [esp + 0x20]
call fcn.1002dfc0
mov eax, dword [esp + 0x84]
fild dword [edi + eax + 8]
mov ecx, dword [esp + 0x80]
lea eax, [ebp + 1]
mov dword [esi + 0x70], eax
fmul qword [0x1008aec8]
lea eax, [ebp + 2]
fld1
mov dword [esi + 0x74], ebp
fadd st(1), st(0)
sub eax, dword [edi + ecx + 0xc]
fxch st(2)
push eax
fmulp st(1)
fstp dword [esp + 0x3c]
fdiv dword [esp + 0x3c]
fstp dword [esp + 0x28]
call fcn.1002dfc0
mov edx, dword [esp + 0x88]
fild dword [edi + edx + 0xc]
mov edi, dword [esp + 0x20]
lea eax, [ebp + 2]
mov dword [esi + 0x9c], ebp
fmul qword [0x1008aec8]
mov ebp, dword [esp + 0x30]
fld1
add esp, 0xc
fadd st(1), st(0)
mov dword [esi + 0x98], eax
fxch st(2)
fmulp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fdivr st(1)
fstp dword [esp + 0x20]
fldz
fxch st(1)
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, edx
sub ecx, eax
add ecx, 1
sar ecx, 1
test al, 1
je 0x10030269
test dl, 1
jne 0x10030269
sub ecx, 1
lea edx, [edi + 1]
sar edx, 1
test byte [esp + 0x48], 1
mov dword [esp + 0x14], edx
je 0x10030287
test byte [esp + 0x4c], 1
jne 0x10030287
sub edx, 1
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x6c]
fxch st(1)
sub eax, dword [esp + 0x68]
mov edi, dword [esp + 0x88]
mov esi, eax
shl esi, 4
sub esi, eax
mov eax, dword [esp + 0x80]
lea esi, [eax + esi*8]
fst dword [esi + 0x44]
lea eax, [ecx + ebp]
fst dword [esi + 0x6c]
cmp ebp, eax
mov ebp, dword [esp + 0x84]
fstp dword [esi + 0x94]
fldz
mov dword [esp + 0x30], eax
jge 0x10030397
sub eax, dword [esp + 0x24]
fstp st(1)
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], eax
imul eax, dword [esp + 0x60]
add dword [esp + 0x10], eax
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x34]
lea edx, [edx + ecx*4]
mov dword [esp + 0x54], edx
mov edi, edi
mov eax, dword [esp + 0x2c]
fst qword [ebp]
mov ecx, dword [esp + 0x50]
fstp qword [edi]
mov edx, dword [esp + 0x58]
push eax
push ecx
lea eax, [ebx + edx*4]
push eax
call fcn.100598df
fld dword [esp + 0x24]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
add esp, 0xc
push eax
mov eax, dword [esp + 0x50]
push 0x4c
push edi
push ebp
sub esp, 8
fstp dword [esp + 4]
fld1
fstp dword [esp]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
push ebx
call fcn.1002f890
fld dword [esi + 0x44]
mov eax, dword [esp + 0x90]
fadd qword [edi]
add eax, eax
add eax, eax
add dword [esp + 0x84], eax
fstp dword [esi + 0x44]
add dword [esp + 0x80], eax
fldz
add esp, 0x30
sub dword [esp + 0x24], 1
jne 0x10030300
fld1
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
fxch st(1)
cmp eax, dword [esp + 0x28]
jge 0x10030478
mov edx, dword [esp + 0x10]
fstp st(1)
mov ecx, dword [esp + 0x40]
lea ecx, [ecx + edx*4]
mov edx, eax
imul edx, dword [esp + 0x60]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x44]
lea edx, [ecx + edx*4]
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x28], ecx
jmp 0x100303d2
fldz
mov eax, dword [esp + 0x2c]
fst qword [ebp]
mov ecx, dword [esp + 0x50]
fstp qword [edi]
mov edx, dword [esp + 0x58]
push eax
push ecx
lea eax, [ebx + edx*4]
push eax
call fcn.100598df
fld dword [esp + 0x2c]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
add esp, 0xc
push eax
mov eax, dword [esp + 0x50]
push 0x48
push edi
push ebp
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x34]
fstp dword [esp]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
push ebx
call fcn.1002f890
fld dword [esi + 0x6c]
fadd qword [ebp]
mov eax, dword [esp + 0x90]
add eax, eax
add eax, eax
add dword [esp + 0x84], eax
fstp dword [esi + 0x6c]
fld dword [esi + 0x94]
add dword [esp + 0x80], eax
fadd qword [edi]
add esp, 0x30
sub dword [esp + 0x28], 1
fstp dword [esi + 0x94]
jne 0x100303d0
fld1
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
jmp 0x1003047a
fstp st(0)
fld dword [esp + 0x18]
imul eax, dword [esp + 0x60]
fdivr st(1)
mov ecx, dword [esp + 0x34]
lea edi, [ecx + edx]
mov ecx, dword [esp + 0x44]
lea edi, [ecx + edi*4]
mov dword [esi + 0x3c], edi
mov edi, dword [esp + 0x38]
lea ebp, [eax + edi]
add eax, edx
add eax, edi
lea ebp, [ecx + ebp*4]
lea edx, [ecx + eax*4]
push ebx
mov dword [esi + 0x64], ebp
mov dword [esi + 0x8c], edx
fstp dword [esi + 0x40]
fld dword [esp + 0x20]
fdivr st(1)
fstp dword [esi + 0x68]
fdiv dword [esp + 0x24]
fstp dword [esi + 0x90]
call fcn.100598cb
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret