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

Disassembly:
push 0xffffffffffffffff
push 0x10198e61
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10218460]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x78]
xor eax, eax
mov dword [esp + 0x3c], eax
mov edi, dword [ebp + 0x10]
cmp edi, eax
jle 0x10140554
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
jmp 0x10140558
mov dword [esp + 0x1c], eax
lea esi, [esp + 0x40]
call fcn.1004c630
mov edx, dword [esp + 0x1c]
push edx
mov eax, edi
mov ebx, esi
mov dword [esp + 0x70], 1
call fcn.1004d110
fldz
push ecx
fstp dword [esp]
mov edx, esi
call fcn.1004d500
lea esi, [edi - 1]
test esi, esi
mov byte [esp + 0x17], 1
mov dword [esp + 0x34], esi
jl 0x10140761
lea edi, [esi + esi*8]
add edi, edi
add edi, edi
lea ebx, [esi + 1]
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], ebx
jmp 0x101405b4
mov ebp, dword [esp + 0x78]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + eax + 4]
fld dword [ecx + esi*4]
lea ebp, [ecx + esi*4]
push ecx
fstp dword [esp]
call fcn.10009f50
fcomp dword [0x101e99c0]
add esp, 4
fnstsw ax
test ah, 5
jp 0x101405df
mov byte [esp + 0x17], 0
cmp ebx, dword [esp + 0x1c]
fld dword [ebp]
fld1
mov edx, dword [esp + 0x4c]
fdivrp st(1)
mov eax, dword [edi + edx + 4]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [eax + esi*4]
jge 0x10140744
fldz
lea eax, [edi + 0x24]
mov dword [esp + 0x24], eax
mov eax, ebx
sub eax, esi
lea ecx, [esi*4 + 4]
mov dword [esp + 0x20], eax
jmp 0x10140621
mov eax, dword [esp + 0x20]
cmp eax, 4
fst dword [esp + 0x18]
mov ebp, dword [esp + 0x4c]
mov edx, ebx
jl 0x101406cc
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0xc]
mov edx, dword [edi + eax + 4]
mov eax, dword [esp + 0x24]
lea edi, [eax + ebp - 0x20]
mov eax, ebx
sub eax, dword [esp + 0x28]
lea esi, [edx + ecx - 8]
sub eax, 3
shr eax, 2
add eax, 1
lea edx, [eax*4]
mov ebp, edx
mov edx, ebx
sub edx, ebp
mov ebp, dword [edi + 0x24]
fld dword [esp + 0x18]
fld dword [ecx + ebp]
mov ebp, dword [edi]
fmul dword [esi + 8]
sub esi, 0x10
sub edi, 0x90
sub eax, 1
fsubp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fld dword [ecx + ebp]
mov ebp, dword [edi + 0x6c]
fmul dword [esi + 0x14]
fsubp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fld dword [ecx + ebp]
mov ebp, dword [edi + 0x48]
fmul dword [esi + 0x10]
fsubp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fld dword [ecx + ebp]
fmul dword [esi + 0xc]
fsubp st(1)
fstp dword [esp + 0x18]
jne 0x10140667
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
cmp edx, esi
jle 0x10140715
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0xc]
mov eax, dword [edi + eax + 4]
lea eax, [eax + edx*4]
mov dword [esp + 0x2c], eax
lea eax, [edx + edx*8]
sub edx, esi
lea eax, [ebp + eax*4 + 4]
mov dword [esp + 0x30], edx
mov edx, dword [eax]
fld dword [esp + 0x18]
fld dword [edx + ecx]
mov edx, dword [esp + 0x2c]
fmul dword [edx]
sub edx, 4
sub eax, 0x24
sub dword [esp + 0x30], 1
fsubp st(1)
mov dword [esp + 0x2c], edx
fstp dword [esp + 0x18]
jne 0x101406ef
mov eax, dword [edi + ebp + 4]
fld dword [eax + esi*4]
add dword [esp + 0x20], 1
fmul dword [esp + 0x18]
add dword [esp + 0x24], 0x24
add ebx, 1
add ecx, 4
cmp ebx, dword [esp + 0x1c]
fstp dword [eax + ecx - 4]
jl 0x1014061d
mov ebx, dword [esp + 0x28]
fstp st(0)
sub esi, 1
sub ebx, 1
sub edi, 0x24
test esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], edi
jge 0x101405b0
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x10140780
cmp byte [ecx], 0
je 0x1014077c
cmp byte [esp + 0x17], 0
je 0x1014077c
mov eax, 1
jmp 0x1014077e
xor eax, eax
mov byte [ecx], al
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x40]
push eax
push esi
call fcn.1004c6b0
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], 1
mov byte [esp + 0x6c], 0
call fcn.1004ad70
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret