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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 1
push 0xd4
call fcn.004e393b
mov ebx, dword [esp + 0x28]
mov esi, eax
fild dword [esp + 0x2c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi]
lea ebp, [ebx + ebx]
mov dword [esp + 0x20], ebp
sub ebp, eax
sub eax, ebp
add esp, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov ecx, 0xfffffff1
mov dword [esi + 0x24], eax
push 1
mov dword [esi + 0x30], ecx
push ebx
mov dword [esi + 0x34], 0xffffffd8
push ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x28], 0x3eb33333
mov dword [esi + 0x2c], 0x3e4ccccd
fstp dword [esp]
mov dword [esi + 0x3c], eax
push 0x18
mov dword [esi + 0xc], 0x18
call fcn.00508840
lea edi, [ebx*8]
push 1
push edi
mov dword [esi + 0x10], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x44], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x58], eax
call fcn.004e393b
mov dword [esi + 0x48], eax
lea eax, [ebx + 0x18]
push 1
lea edi, [eax*4]
push edi
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x4c], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x5c], eax
call fcn.004e393b
add esp, 0x40
mov dword [esi + 0x88], eax
push 1
push edi
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x8c], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x60], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x64], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x6c], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x70], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x68], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x50], eax
call fcn.004e393b
add esp, 0x40
mov dword [esi + 0x54], eax
push 1
push edi
call fcn.004e393b
lea edi, [ebx*4]
push 1
push edi
mov dword [esi + 0x84], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x74], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x78], eax
call fcn.004e393b
push 1
push edi
mov dword [esi + 0x7c], eax
call fcn.004e393b
mov dword [esi + 0x80], eax
lea eax, [ebp*4]
push 1
push eax
mov dword [esp + 0x44], eax
call fcn.004e393b
mov ecx, dword [esp + 0x44]
push 1
push ecx
mov dword [esi + 0x90], eax
call fcn.004e393b
mov edx, dword [esi + 0x58]
mov dword [esi + 0x94], eax
lea eax, [ebp + ebp]
push eax
push edx
mov dword [esp + 0x54], eax
call fcn.00506bc0
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x54]
shl ecx, 1
add esp, 0x40
cmp eax, ecx
jge 0x50694a
mov edx, dword [esi + 0x58]
inc eax
mov dword [edx + eax*4 - 4], 0x3f800000
mov ecx, dword [esi + 4]
shl ecx, 1
cmp eax, ecx
jl 0x506935
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x50699c
lea edx, [ebp - 1]
test edx, edx
jl 0x50699c
add eax, edx
lea ecx, [edx + ebp]
add eax, ebp
shl ecx, 2
shl eax, 2
inc edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x58]
sub eax, 4
mov ecx, dword [ecx + edx]
mov dword [eax + edx + 4], ecx
mov edx, dword [esi + 0x58]
mov ecx, dword [esp + 0x10]
mov dword [ecx + edx], 0x3f800000
mov edx, dword [esp + 0x14]
sub ecx, 4
dec edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jne 0x50696f
lea ecx, [ebx + 0x18]
xor eax, eax
test ecx, ecx
jle 0x5069ec
mov edx, dword [esi + 0x5c]
inc eax
cmp eax, ecx
mov dword [edx + eax*4 - 4], 0x3f800000
mov edx, dword [esi + 0x60]
mov dword [edx + eax*4 - 4], 0
mov edx, dword [esi + 0x64]
mov dword [edx + eax*4 - 4], 0x3f800000
mov edx, dword [esi + 0x68]
mov dword [edx + eax*4 - 4], 0x3f800000
mov edx, dword [esi + 0x70]
mov dword [edx + eax*4 - 4], 0x3f800000
mov edx, dword [esi + 0x6c]
mov dword [edx + eax*4 - 4], 0x3f800000
jl 0x5069a5
xor eax, eax
test ebx, ebx
jle 0x506a05
mov ecx, dword [esi + 0x80]
inc eax
cmp eax, ebx
mov dword [ecx + eax*4 - 4], 1
jl 0x5069f2
xor eax, eax
test ebp, ebp
jle 0x506a2c
mov edx, dword [esi + 0x90]
inc eax
cmp eax, ebp
mov dword [edx + eax*4 - 4], 0
mov ecx, dword [esi + 0x94]
mov dword [ecx + eax*4 - 4], 0
jl 0x506a0b
push 1
push edi
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0x45fa0000
call fcn.004e393b
xor edi, edi
add esp, 8
xor ecx, ecx
cmp ebx, edi
mov dword [esi + 0xa4], eax
mov dword [esp + 0x14], ecx
jle 0x506b06
fild dword [esp + 0x24]
fild dword [esp + 0x20]
fild dword [esp + 0x14]
mov edx, dword [esi + 0xa4]
fmul st(2)
fmul qword [0x600548]
fld st(1)
fdivp st(1)
fld st(0)
fsub dword [0x5d2134]
fld st(0)
fmul st(1)
fmul dword [0x5d2130]
fldl2e
fmulp st(1)
fld st(0)
frndint
fxch st(1)
fsub st(1)
f2xm1
fld1
faddp st(1)
fscale
fstp st(1)
fmul qword [0x5d2128]
fxch st(2)
fmul dword [0x5d2120]
fsubr dword [0x5d211c]
faddp st(2)
fstp st(0)
fstp dword [edx + ecx*4]
mov eax, dword [esi + 0xa4]
fld dword [eax + ecx*4]
fcomp dword [0x5d2118]
lea edx, [eax + ecx*4]
fnstsw ax
test ah, 1
je 0x506ae1
mov dword [edx], 0x3c23d70a
mov edx, dword [esi + 0xa4]
fld dword [edx + ecx*4]
lea eax, [edx + ecx*4]
inc ecx
fld st(0)
fmul st(1)
cmp ecx, ebx
mov dword [esp + 0x14], ecx
fstp dword [eax]
fstp st(0)
jl 0x506a69
fstp st(0)
fstp st(0)
fild dword [esi]
fild dword [esi + 8]
mov eax, 0x3f800000
mov dword [esi + 0xa8], 0x26901d7d
fld st(1)
fmul qword [0x5d2110]
mov dword [esi + 0xac], eax
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], eax
mov eax, dword [esp + 0x18]
fdiv st(1)
push eax
mov dword [esi + 0xb0], 0x41f00000
mov dword [esi + 0xc8], edi
fldl2e
fmulp st(1)
fld st(0)
frndint
fxch st(1)
fsub st(1)
f2xm1
fld1
faddp st(1)
fscale
fstp st(1)
fstp dword [esi + 0xb4]
fld st(1)
fmul qword [0x5d2108]
fdiv st(1)
fldl2e
fmulp st(1)
fld st(0)
frndint
fxch st(1)
fsub st(1)
f2xm1
fld1
faddp st(1)
fscale
fstp st(1)
fstp dword [esi + 0xb8]
fstp st(0)
fstp st(0)
call fcn.00508710
add esp, 4
mov dword [esi + 0xd0], eax
mov dword [esi + 0xc4], edi
mov dword [esi + 0xcc], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret