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

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x68]
fld dword [esp + 0x60]
cmp byte [eax], 0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov byte [esp + 0x13], 0
jne 0x518d9e
mov eax, dword [ebp + 0x1a0]
fld dword [0x97a7d0]
mov edi, dword [eax + 0x1c]
xor edx, edx
test edi, edi
jbe 0x518c0e
mov ecx, dword [eax + 0x18]
fld st(0)
mov eax, dword [ebp + 0x150]
fadd st(2)
mov esi, dword [ebp + 0x144]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x6c]
shl eax, 4
fld dword [eax + esi + 4]
add eax, esi
fmul dword [ebx + 4]
fld dword [eax]
fmul dword [ebx]
faddp st(1)
fld dword [eax + 8]
fmul dword [ebx + 8]
faddp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x518bfc
mov eax, dword [ebp + 0x1a0]
add edx, 1
add ecx, 4
cmp edx, dword [eax + 0x1c]
jb 0x518bba
fstp st(0)
cmp edx, edi
jne 0x518c14
fstp st(0)
mov byte [esp + 0x13], 1
jmp 0x518da2
mov ebx, dword [esp + 0x6c]
jmp 0x518bfe
mov eax, dword [esp + 0x68]
mov ebx, dword [eax + 0x1c]
xor esi, esi
cmp ebx, 4
jl 0x518d21
mov edx, dword [eax + 0x18]
fld dword [ebp + 0x1a8]
mov eax, dword [ebp + 0x150]
fsub st(1)
mov ecx, dword [ebp + 0x1a4]
mov edi, dword [ebp + 0x144]
lea edx, [eax + edx*4 + 8]
mov eax, dword [edx - 8]
shl eax, 4
fld dword [eax + edi + 4]
add eax, edi
fmul dword [ecx + 4]
fld dword [ecx]
fmul dword [eax]
faddp st(1)
fld dword [eax + 8]
fmul dword [ecx + 8]
faddp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x518d8b
mov eax, dword [edx - 4]
shl eax, 4
fld dword [eax + edi + 4]
add eax, edi
fmul dword [ecx + 4]
fld dword [ecx]
fmul dword [eax]
faddp st(1)
fld dword [eax + 8]
fmul dword [ecx + 8]
faddp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x518d7e
mov eax, dword [edx]
shl eax, 4
fld dword [eax + edi + 4]
add eax, edi
fmul dword [ecx + 4]
fld dword [ecx]
fmul dword [eax]
faddp st(1)
fld dword [eax + 8]
fmul dword [ecx + 8]
faddp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x518d83
mov eax, dword [edx + 4]
shl eax, 4
fld dword [eax + edi + 4]
add eax, edi
fmul dword [ecx + 4]
fld dword [ecx]
fmul dword [eax]
faddp st(1)
fld dword [eax + 8]
fmul dword [ecx + 8]
faddp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x518d88
add esi, 4
lea eax, [ebx - 3]
add edx, 0x10
cmp esi, eax
jl 0x518c47
mov eax, dword [esp + 0x68]
fstp st(0)
cmp esi, ebx
jae 0x518d8d
mov edx, dword [eax + 0x18]
fsubr dword [ebp + 0x1a8]
mov eax, dword [ebp + 0x150]
mov ecx, dword [ebp + 0x1a4]
mov edi, dword [ebp + 0x144]
add edx, esi
lea edx, [eax + edx*4]
mov eax, dword [edx]
shl eax, 4
fld dword [eax + edi + 4]
add eax, edi
fmul dword [ecx + 4]
fld dword [ecx]
fmul dword [eax]
faddp st(1)
fld dword [eax + 8]
fmul dword [ecx + 8]
faddp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x518d8d
add esi, 1
add edx, 4
cmp esi, ebx
jb 0x518d45
jmp 0x518d8d
add esi, 1
jmp 0x518d8b
add esi, 2
jmp 0x518d8b
add esi, 3
fstp st(0)
cmp esi, ebx
fstp st(0)
mov ebx, dword [esp + 0x6c]
jne 0x518da2
mov byte [esp + 0x13], 1
jmp 0x518da2
mov ebx, dword [esp + 0x6c]
fldz
xor eax, eax
fst dword [esp + 0x14]
xor cl, cl
cmp byte [esp + 0x13], cl
fst dword [esp + 0x18]
fst dword [esp + 0x1c]
mov dword [esp + 0x24], eax
fst dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
fst dword [esp + 0x40]
mov byte [esp + 0x70], cl
fstp dword [esp + 0x44]
jne 0x518e28
mov eax, dword [ebp + 0x1a0]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
fstp dword [esp]
push ebx
push eax
mov ecx, ebp
call fcn.00518310
test al, al
mov byte [esp + 0x6c], al
jne 0x518e22
fld dword [ebp + 0x1a8]
mov eax, dword [ebp + 0x1a4]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
mov ecx, dword [esp + 0x74]
fstp dword [esp]
push eax
push ecx
mov ecx, ebp
call fcn.00518310
mov byte [esp + 0x70], al
mov cl, byte [esp + 0x6c]
jmp 0x518e2a
fstp st(0)
mov esi, dword [esp + 0x74]
mov edi, dword [ebp + 0x19c]
mov edx, dword [esi]
mov eax, dword [ebp + 0x18c]
add edx, edi
cmp byte [esp + 0x13], 0
mov ebx, dword [eax + edx*4]
mov dword [esp + 0x6c], ebx
jne 0x518e80
cmp byte [esp + 0x70], 0
jne 0x518f39
test cl, cl
jne 0x518f41
mov edx, dword [ebp + 0x184]
mov eax, dword [0xab3314]
sub edx, edi
mov ecx, eax
add edx, edx
add eax, 1
cmp ecx, edx
mov dword [0xab3314], eax
jg 0x518f2f
mov ecx, dword [esi]
mov edx, dword [ebp + 0x19c]
mov eax, dword [ebp + 0x18c]
add ecx, ecx
add ecx, ecx
lea eax, [eax + edx*4]
push ecx
push eax
add eax, 4
push eax
call fcn.0074d9b0
mov edx, dword [ebp + 0x19c]
mov eax, dword [ebp + 0x18c]
mov dword [eax + edx*4], ebx
mov eax, dword [ebp + 0x19c]
mov ecx, dword [ebp + 0x18c]
mov edx, dword [ecx + eax*4]
mov edi, dword [ebp + 0x138]
lea ecx, [ecx + eax*4]
lea edx, [edx + edx*4]
lea edx, [edi + edx*8]
mov dword [ebp + 0x1a0], edx
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x180]
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*8]
mov dword [ebp + 0x1b4], ecx
mov ecx, dword [ebp + 0x1a0]
mov edx, dword [ebp + 0x1b4]
mov dword [ebp + 0x1a4], ecx
fld dword [ecx + 0xc]
fchs
add esp, 0xc
fstp dword [ebp + 0x1a8]
fld dword [edx + 0xc]
fstp dword [ebp + 0x1ac]
mov ecx, dword [esi]
add eax, ecx
cmp eax, dword [ebp + 0x1b0]
jle 0x518f22
mov dword [ebp + 0x1b0], eax
mov edx, dword [esp + 0x78]
mov dword [esi], 1
mov byte [edx], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x14
test cl, cl
je 0x5190ed
mov edi, dword [eax + edi*4]
mov ecx, dword [ebp + 0x180]
lea eax, [edi + edi*2]
lea edx, [ecx + eax*8]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00517f00
add dword [ebp + 0x178], 1
mov eax, dword [ebp + 0x178]
lea esi, [ebp + 0x178]
cmp eax, dword [esi + 4]
lea ecx, [esi + 4]
jbe 0x518f89
push 0x18
push eax
lea edx, [esi + 8]
push edx
push esi
push ecx
call fcn.0040e110
add esp, 0x14
mov eax, dword [esi]
cmp eax, 1
jb 0x518f9c
mov ecx, dword [esi + 8]
lea eax, [eax + eax*2]
lea esi, [ecx + eax*8 - 0x18]
jmp 0x518f9f
mov esi, dword [esi + 8]
push esi
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
call fcn.00517f00
mov ecx, dword [ebp + 0x18c]
mov eax, dword [ebp + 0x19c]
mov eax, dword [ecx + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x138]
lea edi, [eax + edx*8]
mov ecx, 0xa
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x19c]
add dword [ebp + 0x184], 1
mov eax, dword [ebp + 0x184]
lea esi, [ebp + 0x184]
lea ecx, [esi + 4]
add edi, 1
cmp eax, dword [ecx]
jbe 0x519006
push 4
push eax
lea edx, [esi + 8]
push edx
push esi
push ecx
call fcn.0040e110
add esp, 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 8]
sub ecx, edi
lea edx, [ecx*4 - 4]
lea eax, [eax + edi*4]
push edx
push eax
add eax, 4
push eax
call fcn.0074d9b0
mov eax, dword [ebp + 0x19c]
mov ecx, dword [ebp + 0x18c]
mov edx, dword [ebp + 0x130]
lea esi, [ebp + 0x130]
mov dword [ecx + eax*4 + 4], edx
add dword [esi], 1
mov eax, dword [esi]
lea ecx, [esi + 4]
add esp, 0xc
cmp eax, dword [ecx]
jbe 0x51905e
push 0x28
push eax
lea eax, [esi + 8]
push eax
push esi
push ecx
call fcn.0040e110
add esp, 0x14
mov eax, dword [esi]
mov edx, dword [esi + 8]
lea ecx, [eax + eax*4]
lea edi, [edx + ecx*8 - 0x28]
mov ecx, 0xa
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x18c]
mov eax, dword [ebp + 0x19c]
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + 0x138]
lea edx, [ecx + edx*8]
mov ecx, dword [ebp + 0x180]
mov dword [ebp + 0x1a0], edx
mov eax, dword [eax]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
mov eax, dword [ebp + 0x1a0]
mov ecx, dword [esp + 0x78]
mov dword [ebp + 0x1a4], eax
mov dword [ebp + 0x1b4], edx
pop edi
fld dword [eax + 0xc]
mov eax, edx
fchs
pop esi
fstp dword [ebp + 0x1a8]
fld dword [eax + 0xc]
mov eax, dword [esp + 0x6c]
fstp dword [ebp + 0x1ac]
add dword [eax], 1
add dword [ebp + 0x1b0], 1
pop ebp
mov byte [ecx], 0
pop ebx
add esp, 0x54
ret 0x14
add dword [ebp + 0x184], 1
mov eax, dword [ebp + 0x184]
lea esi, [ebp + 0x184]
cmp eax, dword [esi + 4]
lea ecx, [esi + 4]
jbe 0x519119
push 4
push eax
lea edx, [esi + 8]
push edx
push esi
push ecx
call fcn.0040e110
add esp, 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 8]
sub ecx, edi
lea edx, [ecx*4 - 4]
lea eax, [eax + edi*4]
push edx
push eax
add eax, 4
push eax
call fcn.0074d9b0
mov eax, dword [ebp + 0x19c]
mov ecx, dword [ebp + 0x18c]
mov edx, dword [ebp + 0x130]
lea ebx, [ebp + 0x130]
mov dword [ecx + eax*4], edx
add dword [ebx], 1
mov eax, dword [ebx]
lea ecx, [ebx + 4]
add esp, 0xc
cmp eax, dword [ecx]
jbe 0x519170
push 0x28
push eax
lea eax, [ebx + 8]
push eax
push ebx
push ecx
call fcn.0040e110
add esp, 0x14
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
lea ecx, [eax + eax*4]
lea edi, [edx + ecx*8 - 0x28]
mov ecx, 0xa
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
add dword [ebp + 0x178], 1
mov eax, dword [ebp + 0x178]
lea esi, [ebp + 0x178]
cmp eax, dword [esi + 4]
lea ecx, [esi + 4]
jbe 0x5191b3
push 0x18
push eax
lea eax, [esi + 8]
push eax
push esi
push ecx
call fcn.0040e110
add esp, 0x14
mov eax, dword [esi]
cmp eax, 1
jb 0x5191c6
mov edx, dword [esi + 8]
lea ecx, [eax + eax*2]
lea esi, [edx + ecx*8 - 0x18]
jmp 0x5191c9
mov esi, dword [esi + 8]
mov eax, dword [ebx]
cmp eax, 1
jb 0x5191dc
mov ecx, dword [ebx + 8]
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8 - 0x28]
jmp 0x5191df
mov ebx, dword [ebx + 8]
push esi
push ebx
mov ecx, ebp
call fcn.00517f00
mov edx, dword [esp + 0x6c]
mov edi, dword [ebp + 0x138]
lea eax, [edx + edx*4]
add eax, eax
add eax, eax
add eax, eax
add edi, eax
mov ecx, 0xa
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x180]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*8]
mov ecx, dword [ebp + 0x138]
add ecx, eax
push edx
push ecx
mov ecx, ebp
call fcn.00517f00
mov edx, dword [ebp + 0x18c]
mov eax, dword [ebp + 0x19c]
mov ecx, dword [edx + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [ebp + 0x138]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8]
mov dword [ebp + 0x1a0], ecx
mov eax, dword [eax]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x180]
lea ecx, [eax + edx*8]
mov eax, dword [ebp + 0x1a0]
mov dword [ebp + 0x1b4], ecx
mov dword [ebp + 0x1a4], eax
fld dword [eax + 0xc]
mov eax, dword [esp + 0x74]
fchs
mov edx, ecx
mov ecx, dword [esp + 0x78]
fstp dword [ebp + 0x1a8]
fld dword [edx + 0xc]
add dword [ebp + 0x1b0], 1
pop edi
fstp dword [ebp + 0x1ac]
pop esi
pop ebp
mov dword [eax], 0
mov byte [ecx], 0
pop ebx
add esp, 0x54
ret 0x14