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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x38], eax
lea esi, [eax + eax*2]
mov eax, dword [0x69fdfc]
shl esi, 2
push esi
call dword [eax + 0x134]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x30]
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
add edx, edx
push edx
push 0
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 4]
lea edi, [ebp + 0x40]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
mov ecx, dword [edi + 0x1c]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0xc]
lea esi, [edx + ecx*2]
mov ecx, dword [edi]
cmp eax, 5
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], ecx
jne 0x50b73a
sub ecx, 2
mov dword [esp + 0x28], ecx
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x50b9ca
lea edx, [esi + 4]
lea ebp, [esi + 2]
mov dword [esp + 0x14], edx
jmp 0x50b760
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
cmp dword [ecx + 0xc], 4
jne 0x50b7a1
mov edi, dword [edi + 4]
xor ecx, ecx
mov cx, word [esi + eax*2]
xor esi, esi
mov si, word [edx]
mov eax, ecx
xor ecx, ecx
add eax, edi
mov cx, word [ebp]
add esi, edi
add ecx, edi
mov edi, dword [esp + 0x10]
add edi, 3
add ebp, 6
add edx, 6
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edx
jmp 0x50b81b
xor ecx, ecx
test al, 1
je 0x50b7cb
mov edi, dword [edi + 4]
mov cx, word [ebp]
xor eax, eax
add ecx, edi
mov ax, word [edx]
mov edx, dword [esp + 0x20]
add eax, edi
mov edi, dword [esp + 0x10]
xor esi, esi
mov si, word [edx + edi*2]
mov edi, dword [esp + 0x18]
jmp 0x50b7e3
mov cx, word [esi + eax*2]
mov esi, dword [edi + 4]
mov eax, ecx
xor ecx, ecx
mov cx, word [ebp]
add eax, esi
add ecx, esi
xor esi, esi
mov si, word [edx]
mov edx, dword [edi + 4]
add ebp, 2
add esi, edx
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
add edx, 2
cmp eax, ecx
mov dword [esp + 0x14], edx
je 0x50b9b6
cmp eax, esi
je 0x50b9b6
cmp ecx, esi
je 0x50b9b6
mov ebx, dword [esp + 0x6c]
lea edi, [ecx + ecx*2]
lea edx, [eax + eax*2]
lea ebp, [esi + esi*2]
shl edi, 2
shl edx, 2
fld dword [edi + ebx]
fsub dword [edx + ebx]
mov ebx, dword [esp + 0x70]
shl ebp, 2
fstp dword [esp + 0x48]
fld dword [ebx + ecx*8]
fsub dword [ebx + eax*8]
fld dword [ebx + ecx*8 + 4]
fsub dword [ebx + eax*8 + 4]
lea ecx, [ebx + eax*8 + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x6c]
fstp dword [esp + 0x50]
fld dword [ecx + ebp]
fsub dword [edx + ecx]
fstp dword [esp + 0x54]
fld dword [ebx + esi*8]
fsub dword [ebx + eax*8]
mov eax, dword [esp + 0x34]
fld dword [ebx + esi*8 + 4]
fsub dword [eax]
mov ebx, dword [esp + 0x24]
fst dword [esp + 0x5c]
fmulp st(2)
fmul dword [esp + 0x50]
fsubp st(1)
fld st(0)
fld dword [esp + 0x54]
fmul dword [esp + 0x50]
fld dword [esp + 0x5c]
fmul dword [esp + 0x48]
fsubp st(1)
fstp dword [esp + 0x40]
fld st(0)
fabs
fcomp dword [0x5c3c1c]
fnstsw ax
and eax, 0x4100
jne 0x50b8d4
fdivr dword [0x58b454]
fmul dword [esp + 0x40]
fld dword [edx + ebx]
fsub st(1)
fstp dword [edx + ebx]
fld dword [edi + ebx]
fsub st(1)
fstp dword [edi + ebx]
fld dword [ebx + ebp]
fsub st(1)
fstp dword [ebx + ebp]
mov ecx, dword [esp + 0x6c]
fstp st(0)
fld dword [edi + ecx + 4]
fsub dword [edx + ecx + 4]
fld dword [ecx + ebp + 4]
fsub dword [edx + ecx + 4]
fld st(2)
fstp dword [esp + 0x3c]
fmul dword [esp + 0x50]
fld dword [esp + 0x5c]
fmul st(2)
fsubp st(1)
fstp st(1)
fld dword [esp + 0x3c]
fabs
fcomp dword [0x5c3c1c]
fnstsw ax
and eax, 0x4100
jne 0x50b93d
fld dword [0x58b454]
fdiv dword [esp + 0x3c]
fmulp st(1)
fld dword [edx + ebx + 4]
fsub st(1)
fstp dword [edx + ebx + 4]
fld dword [edi + ebx + 4]
fsub st(1)
fstp dword [edi + ebx + 4]
fld dword [ebx + ebp + 4]
fsub st(1)
fstp dword [ebx + ebp + 4]
fstp st(0)
fld dword [edi + ecx + 8]
fsub dword [edx + ecx + 8]
fld dword [ecx + ebp + 8]
fsub dword [edx + ecx + 8]
fxch st(2)
fstp dword [esp + 0x3c]
lea eax, [edx + ecx + 8]
fxch st(1)
fmul dword [esp + 0x50]
fld dword [esp + 0x5c]
fmul st(2)
fsubp st(1)
fxch st(1)
fstp st(0)
fld dword [esp + 0x3c]
fabs
fcomp dword [0x5c3c1c]
fnstsw ax
and eax, 0x4100
jne 0x50b9ac
fld dword [0x58b454]
fdiv dword [esp + 0x3c]
lea edx, [edx + ebx + 8]
lea edi, [edi + ebx + 8]
lea ebp, [ebx + ebp + 8]
fmulp st(1)
fld dword [edx]
fsub st(1)
fstp dword [edx]
fld dword [edi]
fsub st(1)
fstp dword [edi]
fld dword [ebp]
fsub st(1)
fstp dword [ebp]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
fstp st(0)
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jl 0x50b754
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x2c]
add edi, 0x24
dec eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], eax
jne 0x50b717
mov ebp, dword [ebp + 8]
push ebp
mov edx, dword [ebp]
call dword [edx + 0x30]
mov ebp, dword [esp + 0x38]
test ebp, ebp
jle 0x50ba46
lea esi, [ebx + 8]
mov edi, ebp
fld dword [esi - 4]
fld dword [esi - 8]
fld dword [esi]
fld st(2)
fmul st(3)
fld st(2)
fmul st(3)
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
fstp st(0)
fstp st(0)
fstp st(0)
push eax
call fcn.004b8de0
fld st(0)
fmul dword [esi - 8]
add esp, 4
add esi, 0xc
dec edi
fstp dword [esi - 0x14]
fld dword [esi - 0x10]
fmul st(1)
fstp dword [esi - 0x10]
fld dword [esi - 0xc]
fmul st(1)
fstp dword [esi - 0xc]
fstp st(0)
jne 0x50b9f7
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push ecx
push ebp
push ebx
push edx
push eax
call fcn.00509030
mov ecx, dword [0x69fdfc]
push ebx
mov esi, eax
call dword [ecx + 0x138]
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret