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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3b4
mov edx, dword [ebp + 8]
fldz
fld st(0)
fst qword [esp + 0x84]
mov eax, dword [edx + 0x1c]
fld qword [0x101e3b48]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x14]
push ebx
push esi
xor esi, esi
mov ecx, dword [eax]
fst qword [esp + 0x64]
push edi
mov edi, dword [edx + 0x20]
fxch st(2)
fst qword [esp + 0x98]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], edi
mov dword [ecx + 0x18], 0
mov dword [esp + 0x78], esi
cmp dword [ecx + 0x10], esi
jbe 0x1015a7f7
fld1
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x58], eax
mov edx, dword [ecx + 0x14]
add edx, eax
xor eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x60], eax
mov dword [edx + 0x48], 0
cmp dword [edx + 0x14], eax
jbe 0x1015a788
xor ebx, ebx
mov dword [esp + 0x90], ebx
mov ecx, dword [edx + 0x1c]
add ecx, ebx
xor ebx, ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x88], ebx
cmp dword [ecx + 0x18], ebx
jbe 0x1015a75e
lea edi, [ecx + 0x28]
mov dword [esp + 0x3c], edi
mov eax, dword [edi - 4]
sub eax, dword [edi - 0xc]
je 0x1015a742
mov eax, dword [edi]
sub eax, dword [edi - 8]
je 0x1015a742
mov eax, dword [ecx + 0x10]
xor esi, esi
imul eax, dword [ecx + 0x14]
mov dword [esp + 0x74], esi
test eax, eax
je 0x1015a742
xor ebx, ebx
mov dword [esp + 0x80], ebx
mov ecx, dword [edi + 8]
xor edi, edi
add ecx, ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x48], ecx
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
test eax, eax
je 0x1015a715
xor ebx, ebx
mov dword [esp + 0x84], ebx
mov edx, dword [ecx + 0x18]
xor esi, esi
add edx, ebx
mov ebx, dword [edx + 0x30]
test ebx, ebx
je 0x1015a6b2
mov edi, dword [edx + 8]
lea ecx, [esi + esi*2]
mov eax, dword [edi + ecx*8]
fld qword [edi + ecx*8 + 8]
test esi, esi
je 0x1015a65b
sub eax, dword [edi + ecx*8 - 0x18]
fsub qword [edi + ecx*8 - 0x10]
mov dword [esp + 0x68], eax
test eax, eax
je 0x1015a691
fild dword [esp + 0x68]
fstp qword [esp + 0x98]
fdiv qword [esp + 0x98]
fcom st(4)
fnstsw ax
test ah, 5
jp 0x1015a684
fstp st(4)
fld st(3)
fxch st(4)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x1015a691
fstp st(2)
jmp 0x1015a693
fstp st(0)
inc esi
cmp esi, ebx
jb 0x1015a645
mov edi, dword [esp + 0x8c]
fxch st(3)
fst qword [esp + 0x68]
fxch st(1)
fst qword [esp + 0x98]
fxch st(1)
fxch st(3)
mov ecx, dword [edx + 0x18]
inc edi
sub ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0xc]
imul ecx, eax
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x84]
add ebx, 0x34
mov dword [esp + 0x8c], edi
mov dword [esp + 0x84], ebx
add dword [eax + 0x18], ecx
mov ecx, dword [edx + 0x18]
sub ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0xc]
mov edx, dword [esp + 0x50]
imul ecx, eax
add dword [edx + 0x48], ecx
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
cmp edi, eax
jb 0x1015a634
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
inc esi
mov edi, dword [esp + 0x3c]
add ebx, 0x28
mov dword [esp + 0x74], esi
mov dword [esp + 0x80], ebx
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
cmp esi, eax
jb 0x1015a60a
mov ebx, dword [esp + 0x88]
inc ebx
add edi, 0x24
mov dword [esp + 0x88], ebx
mov dword [esp + 0x3c], edi
cmp ebx, dword [ecx + 0x18]
jb 0x1015a5d5
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x90]
inc eax
add ebx, 0x98
mov dword [esp + 0x60], eax
mov dword [esp + 0x90], ebx
cmp eax, dword [edx + 0x14]
jb 0x1015a5b3
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x78]
mov eax, dword [ebp + 8]
inc esi
mov dword [esp + 0x78], esi
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0x18]
mov eax, 1
mov ecx, dword [ecx + ebx + 0x18]
add ebx, 0x34
shl eax, cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
mov eax, dword [esp + 0x58]
add eax, 0x4c
mov dword [esp + 0x40], ebx
mov dword [esp + 0x58], eax
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fsub st(1)
fmul st(0), st(0)
fild dword [edx + 0x48]
fstp qword [esp + 0x30]
fmul qword [esp + 0x30]
faddp st(3)
cmp esi, dword [ecx + 0x10]
jb 0x1015a58b
mov edx, dword [ebp + 8]
fstp st(1)
mov edi, dword [esp + 0x44]
fstp st(2)
fstp st(1)
fstp qword [esp + 0x90]
jmp 0x1015a7fd
fstp st(0)
fstp st(1)
fstp st(0)
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x1015a83e
imul esi, dword [edx + 0x24], 0x250
mov eax, dword [ecx + 0x18]
add esi, dword [ebx + 0x58]
mov dword [esi + 0x228], eax
fld qword [ecx + 0x20]
fstp qword [esi + 0x230]
mov eax, dword [edi + 8]
shl eax, 3
push eax
call fcn.101434b0
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x1015a83e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1015aaf0
fldz
fld qword [esp + 0x68]
fstp qword [esp + 0x58]
fld qword [esp + 0x98]
fstp qword [esp + 0x48]
fcomp dword [edi + esi*4 + 0x14]
fnstsw ax
test ah, 5
jp 0x1015a8a8
fld dword [edi + esi*4 + 0x14]
sub esp, 8
fstp qword [esp]
call sub.MSVCRT.dll_ceil
fnstcw word [esp + 0x44]
movzx eax, word [esp + 0x44]
add esp, 8
or eax, 0xc00
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov edi, dword [esp + 0x30]
fldcw word [esp + 0x3c]
cmp edi, eax
jb 0x1015a8ab
mov edi, eax
jmp 0x1015a8ab
mov edi, dword [ebp + 0x14]
mov eax, dword [esp + 0x44]
fldz
fstp qword [esp + 0x50]
fld dword [eax + esi*4 + 0x1440]
fld qword [0x101e3b28]
fdiv st(1), st(0)
fxch st(1)
call sub.MSVCRT.dll__CIpow
fdivr qword [esp + 0x90]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 0x60]
fsubr qword [eax + 0x20]
fstp qword [esp + 0x78]
fldz
test cl, 1
je 0x1015a8fa
mov eax, dword [esp + 0x44]
fcom dword [eax + esi*4 + 0x14]
fnstsw ax
test ah, 5
jnp 0x1015a91b
test cl, 4
je 0x1015aa90
mov eax, dword [esp + 0x44]
fcomp dword [eax + esi*4 + 0x1440]
fnstsw ax
test ah, 5
jp 0x1015aa92
jmp 0x1015a91d
fstp st(0)
mov eax, dword [ebp + 8]
push edx
push dword [eax + 0x18]
call fcn.101602f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1015a835
fld qword [esp + 0x48]
mov dword [esp + 0x40], pe_nt_image_headers32
jmp 0x1015a946
fstp st(0)
fadd qword [esp + 0x58]
push 0
sub esp, 8
fmul qword [0x101b28d8]
fst qword [esp + 0x3c]
fstp qword [esp]
push esi
push dword [ebp + 8]
call fcn.10159960
mov eax, dword [esp + 0x78]
add esp, 0x14
test byte [eax + 0x60], 4
je 0x1015a9ff
movzx eax, word [eax]
cmp eax, 3
jb 0x1015a9ca
cmp eax, 6
ja 0x1015a9ca
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push 0
push dword [ecx + 0x10]
push dword [ecx]
push dword [ecx + 8]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esp + 0x54]
push dword [ecx + 0x24]
push ebx
call fcn.10160d80
add esp, 0x34
test eax, eax
jne 0x1015a9ca
fld qword [esp + 0x30]
fstp qword [esp + 0x58]
fld qword [esp + 0x48]
fld qword [esp + 0x50]
jmp 0x1015aa4f
mov eax, dword [esp + 0x2c]
test esi, esi
jne 0x1015a9d7
fld qword [eax + 0x28]
jmp 0x1015a9e2
fld qword [eax + esi*8 + 0x28]
fadd qword [esp + esi*8 + 0x98]
fcomp qword [esp + 0x78]
fnstsw ax
fld qword [esp + 0x30]
test ah, 5
jnp 0x1015aa43
fstp qword [esp + 0x58]
fld qword [esp + 0x48]
fld qword [esp + 0x50]
jmp 0x1015aa4f
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push 0
push dword [ecx + 0x10]
push dword [ecx]
push dword [ecx + 8]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esp + 0x54]
push dword [ecx + 0x24]
push ebx
call fcn.10160d80
fld qword [esp + 0x64]
add esp, 0x34
test eax, eax
jne 0x1015aa43
fstp qword [esp + 0x58]
fld qword [esp + 0x48]
fld qword [esp + 0x50]
jmp 0x1015aa4f
fld st(0)
fst qword [esp + 0x48]
fxch st(1)
fst qword [esp + 0x50]
dec dword [esp + 0x40]
jne 0x1015a944
fstp st(1)
fldz
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x1015aa7a
push ebx
fstp st(0)
call fcn.101606b0
fld qword [esp + 0x34]
add esp, 4
mov ebx, dword [ebp + 0x18]
jmp 0x1015aa98
push ebx
fstp qword [esp + 0x34]
call fcn.101606b0
fld qword [esp + 0x34]
add esp, 4
mov ebx, dword [ebp + 0x18]
jmp 0x1015aa98
fstp st(0)
fld qword [0x101c6638]
test ebx, ebx
je 0x1015aaaf
mov eax, dword [ebp + 8]
imul ecx, dword [eax + 0x24], 0x250
mov eax, dword [ebx + 0x58]
mov eax, dword [ecx + eax]
fst qword [eax + esi*8]
push 1
sub esp, 8
fstp qword [esp]
push esi
push dword [ebp + 8]
call fcn.10159960
mov eax, dword [esp + 0x40]
add esp, 0x14
test esi, esi
jne 0x1015aad0
fld qword [eax + 0x28]
jmp 0x1015aadb
fld qword [esp + esi*8 + 0x98]
fadd qword [eax + esi*8 + 0x28]
mov edi, dword [esp + 0x44]
fstp qword [esp + esi*8 + 0xa0]
inc esi
cmp esi, dword [edi + 8]
jb 0x1015a849
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret